PDF download Download Article
Create an ISO file from files, folders, a CD, or a DVD
PDF download Download Article

This wikiHow guide teaches you how to turn a group of files into an ISO file on a Linux computer. You can use the Linux command line (terminal) to do this, or try a simple free graphical program called Brasero. Whether you choose commands or a GUI app, you can easily create an ISO on Linux from existing files and folders or by copying a CD or DVD.

Creating an ISO in Linux

  • If you use a Debian-based Linux like Ubuntu or Linux Mint, install xorriso using "sudo apt install -y xorriso".
  • On Red Hat-based Linux distros like RHEL and CentOS, install genisoimage using "sudo dnf install -y genisoimage".
  • Both xorriso and genisoimage are pretty complicated if you're new to Linux. If you'd rather use a point-and-click program, install Brasero.
Method 1
Method 1 of 4:

From Files & Folders (Terminal)

PDF download Download Article
  1. 1
    Install an ISO creation tool. If you want to use Terminal commands to create an ISO on Linux, you'll need to install a package first. The package you'll need varies by Linux distribution:
    • Ubuntu, Debian, Linux Mint, POP!_OS, Arch Linux – Install xorriso. Here's how:
      • If you use Apt (Debian, Ubuntu, Mint, POP):
      • If you use Pacman (Arch):
        • Type sudo pacman -S xorriso and press Enter.
    • Red Hat, CentOS, Rocky, Fedora – Install genisoimage. Here's how:
      • Open a Terminal.
      • Type sudo dnf install -y genisoimage and press Enter.[1]
    • If you'd rather use a graphical program to create an ISO, jump to From Files & Folders (Brasero).
  2. If the files aren't in a single directory, create a new directory for them. This way, you can easily create an ISO from the folder.
    Advertisement
  3. 3
    Create a standard ISO. If you don't need the ISO file to be bootable, use the following commands:
    • Using xorriso:[2]
      • xorriso -as mkisofs -o myISO.iso -J -R /path/to/folder
        • Replace /path/to/folder with the path to the directory containing the files you want to turn into an ISO, and myISO.iso with a name for your ISO image.
    • Using genisoimage:
      • genisoimage -o myfiles.iso -J -R /path/to/folder.
        • Replace /path/to/folder with the path to the directory containing the files you want to turn into an ISO, and myISO.iso with a name for your ISO image.
  4. 4
    Create a bootable ISO. If you need to be able to boot from the ISO from the BIOS or UEFI (xorriso only), you'll run the command a little differently. The command is very long, and you'll need to make a few changes to it before running it:[3]
    • Using xorriso: xorriso -as mkisofs -o myISO.iso -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -isohybrid-gpt-basdat -J -R \path\to\folder
      • Replace "/myISO.iso" with the name you want to give your ISO image, and "/path/to/folder" with the path to the folder containing the files you're turning into an image.
    • Using genisoimage:[4] genisoimage -o myISO.iso -R -J -l -v -V "MY_ISO" -hide-rr-moved -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -pad /path/to/folder
      • Replace "/myISO.iso" with the name you want to give your ISO image, and "/path/to/folder" with the path to the folder containing the files you're turning into an image.
  5. Advertisement
Method 2
Method 2 of 4:

From Files & Folders (Brasero)

PDF download Download Article
  1. 1
    Install Brasero if you don't already have it. If you prefer using a simple graphical user interface (GUI) to create an ISO in Linux, Brasero is a great tool. You can install it from your distribution's package manager. For example, on Debian-based systems, use sudo apt install brasero.[5]
  2. 2
    Open Brasero and click Data Project. Once Brasero is installed, you will find it in your application list. If you don't see it, you can launch it from a terminal by typing brasero & and pressing Enter.
  3. 3
    Add the files you want to include in your ISO image. Click the green +, then select the folder or files you want to include in your ISO.[6]
    • If you want the files to be compatible with a Windows computer, click Rename for Full Windows Compatibility if prompted.
  4. 4
    Click Burn. This opens a window that prompts you to save the file.
  5. 5
    Name the ISO file and click Create Image. Be sure to choose a location you'll remember so you can find the file easily. Once the ISO is ready, it will appear in the selected location.[7]
  6. Advertisement
Method 3
Method 3 of 4:

From a CD or DVD (Terminal)

PDF download Download Article
  1. You cannot rip an ISO file from CDs with read/write protection (e.g., audio CDs or movie DVDs).
  2. 2
    Locate the name of your optical drive. To do so, type lsblk, then press Enter. Your optical drive will be called something like /dev/sr0.[8]
  3. Type dd if=/dev/cdrom of=myISO.iso, making sure to replace the "/dev/cdrom" section with your CD's location and the "myISO" with your preferred ISO file name. This rips the CD or DVD to an ISO image.[9]
  4. As long as your CD's directory is correct, your computer will create an ISO file from the CD's contents and place it in the home directory.
    • You may be prompted to enter your password before the ISO file is created. If so, type in your password and press Enter.
  5. Advertisement
Method 4
Method 4 of 4:

From a CD or DVD (Brasero)

PDF download Download Article
  1. 1
    Install Brasero if you don't already have it. If you want to rip a CD or a DVD to an ISO image with a simple point-and-click interface, Brasero is a great option. You can install it from your distribution's package manager. For example, on Debian-based systems, use sudo apt install brasero.[10]
  2. 2
    Open Brasero and click Disc Copy. Once Brasero is installed, you will find it in your application list. If you don't see it, you can launch it from a terminal by typing brasero & and pressing Enter.[11]
  3. 3
    Select your optical drive from the list. If you haven't already inserted the disc you want to rip to ISO, insert it now.[12]
  4. 4
    Choose an image file to write to. Choose a location to save your ISO image, then enter a name for it. For example, myISO.iso.[13]
  5. 5
    Click Copy. This copies the CD or DVD to an ISO image at the selected location.
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Will the created ISO from Method 1, Step 4 be bootable?
    Living Concrete
    Living Concrete
    Top Answerer
    No, it will not be bootable.
  • Question
    Is it possible to use an audio CD to create an ISO image?
    Community Answer
    Community Answer
    Yes, this works with nearly every CD (some DRM-secured discs excluded).
  • Question
    How do I rearchive Linux systems into ISO files?
    Somone
    Somone
    Community Answer
    You will have to get a program to create disk images. Clonezilla is one of them.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

  • Most Linux distributions have a file manager that will allow you to create an ISO file using the right-click menu as well.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • Not all versions of Linux function identically to one another. If you're unable to find your CD's path or the ISO command isn't working, you can check your distribution's manual online.
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 1,141,586 times.
How helpful is this?
Co-authors: 24
Updated: September 20, 2025
Views: 1,141,586
Categories: Linux
Article SummaryX

1. Put the files in one directory.
2. Open a terminal window.
3. Use "cd" to get to your home directory.
4. Type "mkisofs -o destination-filename.iso /home/username/folder-name"
5. Press Enter.

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,141,586 times.

Is this article up to date?

Advertisement