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.

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 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 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 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

May be interested

  • How to run 2 or more Terminal commands at the same time on LinuxPhoto of How to run 2 or more Terminal commands at the same time on Linux
    if you use linux, you probably know how to use useful commands to work with files, install software and launch programs. however, one thing you don't know is that you can still run multiple commands at the same time.
  • This is how to 'recover' a failed USB drive on LinuxPhoto of This is how to 'recover' a failed USB drive on Linux
    often users use usb drives to store data securely. however in some cases the usb drive may be faulty or simply not work. if you are using a linux operating system and you have a similar error on the usb drive, then you can use the commands to restore the usb drive.
  • Instructions to disable Root account on LinuxPhoto of Instructions to disable Root account on Linux
    if you're a linux user, you've probably heard the phrase 'root'. basically root is the account that has complete control of the entire linux system, which means that when using a root account you can change any settings on the system. this can cause extremely dangerous problems for system security, and advice if you are a 'high-end' user should use root.
  • Display IP address on the system tray on UbuntuPhoto of Display IP address on the system tray on Ubuntu
    in some cases, troubleshooting a problem requires a computer ip address to check the system ip address. if you are using ubuntu and want to find the available ip address on your computer, you can display ip address in the system tray.
  • Running Linux on Windows 10 does not require a virtual machine, here are 18 things you should knowPhoto of Running Linux on Windows 10 does not require a virtual machine, here are 18 things you should know
    the windows subsystem for linux (wsl) feature - also called bash, helps programmers run ubuntu directly on windows without the need for a virtual machine. the following article will help readers better understand linux tools - wsl.
  • Which Linux distros will Windows 10 put into Windows 10?Photo of Which Linux distros will Windows 10 put into Windows 10?
    microsoft is trying to support linux by announcing three of the most popular linux distros will be available in the windows store. that means ubuntu, fedora and opensuse will soon appear in windows 10.