Open In App

How to Extract and Copy Files from ISO Image in Linux?

Improve
Improve
Like Article
Like
Save
Share
Report

The term ISO was derived from the ISO 9660 file system, which is commonly used by optical media. An ISO image is a full copy of everything contained on a physical optical disc, such as a CD, DVD, or Blu-ray disc, including the file system. There is no compression and they are a sector-by-sector copy of the disc. ISO images are designed to allow you to save an exact digital copy of a disc and then use that image to burn a new disc that is an exact copy of the original. Most operating systems (and many utilities) allow you to install an ISO image as a virtual disc, which means that all of your apps can treat it as if it were a real optical disc.

In certain cases, you can need to extract a single file or multiple files from an ISO image. Here we are going to see how to extract and Copy Files from ISO Image in Linux

Extracting ISO Image:

The loop system can be used to mount ISO files. The mount command is needed. First, make a directory using the mkdir command:

$ mkdir /mnt/iso
Extract and Copy Files from ISO Image in Linux

Making directory

Now mount the iso image in a newly created directory using the below command:

$ mount -o loop isofilename.iso /mnt/iso
Extract and Copy Files from ISO Image in Linux

Mount iso to the directory

Change the directory to /mnt/iso:

Change directory

You can verify the content of iso using the ls command:

$ ls
Extract and Copy Files from ISO Image in Linux

Verifying content

You can now copy files to the /tmp directory easily:

Extract and Copy Files from ISO Image in Linux

Copying files

Extracting ISO file using 7zip:

7-Zip is a free and open-source file archive, a program that compresses files and stores them in compact containers called “archives.”

First, install 7zip using the below command:

$ sudo apt-get install p7zip-full
Extract and Copy Files from ISO Image in Linux

Installing 7zip

Now you can extract the iso file using the below command:

$ sudo 7z x ubuntu-20.04.2.0-desktop-amd64.iso
Extract and Copy Files from ISO Image in Linux

Extracting iso file

Now you can copy files from extracted iso using the above steps.

Extract using GNOME manager:

You can also extract the archive using inbuilt GNOME manager just follow the below steps:

First, find your iso file where it is located:

Extract and Copy Files from ISO Image in Linux

Locate your file

Then right-click on it, and you will see the options menu:

Extract and Copy Files from ISO Image in Linux

Right-click on it

Now click on the extract here option in the options menu:

Extract and Copy Files from ISO Image in Linux

Extract file

Now you should see extracting pop-up wait till it finishes:

Wait till it finishes

After successful extract you can see your file by clicking show files:

You can view your files by clicking show files

Now you can copy any file you want by clicking right-click:

Copy files

In this article, we show you how to extract ISO files using 3 different easiest methods. That said, we appreciate your sticking with us to the end, and we hope the guide was as useful as we hoped.


Last Updated : 20 Apr, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads