当前位置:   article > 正文

linux grub.cfg,Grub2 grub.cfg 配置实例

grub2.cfg和grub.cfg

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 ###

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/263082
推荐阅读
相关标签
  

闽ICP备14008679号