Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a large ISO file on a server, and I need to access the file in it, without having root access. Thus, I can't simply mount it. What should I do to be able to extract an ISO on LInux without root access?

share|improve this question

migrated from Aug 25 '10 at 22:09

This question came from our site for professional and enthusiast programmers.

If 7zip is installed this one is really easy:

7z x Your.iso -oWhere/You/Want/It/Extracted/To

to extract the whole iso.

share|improve this answer
Since the OP's question has a "linux" tag it's important to state this won't work with 7za (CentOS); 7za does not support ISO archives. You can check supported formats with 7za i. – Jongosi Aug 5 '15 at 23:18
FYI 7z seems smart enough to extract directly off media: 7z x /dev/cdrom. I have very stupid issue, that my files show up 0 bytes when mounted. So extracting was a workaround. – akostadinov May 2 at 11:54

Many of the GUI tools like file roller will use isoinfo in the background.

You can extract a single file from an ISO like so:

isoinfo -i image.iso -x /isolinux/initrd.img > initrd.img

The redirection is required as -x extracts to stdout.

If you'd like to list contents of a folder in the ISO:

isoinfo -i image.iso -l

example output:

Directory listing of /
d---------   0    0    0            2048      0 1900 [     26 02]  .
d---------   0    0    0            2048      0 1900 [     26 02]  ..
d---------   0    0    0            2048 Feb  6 2010 [     27 02]  i386
share|improve this answer
Most helpful! 10x :) – kolypto Apr 3 '11 at 1:50
You saved my day. – azerIO Mar 12 '12 at 11:07
To use isoread to extract all the files, try this script: – Neil McGill Sep 29 '14 at 15:22

If you have GUI access, right click the iso, and choose "Open with Archive Manager..." or simply run:

file-roller -e /path/to/extract/to /path/to/iso
share|improve this answer
give credit where due -- – John T Aug 25 '10 at 22:27
@JohnT Excuse me? I just typed it myself O_o? UPDATE: Lol! It's like almost exactly the same! D: I got it from man file-roller – BloodPhilia Aug 25 '10 at 22:31
The command he used is exactly the same lol, that's what caught my eye. And the first idea you mentioned was posted by a user 2 posts above haha. Funny coincidence though. – John T Aug 25 '10 at 22:41
@JohnT I know! That's just weird... And that makes me understand the confusion... Do applaud your sense of credits though... =) – BloodPhilia Aug 25 '10 at 22:45

If you have 7-zip or unrar installed you can use to either extract iso's.

share|improve this answer
What's the syntax for unrar? I think that's for Winrar only – golimar Mar 17 at 14:21

If you only have cli access you can use file-roller; it creates a lot of weird gtk errors but works.

file-roller --display=:0 /tmp/my.iso -e /tmp/my_iso/

The important factor is the --display=:0. It could be any display really, this is just to make sure it runs.

This will work even if no X display is running.

share|improve this answer

You don't need to mount it. ISO is just like any other storage file, like a .zip. There are a lot of iso specific tools to do the trick which you should be able to compile as a user, but the easiest way should be to do:

file-roller -h filename.iso
share|improve this answer

If you can mount FUSE filesystems, FuseISO is an option for mounting the image.

share|improve this answer

You must log in to answer this question.