Javatpoint Logo
Javatpoint Logo

Linux ISO

First, we will try to know the ISO image. An ISO image is a disk image (archive file) of an optical disc with a conventional International Organization for Standardization (ISO) format. Typically, the ISO image file includes the .ISO file extension.

The "ISO" term comes through an ISO 9660 file system which is used with DVD media and CD-ROM. However, the ISO image could also include the UDF file system as the UDF is a backward compatible file to ISO 9660.

We can mount the ISO images or files by the loop devices in Linux. It's possible to describe the transfer functions (for decryption or encryption of other objectives) with loop devices. This article specifies how we can mount the ISO files in Linux.

In Linux, Mount ISO File

1. First of all, we have login as a root user. The command is as follows:


Linux ISO

2. Go to the folder where the ISO file is located.


Linux ISO

3. On Linux, we need to establish a mount point directory.


Linux ISO

4. We need to check the /mnt directory. To do so, the command is as follows:


Linux ISO

5. We need to mount our ISO file in /mnt directory.


Linux ISO

6. Now, we will mount the ISO file using the following command:

7. Check the /mnt directory:


Linux ISO

We have successfully mounted the ISO file in /mnt directory.

What is Loop Device?

Through the man page:

A loop device is the block device. It can map its data blocks not for any physical device like an optical disk drive or hard disk, but the regular file blocks within a file system or for other block devices.

It could be helpful for example to give any block device for an image of a file system saved in a file. Hence, it could be mounted using the mount command.

A loop device can be defined as a pseudo-device. It establishes a file that is accessible as any block device. Often, loop devices are used for floppy disc images and CD ISO images. Mounting any file including a filesystem accessible by such the loop mount creates the files in that filesystem.

They occur in a mount point directory with the below commands of Linux. We will apply the commands of the mount.

The process to mount the ISO images/file in Linux

First, we should log in as a superuser if not a superuser then we can switch to the superuser with the help of the following command:


Linux ISO

We can use the following command:


Linux ISO

Now, make a directory, i.e., mount point with the help of the following command:


Linux ISO

Also, we can use the following command:


Linux ISO

As i have already mounted the iso file

We can verify it using the mount command or df command:


Linux ISO

Switch directory for listing files saved in the ISO image:


Linux ISO

Unmount ISO image

On Linux, we can use a command to unmount an ISO image/file which is mentioned below:

Or,

To verify it, we can run the following command:

or,

or,


Linux ISO

Mount the ISO file with the GUI app in Linux

We can try a utility for image management. It is known as furiusisomount:

It is a general application to mount NG, MDF, BIN, IMG, and, ISO image files without burning them into the disk. Also, it gives some features which are mentioned as follows:

Automatically, it mounts NRG, MDF, BIN, IMG, and ISO image files.

It establishes the mount point in our home directory.

It unmounts various image files.

Mount ISO file with KDE GUI or Linux Gnome

One can refer to the file manager app of the files for browsing and organizing the files on our system. Also, we can refer to it to handle files over storage devices (such as iso images, external hard disks), on network shares, and file servers. Open the file in which our .iso file is saved on our computer:

  • Choose the .iso image.
    Linux ISO
  • Right-click on the .iso image.
  • Select the option, i.e., "Open With Disk Image Mounter".
  • A device icon will occur on the left side of files.
    Linux ISO
  • Press on this icon to check the files.
    Linux ISO
  • Right-click over the device icon on the left side in Files to unmount an iso file.
  • Choose the option, i.e., "Unmount".
    Linux ISO

Burn the ISO Image

Burning the ISO to any physical disc is a very efficient task when we wish to make a disc that we will use for installing the OS or software onto another system. Particularly, it is helpful when we are installing an OS (or making a utility disc) and require to use that disc for booting a system. Also, it can be handy to create a disc physical backup copy, or when we just require to provide a copy to anyone else.

Windows 10, 8, and 7 have an aspect to burn the ISO file to disc. All we need to do is embed a writable optical disc. Then, right-click on the ISO image or file and choose the option, i.e., "Burn Disk Image".

Important: If we do not have any optical disc writer on our PC, we won't notice the command. If we also have an app for compression installed (such as 7-Zip), and it is related to the file extension of the ISO file, we also won't notice the command.

Extract the ISO Image

If we don't wish to burn the ISO image to disc or mount it, but still require to access the files, we can extract all the contents to our PC. For this, we will require a third-party application such as 7-Zip or WinRAR. We suggest the 7-Zip app around here as it is open-source, free, and plenty powerful.

7-Zip associates the file extension, i.e., .iso with the application when we install it. Hence, all we need to do is double-click on the ISO image for opening it up and see its contents. It can take up to minutes depending on the ISO image size, so be patient.

We can copy anything we want from an ISO image to a normal folder only by using the dragging and dropping method. Also, we can extract the ISO full content to a regular folder if we prefer.

Just right-click on the ISO and point to the menu of 7-Zip. Then, select a command for extraction.

Extract Option Explanation

  • The command, i.e., "Extract Files" enables us to select a location.
  • The command, i.e., "Extract Here" enables us to extract files to a similar location as an ISO
  • The command, i.e., "Extract To folder_name" make a new folder within that folder where we wish to extract the file.

We can also extract the iso file manually. To do so, just "right-click" on the iso file and select the "Extract here" option.

It will take minutes to extract the file.

Linux ISO
Linux ISO

Note: Other apps for compression such as WinRAR act pretty much in a similar way.

There is another necessary thing to note here.

  • If we install any compression app such as WinRAR or 7-Zip, and we let the app relate itself with the ISO files, we will no longer find the built-in commands inside File Explorer to work with those files of image.
  • It is good to have Windows Explorer related to the ISO files as we can right-click on them and use the commands of compression apps whenever we wish.
  • All we lose is the facility to double-click on them for opening them inside the compression app.
  • If we have already installed anyone of these compression apps, we can re-associate the file extension of the ISO with Windows Explorer.
    For this, we need to implement the following steps:
    Settings > Apps > Default Apps
  • Scroll down and select the link, i.e., "Choose default apps by file type" on the right side.
  • The next window will display a long file extension list. Scroll down to the file extension (.iso).
  • Select whatever app is related to the extension currently on the right side.
  • Then, select the option, i.e., "Windows Explorer" in the popup menu.






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA