How to Create Fedora Live USB Media

How to create a Fedora live USB media is introduced in this post. We can boot to Fedora operating system environment through a live USB system in the USB flash media on a USB-bootable computer without writing the computer’s hard disk. We can also install Fedora operating system from the live system environment.

Remember to backup data in the USB stick before proceeding the method below.

Command Line Method

This is the method I prefer. It’s straight forward and easy to follow as long as you are some how familiar with Linux.

Download the Fedora Live ISO image

First, download Fedora Live ISO image of different releases version.

You can even download an boot.iso and netinst.iso with smaller size if you want to install from network of local image. The method in this part works with these images too.

Directly copy the image to USB media

Here, we introduce 2 method.

Method 1: use the livecd-iso-to-disk tool

This is the suggested method as it can handle many situations for you comparing to the following dd method.

If you have not installed the tool, install it by dnf install livecd-tools as root.

Make sure the USB is already partitioned and one disk partition is created as ext4 with sufficient space.

Then you can create the disk by command

# livecd-iso-to-disk ./fedora-image.iso /dev/sdXy

Here, the /dv/sdXy is the partition’s path, such as sdb1. livecd-iso-to-disk may require you to set/format/modify the disk partition with certain commands.

Method 2: use the dd tool

We can use dd to make a direct copy from the image to USB media. Remember to backup your data on the USB media since all data will be lost after dd.

# dd if=./Fedora-Live-i686.iso of=/dev/sdX bs=8M

/dev/sdX is device name of the USB stick instead of the partition name (sdc is right, sdc1 is wrong).

Test the Live USB media

We can use qemu or other virtualization tools to try boot from the Live USB media we created.

# umount /dev/sdbX
# qemu -hda /dev/sdX -m 256 -vga std

/dev/sdX is the Live USB media’s device name.

Only if it can boot, we know the media works and we can close the virtual machine.

Graphical Method with Liveusb-creator

This method can be used on both Linux and Windows. For windows users the liveusb-creator application can be downloaded from Liveuse-creator homepage.

For Fedora users, liveusb-creator is already in the repository.

# yum install liveusb-creator

Run liveusb-creator and select the “Live CD image” path and the “Target Device”, and then click “Create Live USB”. The application will write the Live image to the USB stick.

After it finishes, we can also use qemu as described above to test the Live USB media.

Similar Posts

  • MFC程序使用系统风格界面

    VC6默认编译出来的程序在XP下Luma风格下运行也是Windows的经典界面, 有损界面的美观与统一. VC2008默认设置下如果不是使用的unicode也是如此. 本文给出使VC6和VC2008可以编译出使用系统界面风格的解决方案. 1. 使VC6编译出使用系统风格的程序 步骤如下: 1) 创建一个.manifest文件的资源. 在res/文件夹下创建一个跟以程序名加.manifest的文件, 如果程序为test.exe, 则创建test.exe.manifest 文件可由此下载: https://www.systutorials.com/t/g/programming/resultcollector.manifest/ 注意要使用utf-8编码保存。 2) 将新定义的资源加入到.rc2文件中, 类型设为24. 打开res/文件夹下的.rc2文件, 在其中加入如下定义: 1 24 MOVEABLE PURE “res/test.exe.manifest” 其中的文件地址按1)步中修改的设置即可. 之后编译即可, 为了使程序界面可能充分利用系统的界面特性, 可以将界面字体设置为TrueType类型的, 利用Windows XP等系统的屏幕字体平滑特性. 2. 使VC2008编译出使用系统风格的程序 在VC2008下就比较简单了, 如果程序字符集使用unicode则默认就是使用系统界面风格的, 如果选择其它的类型, 则编辑下stdafx.h即可. 最后面部分找到这么一段: #ifdef _UNICODE #if defined _M_IX86 #pragma comment(linker,”/manifestdependency:”type=’win32′ name=’Microsoft.Windows.Common-Controls’ version=’6.0.0.0′ processorArchitecture=’x86′ publicKeyToken=’6595b64144ccf1df’ language=’*'””) #elif defined _M_IA64 #pragma comment(linker,”/manifestdependency:”type=’win32’…

  • How to disable automatic comment insertion in Vim

    How to disable automatic comment insertion in Vim? Add to ~/.vimrc: au FileType c,cpp setlocal comments-=:// comments+=f:// More: http://vim.wikia.com/wiki/Disable_automatic_comment_insertion Read more: Vim: Pasting text as is in Vim in Paste Mode Profiling Vim to Find Out Which Plugin Makes Vim Slow How to disable an option with a bash script? How to disable all swaps…

  • How to redirect HTTP to HTTPS in Apache with mod_rewrite?

    I’d like to force using of https on one of my site. How to redirect HTTP to HTTPS in Apache with mod_rewrite? You can put these lines to the .htaccess file in the directory from which you would like to redirect HTTPS to HTTP: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Read more: How…

2 Comments

  1. Hey,

    I’ve just had a hell of a lot of trouble trying to make this LiveUSB. I’ve had to use the command line since yum isn’t working atm and I can’t fetch the software.

    I used dd but with the if= param, if I just used Fedora.iso, then it failed. When I used a ./ in front of that, it worked.

    So can you tell me what the ./ does when using dd?

    Thanks in advance for the tips!

    1. ./ means under the current directory. Many programs recognize the direct file name without ./, such as ‘ls Fedora.iso’. Seems dd requires that the ./ should be explicitly added if the file is in current directory.

Leave a Reply

Your email address will not be published. Required fields are marked *