Product SiteDocumentation Site

3.2.2.2. Making Fedora USB Media in other Linux Distributions

To create Fedora USB media from a DVD or live image on a computer that uses a Linux distribution other than Fedora and those derived from Fedora, use one of the command-line procedures detailed in this section.
3.2.2.2.1. Making Fedora USB Media with livecd-tools

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.
This method works only on Linux operating systems.
  1. Download a DVD or live ISO image for Fedora as shown in Section 2.1.3, “Which Files Do I Download?”
  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. Many Linux distributions automatically mount USB media devices when you connect the device to your computer. If this is the case, unmount the device. The specific method to do this varies widely between Linux distributions and desktops. Some common methods include:
    • select File > Unmount if the operating system presents you with a window that displays the contents of the device.
    • right-click on an icon of the device and click Unmount.
    • click on an icon that represents ejecting the media — commonly, an upward-pointing triangle.
  5. At a command line, type su - to become root, and enter the root password when your system prompts you.
  6. Create a mount point for the image that you downloaded. For example, to use /tmp/livecd as the mount point, type mkdir /tmp/livecd and press Enter.
  7. Mount the image with the following command: mount -o loop /path/to/image/file/imagefile.iso /path/to/mount/point, where /path/to/image/file is the location of the image file that you downloaded, imagefile.iso is the image file, and /path/to/mount/point is the mount point that you just created.
  8. Change directory to the LiveOS directory of the image that you just mounted. mount point where you just mounted the Fedora image. For example, cd /tmp/livecd/LiveOS.
  9. Run the following command: ./livecd-iso-to-disk /path/to/image/file/imagefile.iso device, where /path/to/image/file is the location of the image file that you downloaded, imagefile.iso is the image file, and device is the USB media device.

Example 3.1. Mounting a Fedora live image file and using livecd-iso-to-disk to create live USB media

You have downloaded a Fedora live image, Fedora-Live-Desktop-x86_64-20-1.iso, to a folder named Downloads in your home directory. You have a USB flash drive plugged into your computer, named /dev/sdc, with a partition named /dev/sdc1
Become root:
su -
Make a mount point for the image:
mkdir /mnt/livecd
Mount the image:
mount -o loop /home/Username/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso /mnt/livecd
Change into the LiveOS directory of the live CD image:
cd /mnt/livecd/LiveOS
Run livecd-iso-to-disk to transfer the live image to the partition on your flash drive and make the flash drive bootable:
./livecd-iso-to-disk /home/Username/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso /dev/sdc1