U盘在g4d和GRUB2双启动下 如何启动Porteus Linux系统和Slitaz linux ?
我把Porteus Linux系统和Slitaz linux中的相关文件已经提取到U盘BOOT文件夹下,但无法启动!贴出我的g4d菜单命令,请大家指正:
title启动 Porteus Linux系统
kernel /boot/vmlinuz from=/boot/porteus.iso
initrd /boot/initrd.xz
title启动Slitaz linux 系统
find --set-root /boot/bzImage
kernel /boot/bzImage rw root=/dev/null vga=normal autologin
initrd /boot/rootfs.gz
grub2命令是这样写的:
menuentry "启动slitaz微型linux中文定制版"--class slitaz --class os {
linux /boot/bzImage rw root=/dev/null vga=normal autologin
initrd /boot/rootfs.gz
}
menuentry "启动 Porteus Linux系统" --class Porteus --class os {
linux /boot/vmlinuz rw root=/dev/null vga=normal autologin
initrd /boot/initrd.xz
} 怎么个“无法启动”?
有图吗?
报什么错误? 本帖最后由 有阴也有阳 于 2015-12-30 10:34 编辑
grub4dos调用菜单(调用/boot/grub/slitaz.lst )
titile 启动 slitaz linux系统
configfile /boot/grub/slitaz.lst || find --set-root /boot/grub/slitaz.lst && configfile /boot/grub/slitaz.lst
或这用下面的iftitile菜单(判断是否有/boot/grub/slitaz.lst,然后决定是否显示菜单
iftitle 启动slitaz linux系统
configfile /boot/grub/slitaz.lst || find --set-root /boot/grub/slitaz.lst && configfile /boot/grub/slitaz.lst
titleSlitaz Linux 中文版-gz方式
# bzImage和rootfs.gz文件从LinuxPE.iso文件中提取出来
kernel (bd)/Boot/Slitaz/bzImage root=/dev/null vga=normal autologin
initrd (bd)/Boot/Slitaz/rootfs.gz
titleSlitaz Linux 中文版-ISO方式
RUN --mem (bd)/Boot/Slitaz/Slitaz.iso
##方法二
#map --mem (bd)/Boot/Slitaz/Slitaz.iso(0xff)
#map --hook
#chainloader(0xff)
#boot
title 启动puppy linux系统
find --set-root /puppy/vmlinuz
kernel /puppy/vmlinuz root=/dev/ram0 pfix=copy
initrd /puppy/initrd.gz
grub2命令:
menuentry "启动slitaz微型linux中文定制版"--class slitaz --class os {
search --no-floppy --file --set=root /boot/rootfs.gz
linux /boot/bzImage rw root=/dev/null vga=normal autologin
initrd /boot/rootfs.gz
}
menuentry "启动 Porteus Linux系统" --class Porteus --class os {
search --no-floppy --file --set=root /boot/initrd.xz
linux /boot/vmlinuz rw root=/dev/null vga=normal autologin
initrd /boot/initrd.xz
}
grub4dos对于设备的命名规则:
(ud)——ud为bean原创的 fbinst 启动方式制作的隐藏分区,用在启动U盘的ud分区。
(bd)——bd为boot device ,通用写法,初始启动设备,可以使菜单更具通用性。注:使用configfile命令会改变启动设备。
如果是使用FB制作的启动U盘,(ud)代表隐藏的启动分区,()代表可见区。(bd)=(ud)
对于非FB制作的启动U盘,如用BOOTICE写入了G4D引导而制作的启动U盘,则(bd)=(bd),(bd)不再等于(ud)。
菜鸟现学现卖,仅供参考,不一定正确。
本帖最后由 dfswb 于 2015-12-30 08:35 编辑
有阴也有阳 发表于 2015-12-29 22:20
grub4dos调用菜单(调用/boot/grub/slitaz.lst )
titile 启动 slitaz linux系统
configfile /boot/grub/ ...
首先,谢谢您的解答,您的这些命令在UD下是正确的,但我是普通U盘,只是用BOOTICE写入了G4D引导,并且加入了grub2引导,所以这些命令不一定适用!
页:
[1]