无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 4641|回复: 3
打印 上一主题 下一主题

[求助] U盘在g4d和GRUB2双启动下 如何启动Porteus Linux系统和Slitaz linux ?

[复制链接]
跳转到指定楼层
1#
发表于 2015-12-29 14:03:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我把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
}
2#
发表于 2015-12-29 14:30:47 | 只看该作者
怎么个“无法启动”?
有图吗?
报什么错误?
回复

使用道具 举报

3#
发表于 2015-12-29 22:20:20 | 只看该作者
本帖最后由 有阴也有阳 于 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

title  Slitaz Linux 中文版-gz方式
# bzImage和rootfs.gz文件从LinuxPE.iso文件中提取出来
kernel (bd)/Boot/Slitaz/bzImage root=/dev/null vga=normal autologin
initrd (bd)/Boot/Slitaz/rootfs.gz

title  Slitaz 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)。

        菜鸟现学现卖,仅供参考,不一定正确。


点评

首先,谢谢您的解答,您的这些命令在UD下是正确的,但我是普通U盘,只是用BOOTICEx6写入了G4D引导,并且加入了grub2引导,所以这些命令不适用!  详情 回复 发表于 2015-12-30 08:26
回复

使用道具 举报

4#
 楼主| 发表于 2015-12-30 08:26:59 | 只看该作者
本帖最后由 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引导,所以这些命令不一定适用!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-20 01:48

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表