Home >Backend Development >PHP Tutorial >Making multi-version Fedora system installation USB flash drive_PHP tutorial
Few people use CDs to install systems now. Almost all BIOS support USB start up. Therefore, it should be normal to use a USB flash drive (or mobile hard disk/SD card and other removable memory) for system installation. There are actually very few occasions where you need to use an installation disk (the system crashes, requiring a LiveCD; completely reinstalling the system, etc. My Fedora has been installed for 3 years, and I did not need to use an installation disk to install the system until I changed my computer). I didn't pay much attention to it before. I pulled it down as soon as it was ready and ready to use, and I didn't record the process or problems. This time I have an extra 16G USB flash drive. During the New Year holiday, I want to make an installation USB flash drive that can install multiple versions of Fedora and use the remaining space to store other data.
Reference: How to create and use Live USB
The crudest way is dd, no installation required For any software, the system comes with commands and can be done with one line.
<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>sudo dd if=<安装盘.iso 的路径> of=</dev/sdX></li></ol>
But its shortcomings are very obvious:
The following two software are not very reliable and are impatient. Please skip :-)
<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>sudo yum install liveusb-creator</li></ol>
Using the liveusb-creator GUI software seems to be easier.
But I have not succeeded. The problem is that this software has not been tested well. After completion, the MBR (maybe) has not been modified, resulting in the inability to realize the function of LiveCD (the system cannot be booted from the USB disk)
Advantages:
Disadvantages:
Go to UNetbootin’s homepage to download the corresponding version and install it (with RPM package)
It seems to be the same as liveusb-creator, but it cannot be used under my F23:
a. After the installation is completed, start through the GUI icon, prompt: root permission is required, please Start via command line. (You can preview the interface)
b. Use the prompted command to start with sudo/su in the terminal. A bunch of errors are displayed and stuck:-(
Advantages:
Disadvantages:
Here comes the key pointI finally found that livecd-tools is the best tool to use
Although it is a command. OK, but the operation is simple (even simpler than dd), the key is "it works"
Advantages:
<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>sudo dnf install livecd-tools </li></ol>
How to use
<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>sudo livecd-iso-to-disk --reset-mbr --home-size-mb 1024 '/home/tekkamanninja/development/temp/Fedora-Live-Workstation-x86_64-23-10.iso' /dev/sdb1</li></ol>wherein
命令执行完毕后,你的 U 盘就是可以启动并安装 Fedora 的启动盘了。
安装多个 LiveCD 到同一分区(可选)在完成了第一个 LiveCD 的安装之后,我发现,其实 livecd-iso-to-disk 是支持多映像安装的。
第二个及之后 LiveCD 的安装 是的命令大致如下
<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>sudo livecd-iso-to-disk --multi --livedir "security" --home-size-mb 1024 --unencrypted-home '/home/tekkamanninja/Downloads/Fedora-Live-Security-x86_64-23-10.iso' /dev/sdb1</li><li>sudo livecd-iso-to-disk --multi --livedir "server" '/home/tekkamanninja/Downloads/Fedora-Server-DVD-x86_64-23.iso' /dev/sdb1</li></ol>与首个系统的主要区别在于: 添加了–multi –livedir
以本文为例,先安装了 F23 Workstation LiveCD, 之后安装了security Live CD,所有需要将 /security/syslinux/syslinux.cfg 中的
<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>menu separator</li><li>label linux0</li><li>menu label ^Start Fedora Live</li><li>kernel /security/syslinux/vmlinuz0 </li><li>append initrd=/security/syslinux/initrd0.img root=live:UUID=8fcd33eb-3dc2-4c04-8347-1b8099aa0d1c rootfstype=ext4 ro rd.live.image live_dir=security quiet rhgb rd.luks=0 rd.md=0 rd.dm=0</li></ol>
拷贝到 /syslinux/extlinux.conf 中。