How to Create an ISO File on Linux: 10 Steps (with Pictures)

Table of contents:

How to Create an ISO File on Linux: 10 Steps (with Pictures)
How to Create an ISO File on Linux: 10 Steps (with Pictures)

Video: How to Create an ISO File on Linux: 10 Steps (with Pictures)

Video: How to Create an ISO File on Linux: 10 Steps (with Pictures)
Video: How to Backup and Restore the Linux File System - Timeshift Tutorial 2024, May
Anonim

This wikiHow teaches you how to create an ISO file of your choice on Linux using a command line interface.

Step

Method 1 of 2: Creating an ISO File from a File Set

Create an ISO File in Linux Step 1
Create an ISO File in Linux Step 1

Step 1. Collect the files you want to merge into an ISO in a special folder in the home folder

Create an ISO File in Linux Step 2
Create an ISO File in Linux Step 2

Step 2. Open Terminal by clicking Menu > Terminal

Like Command Prompt on Windows or Terminal on Mac, the Terminal app lets you access a command line interface on Linux.

  • The Linux graphical interface may vary depending on the distribution you are using. Therefore, you may need to look for Terminal in the folder under Menu.
  • You may also be able to access Terminal via the desktop or the toolbar at the top/bottom of the screen.
Create an ISO File in Linux Step 3
Create an ISO File in Linux Step 3

Step 3. Use the command cd /home/username/ to access your user directory

Replace username with your username.

For example, if your username is "rhythm", enter cd /home/rhythm/

Create an ISO File in Linux Step 4
Create an ISO File in Linux Step 4

Step 4. Use the command mkisofs -ofilename.iso /home/username/foldername to create an ISO file

Replace "filename.iso" with the name of the ISO file you want, and "foldername.iso" with the name of the folder where you want the files to be merged.

  • For example, to create an ISO file with the name "accountcinta" from a file in the "ayutingting" folder, enter the command mkisofs -oaccountcinta.iso /home/username/ayutingting.
  • File and folder names are case-sensitive. Make sure you capitalize the correct file and folder names.
  • To name a file with multiple words, insert an underscore between the words. For example, to create a "love account" file, write "love_account".
Create an ISO File in Linux Step 5
Create an ISO File in Linux Step 5

Step 5. Press Enter to run the command

The files in the folder you selected will be collected into a single ISO file. Find the ISO file in the home directory.

If prompted, enter the password and press Enter to create the file

Method 2 of 2: Copying a CD into an ISO File

Step 1. Insert the CD-RW you want to copy

You cannot copy a CD with read/write protection (such as an audio CD or DVD movie) into an ISO file.

Create an ISO File in Linux Step 7
Create an ISO File in Linux Step 7

Step 2. Open Terminal by clicking Menu > Terminal

Like Command Prompt on Windows or Terminal on Mac, the Terminal app lets you access a command line interface on Linux.

  • The Linux graphical interface may vary depending on the distribution you are using. Therefore, you may need to look for Terminal in the folder under Menu.
  • You may also be able to access Terminal via the desktop or the toolbar at the top/bottom of the screen.
Create an ISO File in Linux Step 8
Create an ISO File in Linux Step 8

Step 3. Use the command cd /home/username/ to access your user directory

Replace username with your username.

For example, if your username is "tessy", enter cd /home/tessy/

Create an ISO File in Linux Step 9
Create an ISO File in Linux Step 9

Step 4. Use the command

dd if=/dev/cdrom of=/home/username/file-name.iso

to copy CDs.

Replace "/dev/cdrom" with the location of the CD drive, and "file-name" with the filename you want.

  • For example, to create a file with the name "srimulat" in the home folder, enter the command

    of=/home/tessy/srimulat.iso

  • .
  • If you have multiple CD drives on your computer, the CD drive will be labeled "0" and up. The first CD drive will have the label "cd0", the second CD drive will have the label "cd1", and so on.
Create an ISO File in Linux Step 10
Create an ISO File in Linux Step 10

Step 5. Press Enter to run the command

The files on the CD will be copied into an ISO file in your home folder, as long as you enter the correct drive location.

If prompted, enter the password and press Enter to create the file

Tips

Most Linux distributions include a file manager that allows you to create ISO files via the context menu

Recommended: