I have some ISO images and would like to extract them to a hard-disk. They are not OS images, I think they are music or audio books, I Don't know until they are extracted. Thanks
8 Answers
sudo apt-get install p7zip-full
7z x disk.iso
This dumps the content of the ISO directly in the current working directory. To optionally create a disk/ subdirectory and dump there instead you can use the -o option:
7z x -odisk disk.iso
See also: https://unix.stackexchange.com/questions/70738/what-is-the-fastest-way-to-extract-an-iso
See also:
- create ISO: How to create an ISO image from a bunch of files on the file system? It seems 7z can only unpack but not create ISO files?
- edit ISO: How to edit ISO Images (Including Bootable ISOs)
Extract ISO from stdin
7z does not seem to be able to do it and fails with:
Command Line Error:
Cannot find archive name
but bsdtar from libarchive-tools can*:
sudo apt install libarchive-tools
bsdtar -x <disk.iso
Running:
\time -v bsdtar -x <../ubuntu-18.04-desktop-amd64.iso
gives:
Maximum resident set size (kbytes): 7040
so it seems to have only used 7 MB RAM memory to decompress the 1.8 GB ISO, so it looks like it is memory efficient and doesn't read the entire ISO into memory.
Tested on Ubuntu 24.04, libarchive-tools 3.7.2, 7zip 23.01, with the Ubuntu 18.04 ISO: ubuntu-18.04.1-desktop-amd64.iso which you can obtain with:
wget http://old-releases.ubuntu.com/releases/18.04.1/ubuntu-18.04-desktop-amd64.iso
*: thanks to Vadim Kantorov in the comments
- 31,312
If you are comfortable with the command line you can make use of the loop-back device.
All you'll need is an empty folder, so either use an existing one or create an new one:
mkdir test_folder
then run:
sudo mount -o loop,ro -t iso9660 filename.iso test_folder
If you are not sure about the filesystem type of the .iso, your system might be able to auto-detect it. This works on Ubuntu 18.04 with the Ubuntu installation ISOs for example:
sudo mount filename.iso test_folder
Now you can just cd test_folder or just ls test_folder to see the contents. No need to extract anything.
To "remove" the .iso, just type:
umount /path/to/test_folder
- 31,312
- 2,266
- 5
- 22
- 24
In Ubuntu, you can open them in Archive Manger:
You can add files .isos, and extract them.
To open it, right-click on the file and select Open With →, and Archive Manager. If the option is available, you can also mount the .iso image as though it was a disc in the computer.
If it is not installed (it should be, I think it is part of the desktop), use this:
sudo apt-get install file-roller
You may also get an option to right-click and Extract Here to extract the contents of the iso files, and other compressed files.
- 30,732
7z has a bug that truncates file names longer than 64 characters so I used CMake instead:
cmake -E tar xf filename.iso
(but any other libarchive-based tool should work, including bsdtar)
- 423
Easyest way to extract iso file in linux is
Open terminal and type
sudo su root
enter your password then type
mount -t auto -o loop "Path/location to iso" /where u want to mount
There is no official application to handle ISO-files on a Ubuntu plasma desktop environment, like Ubuntu Studio.
You can install Double Commander and extract an ISO directly using your mouse with right click: extract here.
- 157
- 2
- 9
I had an iso file on a DVD. I put the DVD in the drive, and after it was recognized, one of the options was Open with File Manager. I chose that. A tab was opened in Dolphin. I selected all, hit Copy, then pasted into a folder on my hard drive. Finished.
- 11
- 2
Wikipedia:https://en.wikipedia.org/wiki/AcetoneISO
AcetoneISO is often referred to as the Daemon Tools equivalent for GNU/Linux. This mighty software can mount ISO, MDF, BIN and NRG files and burn ISO images to optical discs. It supports file conversion from BIN, MDF, NRG, DAA, IMG, DMG, CDI and other formats to ISO, as well as extracting content from them. You can use it to create ISO images from files and folders on your computer, as well as to encrypt and decrypt existing images, it has also the ability to split big image files, or to merge two or more smaller ones, this software is under the GPL License.
I didn't test it myself.
- 517