Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'm trying to unpack a tar file in to a disk image which I created. I have no idea how to do it, Since the disk image .img is not a directory.

Can anyone give some suggestions?

By the way, I have already mounted the disk image.

share|improve this question
What are you trying to do with the image? – Mitch May 22 '12 at 6:47
if you mount the disk image with write permissions, you can unpack a tar file into mount directory, i guess something like this: mount -w -t iso9660 -o loop diskimage mountdir – Ali Dehghani May 22 '12 at 7:10
up vote 0 down vote accepted

If you've already mounted the disk image, open a terminal and do:

cd /path/to/diskimage/mountpoint
tar -xvf /path/to/file.tar
share|improve this answer

Your Answer


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

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