无忧启动论坛

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

[求助] Grub2 U盘启动如何引导CentOS 或Redhat 镜像

[复制链接]
跳转到指定楼层
1#
发表于 2019-10-13 08:30:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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
2#
 楼主| 发表于 2019-10-13 08:31:55 | 只看该作者
本帖最后由 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:/# _

回复

使用道具 举报

3#
 楼主| 发表于 2019-10-13 08:38:52 | 只看该作者

直接根目录,那会好乱。
还没测试。
回复

使用道具 举报

4#
 楼主| 发表于 2019-10-13 09:03:58 | 只看该作者
本帖最后由 2010haiven86 于 2019-10-13 09:49 编辑

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

应该是vmlinuz无法挂载fat32的U盘的原因。
也许可以直接把ISO放在EXT4的移动硬盘中试试。因为放在NTFS的硬盘中肯定也是不行的。
回复

使用道具 举报

5#
 楼主| 发表于 2019-10-13 10:49:28 | 只看该作者
红帽的内核搞什么鬼,兼容性那么差。连CentOS-7-x86_64-LiveGNOME-1810.ISO也不能直接引导成功。
哪像深度,Ubuntu,Archlinux 的 LiveCD通过Grub2很容易就引导成功了。
回复

使用道具 举报

6#
发表于 2019-10-13 12:39:26 | 只看该作者
        就用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

点评

非常感谢。 看来,要么用光驱,要么单独做个Easy2Boot启动U盘。  详情 回复 发表于 2019-10-14 09:10
回复

使用道具 举报

7#
 楼主| 发表于 2019-10-14 09:10:25 | 只看该作者
有阴也有阳 发表于 2019-10-13 12:39
就用Linux系统的ISO文件整体启动来安装,不把ISO文件解压——解散:

        三:安装Centos7 6 ...

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

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-4-20 19:20

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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