Product SiteDocumentation Site

3.2.2. Making Fedora USB Media in UNIX, Linux, and Similar Operating Systems

A graphical tool is available to create Fedora USB media on systems that run Fedora or operating systems derived from Fedora. To create Fedora USB media on other UNIX or Linux operating systems (including Mac OS X), use the command-line method described in Section 3.2.2.1.3, “Making Fedora USB Media with dd.

3.2.2.1. Creating Fedora USB Media in Fedora and similar Linux distributions

Graphical and command-line tools are available to create Fedora USB media on computers that run Fedora and Linux distributions derived from Fedora. The command line tools work with both Fedora DVD and live images, but the graphical tool works only with live images. To create Fedora USB media from the distribution image or minimal boot media image, use one of the command line methods described in Section 3.2.2.1.2, “Making Fedora USB Media with livecd-tools and Section 3.2.2.1.3, “Making Fedora USB Media with dd.
3.2.2.1.1. Making Fedora USB Media with a graphical tool

Important — Enable Extra Packages for Enterprise Linux

To perform this procedure on Linux distributions derived from Fedora, enable the Extra Packages for Enterprise Linux (EPEL) repository. Refer to http://fedoraproject.org/wiki/EPEL/FAQ#howtouse for instructions.

Note — This Method Is Not Destructive

This method is not destructive, so existing data on the media is not harmed. Nevertheless, it is always a good idea to back up important data before performing sensitive disk operations.
  1. Install the liveusb-creator on your system with your graphical package manager, or the following command:
    su -c 'yum -y install liveusb-creator'
  2. Plug in your USB media.
  3. Launch LiveUSB Creator, either from a menu or by entering liveusb-creator on the command line. Enter the root password for your system when LiveUSB Creator prompts you for it.
  4. LiveUSB Creator can create live USB media either from an image file that you downloaded previously, as described in Section 2.1.3, “Which Files Do I Download?”, or it can download an image file from the Internet. Either:
    • click the Browse button under the Use existing LiveCD label, browse to the location where you previously downloaded a Fedora Live ISO file, and select that file.
    • select a Fedora Live ISO file from the drop-down menu that LiveUSB Creator presents under the Download Fedora label. Note that image files are large and that it is probably impractical to use LiveUSB Creator to download an image file if you do not have a broadband connection to the Internet.
  5. Click Create Live USB.
3.2.2.1.2. Making Fedora USB Media with livecd-tools

Important — Enable Extra Packages for Enterprise Linux

To perform this procedure on Linux distributions derived from Fedora, enable the Extra Packages for Enterprise Linux (EPEL) repository. Refer to http://fedoraproject.org/wiki/EPEL/FAQ#howtouse for instructions.

Note — This Method Is Not Destructive

This method is not destructive, so existing data on the media is not harmed. Nevertheless, it is always a good idea to back up important data before performing sensitive disk operations.
  1. Install the livecd-tools package on your system with your graphical package manager, or the following command:
    su -c 'yum -y install livecd-tools'
  2. Plug in your USB flash drive.
  3. Find the flash drive's device name. If the media has a volume name, use it to look up the device name in /dev/disk/by-label, or use the findfs command:
    findfs LABEL=MyLabel
    If the media does not have a volume name or you do not know it, you can also use the dmesg command shortly after connecting the media to your computer. After running the command, the device name (such as sdb or sdc) should appear in several lines towards the end of the output.
  4. Use the livecd-iso-to-disk command to write the ISO image to the media:
    su -c 'livecd-iso-to-disk the_image.iso/dev/sdX1'
    Replace sdX1 with the device name for the partition on the USB media. Most flash drives and external hard disks use only one partition. If you have changed this behavior or have oddly partitioned media, you may need to consult other sources of help.
3.2.2.1.3. Making Fedora USB Media with dd

Warning — These instructions could destroy data

When you perform this procedure any data on the USB flash drive is destroyed with no warning. Make sure that you specify the correct USB flash drive, and make sure that this flash drive does not contain any data that you want to keep.

Note

The Fedora Project recommends using livecd-tools rather than dd for creating USB media whenever possible.
  1. Plug in your USB flash drive.
  2. Find the flash drive's device name. If the media has a volume name, use it to look up the device name in /dev/disk/by-label, or use the findfs command:
    findfs LABEL=MyLabel
    If the media does not have a volume name or you do not know it, you can also use the dmesg command shortly after connecting the media to your computer. After running the command, the device name (such as sdb or sdc) should appear in several lines towards the end of the output.
  3. Use the dd command to transfer the boot ISO image to the USB device:
    su -c 'dd if=path/image_name.iso of=/dev/device bs=block size'
    where path/image_name.iso is the boot ISO image file that you downloaded and device is the device name for the USB flash drive. Ensure you specify the device name (such as sdc), not the partition name (such as sdc1). The bs option specifies the block size; it can be omitted, but specifying it will speed up the process. For example:
    su -c 'dd if=~/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso of=/dev/sdc bs=512k'