Table of Contents
Make multi-version Fedora system installation USB flash drive
Use the dd command
Use GUI software
liveusb-creator
Install software from Fedora repository
Using experience
UNetbootin
Installation software
Use the livecd-iso-to-disk command line tool
Home Backend Development PHP Tutorial Making multi-version Fedora system installation USB flash drive_PHP tutorial

Making multi-version Fedora system installation USB flash drive_PHP tutorial

Jul 12, 2016 am 09:01 AM
android

Make multi-version Fedora system installation USB flash drive


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


Use the dd command

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>
Copy after login

You can also add bs=?MB and other parameters at the end to improve efficiency. After this command, don’t forget “sync” :-)

But its shortcomings are very obvious:

  • Waste of space: the entire USB disk is occupied, only Install a system
  • Read-only: Since iso is a CD-ROM file system (ISO 9660 CD-ROM filesystem), after dd it into the U disk, the system considers the U disk to be read-only.
  • Software error: If you open Gparted when inserting the USB flash drive, it will complain that the block size is incorrect.
  • Hide progress: As soon as the command starts, you are ready to wait for a few minutes. There will be no output before the end (can be solved by killall/kill, see the reference below)
SideNote: The dd command can check the progress through signals. Please refer to check the status of 'dd' in progress

Use GUI software

The following two software are not very reliable and are impatient. Please skip :-)

liveusb-creator

Install software from Fedora repository

<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>sudo yum install liveusb-creator</li></ol>
Copy after login

Using experience

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:

  • GUI is simple and easy to use
  • Can automatically download the required Fedora image
  • Progress display
  • Occupies only one partition, no waste of space

Disadvantages:

  • The burned boot disk cannot boot the system (at least I have not succeeded)
  • Only LiveCD can be burned. (A software that can only burn LiveCD, and the USB disk it makes cannot realize the function of LiveCD, you are kidding me :-p)
  • Even Fedora’s official Wiki does not recommend using it, it is better to use dd Spectrum

UNetbootin

Installation software

Go to UNetbootin’s homepage to download the corresponding version and install it (with RPM package)

Using experience

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:

  • Same as liveusb-creator
  • Support multiple distributions
  • Cross-platform (Win, Linux, Mac OS X)

Disadvantages:

  • (Failed to start successfully under F23, no comment), Fedora Wiki is not recommended, not as reliable as dd




Use the livecd-iso-to-disk command line tool

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:

  • Easy to use, almost as simple as dd
  • <. 🎜>It can process not only LiveCD, but also Server version installation DVD
  • Some progress is displayed
  • It only takes up a single partition, does not waste space, and is readable and writable.
  • Supports multiple LiveCD installations to the same partition
  • Disadvantages:

Requires a little manual processing: for the configuration file to start MENU
  • Install software



<ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li>sudo dnf install livecd-tools </li></ol>
Copy after login


How to use

Install the first LiveCD

Copy after login

<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>
Copy after login
wherein
  • –reset-mbr告诉 livecd-iso-to-disk 需要更新 U 盘(或存储器)的 MBR,这样系统才可以从 U 盘启动。作为被安装的首个 LiveCD 映像,这个是必须的。
  • –home-size-mb 1024(可选)告诉 livecd-iso-to-disk 创建一个1024MB 大小的 img 文件作为用户的home 分区,可以保留用户数据。注意:默认–encrypted-home ,建议在后面加上–unencrypted-home ,因为在实践过程中发现如果加密了home.img, 有可能导致 系统卡在启动阶段。原因是,在系统提示输入密码的时候,其他并行的启动信息输出阻碍了密码的输入,导致无法输入密码,系统无法挂载home.img, 卡死。这种情况出现在了F23 security lab LiveCD 中,在WorkStation LiveCD 中没有问题。
  • 如果你想自定义分区的标签,可以使用 –label <分区label> ,例如,–label “Fedora-LiveCD”
  • *.iso 下载的 Fedora LiveCD 文件,不用多说了
  • /dev/sdb1 是安装的目标 U 盘分区,注意: 是分区,并非整个U 盘。 你可提前分好区,但记得目标分区必须标示为”boot”,否则工具会提示并退出。

命令执行完毕后,你的 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>
Copy after login
与首个系统的主要区别在于: 添加了–multi –livedir <安装目录名>
这个选项是告诉 工具:此次的 LiveCD 映像 安装于 /dev/sdb1 根目录下的 <安装目录名> 目录,这样就不会与原先安装的 LiveCD 冲突了。
只要你的 U 盘够大,要安装几个 LiveCD 映像 都可以。但是注意,在执行完此命令之后, 必须手动修改启动配置文件,否则你无法在启动时看到后面安装的 LiveCD 启动选项。


以本文为例,先安装了 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>
Copy after login

拷贝到 /syslinux/extlinux.conf 中。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1088146.htmlTechArticle制作多版本 Fedora 系统安装 U 盘 现在应该很少人使用光盘来安装系统了,几乎所有 BIOS 都支持USB启动。所以用 U盘 (或者移动硬盘/SD卡等移...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades Sep 12, 2024 pm 12:23 PM

In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

Samsung Galaxy S25 Ultra leaks in first render images with rumoured design changes revealed Samsung Galaxy S25 Ultra leaks in first render images with rumoured design changes revealed Sep 11, 2024 am 06:37 AM

OnLeaks has now partnered with Android Headlines to provide a first look at the Galaxy S25 Ultra, a few days after a failed attempt to generate upwards of $4,000 from his X (formerly Twitter) followers. For context, the render images embedded below h

IFA 2024 | TCL\'s NXTPAPER 14 won\'t match the Galaxy Tab S10 Ultra in performance, but it nearly matches it in size IFA 2024 | TCL\'s NXTPAPER 14 won\'t match the Galaxy Tab S10 Ultra in performance, but it nearly matches it in size Sep 07, 2024 am 06:35 AM

Alongside announcing two new smartphones, TCL has also announced a new Android tablet called the NXTPAPER 14, and its massive screen size is one of its selling points. The NXTPAPER 14 features version 3.0 of TCL's signature brand of matte LCD panels

Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69 mm body Vivo Y300 Pro packs 6,500 mAh battery in a slim 7.69 mm body Sep 07, 2024 am 06:39 AM

The Vivo Y300 Pro just got fully revealed, and it's one of the slimmest mid-range Android phones with a large battery. To be exact, the smartphone is only 7.69 mm thick but features a 6,500 mAh battery. This is the same capacity as the recently launc

Samsung Galaxy S24 FE billed to launch for less than expected in four colours and two memory options Samsung Galaxy S24 FE billed to launch for less than expected in four colours and two memory options Sep 12, 2024 pm 09:21 PM

Samsung has not offered any hints yet about when it will update its Fan Edition (FE) smartphone series. As it stands, the Galaxy S23 FE remains the company's most recent edition, having been presented at the start of October 2023. However, plenty of

New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades New report delivers damning assessment of rumoured Samsung Galaxy S25, Galaxy S25 Plus and Galaxy S25 Ultra camera upgrades Sep 12, 2024 pm 12:22 PM

In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

Xiaomi Redmi Note 14 Pro Plus arrives as first Qualcomm Snapdragon 7s Gen 3 smartphone with Light Hunter 800 camera Xiaomi Redmi Note 14 Pro Plus arrives as first Qualcomm Snapdragon 7s Gen 3 smartphone with Light Hunter 800 camera Sep 27, 2024 am 06:23 AM

The Redmi Note 14 Pro Plus is now official as a direct successor to last year'sRedmi Note 13 Pro Plus(curr. $375 on Amazon). As expected, the Redmi Note 14 Pro Plus heads up the Redmi Note 14 series alongside theRedmi Note 14and Redmi Note 14 Pro. Li

Motorola Razr 50s shows itself as possible new budget foldable in early leak Motorola Razr 50s shows itself as possible new budget foldable in early leak Sep 07, 2024 am 09:35 AM

Motorola has released countless devices this year, although only two of them are foldables. For context, while most of the world has received the pair as the Razr 50 and Razr 50 Ultra, Motorola offers them in North America as the Razr 2024 and Razr 2

See all articles