View Full Version : How (un)tar mounted iso9660 .iso file?

21st July 2004, 10:09 AM
I have mounted an .iso file as follows:

mount -o loop -t iso9660 xxx.iso /mnt/cdrom/

The contents of the results is tar files. Next I try to untar them:

tar -xvf <filename>

I get errors like

tar: update/pd/lm/b: Cannot open: No such file or directory

What am I doing wrong? To me it seems that it can't the make the directories where to put the files. Thank you in advance.


21st July 2004, 11:14 AM
iso9660 filesystems are write only, you have to copy the contents to a location where you have write priveledges. So after you mount, create a temp dir in your home dir: do:

mkdir ~/tmp/

( ~ is an alias for /home/username where username is the user name of the currently logged in user)

Then copy the content to the temp dir:

cp /mnt/cdrom/*.tar* ~/temp

Now go to ~/temp/ and untar the files to see their contets.

21st July 2004, 12:58 PM
Ok. Did what you said, but now I get different error:

tar: update/pd/lm/b: Cannot change ownership to uid 106, gid 100: Operation not permitted
update/pd/lm/tar.cmp .

The priviledges of the files seems to be rwx. What now?


21st July 2004, 05:57 PM
Do the untar as as root - a normal user doesn't have the rights to change ownership of files.

21st July 2004, 07:27 PM
All I've done so far has been done as root. Should've said in previous post... More ideas?