赞
踩
sudo chmod +w /boot/grub/grub.cfg
sudo gedit /boot/grub/grub.cfg
### BEGIN /etc/grub.d/10_linux
###
menuentry “Ubuntu, Linux
2.6.31-14-generic” {
recordfail=1
if [ -n
${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,8)
search –no-floppy –fs-uuid –set
4290a224-55ad-4329-b310-031466eb4955
linux
/boot/vmlinuz-2.6.31-14-generic
root=UUID=4290a224-55ad-4329-b310-031466eb4955 ro
quiet splash
initrd
/boot/initrd.img-2.6.31-14-generic
}
menuentry “Ubuntu, Linux 2.6.31-14-generic
(recovery mode)” {
recordfail=1
if [ -n
${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,8)
search –no-floppy –fs-uuid –set
4290a224-55ad-4329-b310-031466eb4955
linux
/boot/vmlinuz-2.6.31-14-generic
root=UUID=4290a224-55ad-4329-b310-031466eb4955 ro single
initrd
/boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### menuentry “Memory test (memtest86+)” {
linux16
/boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)”
{
linux16
/boot/memtest86+.bin
console=ttyS0,115200n8
}###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Windows 7/Windows XP”
{
insmod ntfs
set root=(hd0,1)
search –no-floppy –fs-uuid –set
183461123460f462
chainloader +1
}
menuentry “PCBSD 8.0 (on
/dev/sda2)”{
set
root=(hd0,2)
chainloader
+1
boot
}
menuentry “OpenSolaris 2009.6 (on
/dev/sda3)”{
set
root=(hd0,3)
chainloader
+1
boot
}
menuentry “Zenwalk6.0 (on
/dev/sda6)” {
insmod ext2
set
root=(hd0,6)
linux
/boot/vmlinuz root=/dev/sda6
boot
}
menuentry “Sabayon Linux 5.0 (on
/dev/sda7)” {
insmod ext2
set root=(hd0,7)
search –no-floppy –fs-uuid –set
6368746f-2074-616b-6f65-207575696400
linux
/boot/kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0
ramdisk=8192 real_root=/dev/sda7 dolvm init=/linuxrc
splash=silent,theme:sabayon vga=791 console=tty1 quiet
resume=swap:/dev/sda9 real_resume=/dev/sda9
initrd
/boot/initramfs-genkernel-x86-2.6.31-sabayon
}
menuentry “Sabayon Linux
(kernel-genkernel-x86-2.6.31-sabayon) (safe mode) (on
/dev/sda7)” {
insmod ext2
set root=(hd0,7)
search –no-floppy –fs-uuid –set 6368746f-2074-616b-6f65-207575696400
linux
/boot/kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0
ramdisk=8192 real_root=/dev/sda7 dolvm init=/linuxrc console=tty1
resume=swap:/dev/sda9 real_resume=/dev/sda9 nox gentoo=nox acpi=off
ide=nodma vga=normal
initrd
/boot/initramfs-genkernel-x86-2.6.31-sabayon
}
### END /etc/grub.d/30_os-prober ###
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。