How to create an ISO file on Linux

You may know that an ISO file can be burned to a CD / DVD or USB drive, but do you know that you backup or store your files and folders into an ISO file? will be better? With an ISO file, you can burn it to a CD / DVD as a backup or simply mount it as an external drive and access files from within.

You may know that an ISO file can be burned to a CD / DVD or USB drive, but do you know that you backup or store your files and folders into an ISO file? will be better? With an ISO file, you can burn it to a CD / DVD as a backup or simply mount it as an external drive and access files from within.

If you want to back up the contents of a disc or if you have a bunch of files and folders that you want to back up and store, here's how you can apply to create ISO files in Linux.

How to create an ISO file on Linux Picture 1How to create an ISO file on Linux Picture 1

1. Through Archive Manager

If using Ubuntu (or Gnome Desktop), you can easily create an ISO file using the Archive Manager application.

1. Open the Manager file. Select the files and folders you want to backup. Right-click on it and select Compress .

How to create an ISO file on Linux Picture 2How to create an ISO file on Linux Picture 2

2. Select the ".iso" option and then click Create . This process will compress the selected files and folders to an ISO file.

How to create an ISO file on Linux Picture 3How to create an ISO file on Linux Picture 3

2. Through the command line

dd is one of the useful commands that you can use to create an ISO file. All you need to do is identify the source and destination, and take steps to create an ISO file.

Use the basic statement below:

dd if = source of = destination

For example, if your CD-ROM drive is mounted at '/ dev / hdc,' and you want to back up the contents of the drive into a file 'my-cd-backup.iso', then you can use it. Use the following command:

dd if = / dev / hdc of = / home / username / my-cd-backup.iso

Source is not a CD-ROM drive. It can be a hard drive partition, or a portable hard drive or file path, although it does not work on a directory.

Alternatively you can use the mkisofs command to create an ISO file. The highlight of the mkisofs command is to give you lots of options to customize the ISO file created to your liking.

Use the basic statement below:

mkisofs -o destination-filename source

For example, use the command below to back up your Home folder:

mkisofs -o myHomeBackup.iso / home / username

You can request mkisofs to activate the Rockridge extension by setting the -R option:

mkisofs -R -o myHomeBackup.iso / home / username

Activate Joliet extension with flag -J:

mkisofs -R -o myHomeBackup.iso / home / username

In addition, you can set the Volume name (-V option) for the ISO file (in case if you burn the ISO file to a CD, the volume name will be used as the CD's name).

mkisofs -V "Home Folder Backup" -o myHomeBackup.iso / home / username

Also you can prevent another file from being added to the ISO file with the "-m" option. It supports both * characters, so you can use the following command:

mkisofs -m ". *" -o destination source

Refer to some of the following articles:

  1. 7 commands to manipulate the most basic files and folders everyone must know
  1. Ubuntu Bash tutorial on Windows 10
  1. Anyone should know these basic Linux commands

Good luck!

3.7 ★ | 9 Vote