无忧启动论坛

标题: Grub2 U盘启动如何引导CentOS 或Redhat 镜像 [打印本页]

作者: 2010haiven86    时间: 2019-10-13 08:30
标题: Grub2 U盘启动如何引导CentOS 或Redhat 镜像
U盘是FAT32文件系统,想引导CentOS 或Redhat 安装镜像,于是想到把CentOS镜像解压到U盘根目录/CentOS 下。但是引导不了。grub.cfg引导如下:
  1. function INI_CENTOS_EFI {
  2. probe $img_root -u --set=img_uuid
  3. #set root=($img_root)
  4. linux /centos/images/pxeboot/vmlinuz inst.stage2=hd:UUID=$img_uuid quiet
  5. initrd /centos/images/pxeboot/initrd.img
  6. }
复制代码

引导后报错:
dracut-initqueque[1106]:Warning: /dev/root does not exist

镜像是:CentOS-7-x86_64-DVD-1611.iso  ;rhel-server-7.6-x86_64-dvd.iso
作者: 2010haiven86    时间: 2019-10-13 08:31
本帖最后由 2010haiven86 于 2019-10-13 08:37 编辑

错误snap:


[ OK ] Mounted Configuration File System...
[ 10.589605] sd 0:0:0:0: [sda] No Caching mode page found
[ 10.589671] sd 0:0:0:0: [sda] Assuming drive cache: Write through
[ 12.154230] dracut-initqueque[1106]:Warning:no suitable images
...
...n多行...
...
[ 197.393440] dracut-initqueque[1106]:Warning: dracut-initqueque timeout - starting timeout scripts
[ 198.908612] dracut-initqueque[1106]:Warning: dracut-initqueque timeout - starting timeout scripts
[ 197.908977] dracut-initqueque[1106]:Warning: Could not boot
[ 198.000795] dracut-initqueque[1106]:Warning: /dev/root does not exist
        Starting Dracut Emerqency Shell...
Warning: /dev/root does not exist

Generating "/run/initramfs/rdsosreport.txt"

Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report

dracut:/#
dracut:/# echo $root
anaconda-disk:UUID=6c30-1827      <-- 我的U盘ID
dracut:/# _


作者: 2010haiven86    时间: 2019-10-13 08:38
匿名者 发表于 2019-10-13 08:36
直接根目录吧

直接根目录,那会好乱。
还没测试。
作者: 2010haiven86    时间: 2019-10-13 09:03
本帖最后由 2010haiven86 于 2019-10-13 09:49 编辑

再测试:直接解压到根目录也不行。错误同样。

应该是vmlinuz无法挂载fat32的U盘的原因。
也许可以直接把ISO放在EXT4的移动硬盘中试试。因为放在NTFS的硬盘中肯定也是不行的。
作者: 2010haiven86    时间: 2019-10-13 10:49
红帽的内核搞什么鬼,兼容性那么差。连CentOS-7-x86_64-LiveGNOME-1810.ISO也不能直接引导成功。
哪像深度,Ubuntu,Archlinux 的 LiveCD通过Grub2很容易就引导成功了。
作者: 有阴也有阳    时间: 2019-10-13 12:39
        就用Linux系统的ISO文件整体启动来安装,不把ISO文件解压——解散:

        三:安装Centos7 64位系统:

        http://bbs.wuyou.net/forum.php?m ... &fromuid=546748

        四:安装Red Hat Enterprise Linux Server 7.4    64位系统:

        http://bbs.wuyou.net/forum.php?m ... &fromuid=546748

作者: 2010haiven86    时间: 2019-10-14 09:10
有阴也有阳 发表于 2019-10-13 12:39
就用Linux系统的ISO文件整体启动来安装,不把ISO文件解压——解散:

        三:安装Centos7 6 ...

非常感谢。
看来,要么用光驱,要么单独做个Easy2Boot启动U盘。




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) Powered by Discuz! X3.3