Skip to Content

Grub2引导硬盘上的puppy linux的问题

新年好,请教大家,如何设置Grub2引导硬盘上的puppy linux。
我在grub.d自定义设置是:
menuentry "wary puppy linux 5.5"{
set root=(hd0,2)
linux /vmlinuz root=/dev/sda5 pmedia=hd
kernel /lib/modules/2.6.32.59
initrd /initrd.gz
}
多次试验,在update-grub及cat /boot/grub/grub.cfg后,终于在启动菜单中有wary puppy linux 5.5了,点击该命令后,提示错误:
error:no such partition.
error:can not find command 'kernel'.
error:you need to load the kernel first.

某次留意到启动菜单上有个unknown Linux distribution ,点击进去后就是我装在硬盘上的wary puppy linux 5.5。记起某次update-grub成功是有这样的提示,只顾点启动界面上的wary puppy linux 5.5,忽略了上两条启动菜单。

跌跌撞撞地引导上puppy了,问题一:请问我错在哪。本人非计算机专业,只会按网上教程来自学,如给答案,最好明确可操作,谢谢。问题二:如何卸去不要的启动项。

附上grub.cfg相关部分的内容:

menuentry 'unknown Linux distribution' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-37b68950-2bd8-415f-b8d6-951e92ac4d05' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 37b68950-2bd8-415f-b8d6-951e92ac4d05
else
search --no-floppy --fs-uuid --set=root 37b68950-2bd8-415f-b8d6-951e92ac4d05
fi
linux /boot/vmlinuz root=/dev/sda5
}
submenu 'Advanced options for unknown Linux distribution' $menuentry_id_option 'osprober-gnulinux-advanced-37b68950-2bd8-415f-b8d6-951e92ac4d05' {
menuentry 'unknown Linux distribution (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--37b68950-2bd8-415f-b8d6-951e92ac4d05' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 37b68950-2bd8-415f-b8d6-951e92ac4d05
else
search --no-floppy --fs-uuid --set=root 37b68950-2bd8-415f-b8d6-951e92ac4d05
fi
linux /boot/vmlinuz root=/dev/sda5
}
menuentry 'unknown Linux distribution (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--37b68950-2bd8-415f-b8d6-951e92ac4d05' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 37b68950-2bd8-415f-b8d6-951e92ac4d05
else
search --no-floppy --fs-uuid --set=root 37b68950-2bd8-415f-b8d6-951e92ac4d05
fi
linux /boot/vmlinuz root=/dev/sda5
}
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# 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.
#14963
menuentry "wary puppy linux 5.5"{
set root=(hd0,2)
linux /vmlinuz root=/dev/sda5 pmedia=hd
kernel /lib/modules/2.6.32.59
initrd /initrd.gz
}
这部分如何写才正确?
#15335
GRUB4DOS 好用很多呢 !

---------------------------
iPhone, iPad, Android, PC 游戏, 请到 : http://www.boyaa.com/game.html

发表新评论

  • 你可以在文本中使用BBCode标记语言。 URL会自动被转为链接。

更多关於格式化选项的信息

CAPTCHA
请验证您是否是机器人。
Image CAPTCHA
Enter the characters shown in the image.