1. First make the image into a USB disk image
You can choose UltraISO or rufus software for image production. I won’t go into details here.
2. Enter the bios page of the physical machine, select the USB disk to boot, save and exit.
3. Modify the U disk boot plan
选择以vfat文件系统的硬盘就是U盘
Option One:
- Restart the physical machine, enter the installation system interface, enter and select the command "blkid" to view the device paths of all devices, and confirm the device address of the USB disk.
- Restart the physical machine, enter the grub2 menu, press "e" on the kernel selection interface to enter the editing [single-user] mode, jump to the startup item configuration interface, modify the system's boot mode to
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x\86_64 rd.live.check quiet
linuxefi /images/pxeboot/initrd.img
Then modify the red part hd:LABEL=CentOS\x207\x20x\86_64 to hd: /dev/sd4 (the location of your USB disk) quiet
press "ctrl +x" and wait for the server to restart.
Option II:
-
Restart the physical machine, enter the grub2 menu, press "e" on the kernel selection interface to
enter the editing [single-user] mode, jump to the startup item configuration interface, modify the system's boot mode to the following
-
Restart the physical machine, enter the system installation interface, and confirm the device path of the USB flash drive.
-
Restart the physical machine. Restart the physical machine. Enter the grub2 menu. On the kernel selection interface, press "e" to enter the editing [single-user] mode. Jump to the startup item configuration interface and modify the system's boot mode to the following.
-
Press "ctrl +x" and wait for the server to restart.