19

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

24

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
| improve this answer | |
  • I like this answer - I don't have "copies" of the contents of the ISO floating around... – barrypicker Sep 21 '14 at 16:39
  • leaving -t iso9660 worked for WIndows 10 iso. – KrIsHnA Aug 4 '17 at 11:15
  • I got this error: mount: /dev/loop0 is write-protected, mounting read-only. Do you have any idea why I got this? – wanderer0810 Nov 20 '17 at 0:29
  • It's not an error. It's just informing you that the image ismounted read-only. If you ls the folder you'll see the contents of the image. – hmayag Nov 25 '17 at 14:52
  • You need root privileges to use mount with -o, I also added the -rooption. – mook765 Oct 5 '18 at 3:12
21
sudo apt-get install p7zip-full
7z x disk.iso

See also: https://unix.stackexchange.com/questions/70738/what-is-the-fastest-way-to-extract-an-iso

See also:

Tested in Ubuntu 18.04 with the Ubuntu 18.04 ISO itself: ubuntu-18.04.1-desktop-amd64.iso.

| improve this answer | |
  • 1
    This is an actual answer. Others just tell to mount and then copy. I can even burn a CD , climb on eiffel tower, wear a blindfold, and copy the contents, while standing on my head, but that's not the point. If there is such a simple command "7z x". Why bother with all that complication? – Sahil Singh Sep 21 '16 at 13:31
  • 7z doesn't preserve permissions when extracting an ISO – mheyman Sep 27 '17 at 11:36
  • 1
    @mheyman thanks for the report. And mount does is that correct? If that is the case it would be good to have a link to a feature request in their tracker. – Ciro Santilli 郝海东冠状病六四事件法轮功 Sep 27 '17 at 12:38
  • 1
    Mounting as a loopback always works assuming you have the proper permissions and file system. The only robust non-mounting way I've found is using gnu.org/software/xorriso (there are usually packages available). Just make sure to use the -file_name_limit 253 option when extracting. For some reason it defaults to 64 which isn't long enough for may ISOs. (I've also had problems with file name lengths using 7z). – mheyman Sep 28 '17 at 16:51
3

In Ubuntu, you can open them in Archive Manger: enter image description here
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.

| improve this answer | |
  • 1
    file-roller fails to extract files larger than 2GB (file-roller uses isoinfo/isoread code and that code has a signed 32-bit integer used for the size of the file in bytes that overflows at 2GB) – mheyman Sep 27 '17 at 11:39
1

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)

| improve this answer | |
  • Thanks. It worked seamlessly. – Abhay Dwivedi May 20 '19 at 6:49
0

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.

| improve this answer | |
0

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.