Camgaertner
November 24th, 2011, 08:34 PM
I'm trying to add my windows 7 installation on to Grub 2. The OS is located on dev/sda1 on the primary hard drive. How should I format this code that I am adding to /etc/grub.d/40_custom?
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 7" {
insmod chain
set root=(hd1,1)
drivemap -s hd0 hd1
chainloader +1
}
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 7" {
insmod chain
set root=(hd1,1)
drivemap -s hd0 hd1
chainloader +1
}