Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.