Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Aug 25 '10 at 22:09

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

add comment

7 Answers

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
add comment

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
1  
Most helpful! 10x :) –  kolypto Apr 3 '11 at 1:50
    
You saved my day. –  azerIO Mar 12 '12 at 11:07
add comment

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 -- ubuntuforums.org/showthread.php?t=1147257 –  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
add comment

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

share|improve this answer
add comment

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
add comment

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.