当前位置: 技术问答>linux和unix
grub.cfg学习
来源: 互联网 发布时间:2017-01-07
本文导语: 请问下面这一段代码的意思是什么?这是/boot/grub/grub.cfg里的一段: menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos1)' sea...
请问下面这一段代码的意思是什么?这是/boot/grub/grub.cfg里的一段:
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 0ec882b6-4ae2-43e9-8ba7-6bbb9c54455c
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=0ec882b6-4ae2-43e9-8ba7-6bbb9c54455c ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 0ec882b6-4ae2-43e9-8ba7-6bbb9c54455c
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=0ec882b6-4ae2-43e9-8ba7-6bbb9c54455c ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
|