使用UltraISO制作Centos7 U盘启动盘遇到的坑

  1. 下载、安装UltraISO软件

  2. 安装好以后,打开软件

  3. 击菜单栏的“文件”选项,再点击“打开”按钮,选择要刻录的系统镜像

  4. 点击菜单栏的“启动”选项,再点击“写入硬盘映像”

  5. 选择自己要写入的U盘,点击“写入” (若未事先格式化U盘,此时需要先格式化U盘,然后再点击“写入”) (也可以勾选上“刻录校验”)

    注:有些教程说是还需要点击"便捷启动",选中syslinux,这个操作完全没必要做,会自动识别出来进行选择的

  6. 稍等片刻,会看到“刻录成功”的提示,此时就完成了

  7. 插入U盘,调整BIOS选项从U盘启动,进入安装界面

  8. 然后界面就出现如下信息:

[ OK ] Started Open-iSCSI. 
Starting dracut initqueue hook… 
[ 13.471708] sd 0:0:0:0: [sdb] No Caching mode page found 
[ 13.471719] sd 0:0:0:0: [sdb] Assuming drive cache: write through 
[ 141.405757] dracut-initqueue[601]: Warning : dracut-initqueue timeout - starting timeout scripts 
[ 142.405757] dracut-initqueue[601]: Warning : dracut-initqueue timeout - starting timeout scripts 

这是因为安装CentOS要找U盘的卷标和实际U盘的卷标不一致导致的,只需要在Windows下修改U盘卷标即可。

注意,CentOS下是大小写敏感的,所以在Windows下修改卷标一定要统一大小写,比如都用大写。

另外制作好的U盘启动盘是FAT32格式的,卷标不能太长,中间也不能有空格

我把卷标修改成CENTOS7

注意:有些教程说是要修改成U盘所在路径,比如hd:/dev/sdb4,这个根本就走不通

8+1. 重启,出现如下信息时按e键

再次启动安装,到: 
Install CentOS 7 
Test this media & install CentOS 7 
Troubleshooting –>

Use the ^ and keys to change the seletion. 
Press ‘e’ to edit the selected item, or ‘c’ for a command prompt. 
The selected entry will be started automatically in 50s. 

注意,这里大小写敏感,所以不管是修改,甚至是在最后退出按 Ctrl + x 的时候都要注意大小写的问题

这里把 
setparams ‘Test this media & install CentOS 7’ 
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x\86_64  quiet 

第二行改成: 
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CENTOS7  quiet 

上述操作就是把启动U盘卷标修改成刚才设置的卷标
然后按 Ctrl +x 退出,注意 Ctrl + x 是小写的

8+2. 接下来就是正常的安装界面

结尾的9和10,显示的都是1,博客园的bug,狠狠吐槽他们

+++
额外补充:可以事先修改这个,路径:\EFI\BOOT\grub.cfg

set default="1"

function load_video {
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
  insmod all_video
}

load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2

set timeout=60
### END /etc/grub.d/00_header ###

search --no-floppy --set=root -l 'CentOS 7 x86_64'

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install CentOS 7' --class fedora --class gnu-linux --class gnu --class os {
	linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CENTOS7 quiet
	initrdefi /images/pxeboot/initrd.img
}
menuentry 'Test this media & install CentOS 7' --class fedora --class gnu-linux --class gnu --class os {
	linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CENTOS7 rd.live.check quiet
	initrdefi /images/pxeboot/initrd.img
}
submenu 'Troubleshooting -->' {
	menuentry 'Install CentOS 7 in basic graphics mode' --class fedora --class gnu-linux --class gnu --class os {
		linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CENTOS7 xdriver=vesa nomodeset quiet
		initrdefi /images/pxeboot/initrd.img
	}
	menuentry 'Rescue a CentOS system' --class fedora --class gnu-linux --class gnu --class os {
		linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CENTOS7 rescue quiet
		initrdefi /images/pxeboot/initrd.img
	}
}

posted @ 2019-10-10 13:27  哈喽哈喽111111  阅读(5423)  评论(1编辑  收藏  举报