How to Extract and Copy Files from ISO Image in Linux?
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
Now mount the iso image in a newly created directory using the below command:
$ mount -o loop isofilename.iso /mnt/iso
Change the directory to /mnt/iso:
You can verify the content of iso using the ls command:
You can now copy files to the /tmp directory easily:
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
Now you can extract the iso file using the below command:
$ sudo 7z x ubuntu-20.04.2.0-desktop-amd64.iso
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:
Then right-click on it, and you will see the options menu:
Now click on the extract here option in the options menu:
Now you should see extracting pop-up wait till it finishes:
After successful extract you can see your file by clicking show files:
Now you can copy any file you want by clicking right-click:
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.