SOLVED: tar error message: Cannot open: No such file or directory
Though I've used tar to extract files for software I've downloaded in the past, this is my first effort at creating a tar file and extracting it. I'm using openSuSE 11.1/KDE 4.1 on one machine (the source, as described below), and Kubuntu 9.04 on the other.
I have a directory on the source computer (/datalib) which I want to copy to the second machine. I made a tarball of the directory using Code:
tar -cf datalib.tar /datalib/* Then I copied the .tar file to the other machine (named Kodiak) using Code:
scp -p datalib.tar Kodiak:/datalib/ Then I moved to the other machine to extract the files, and that's where I ran into trouble. I used Code:
tar -xvf datalib.tar Quote:
Code:
tar -tvf datalib.tar I wrote the tarball in the /datalib directory on the original machine, and I copied it to the /datalib directory on the Kodiak machine. I do not find anything in the --help or man pages that appears to point in a direction helpful to me. |
Do you have write permission in the directory where you are trying to extract the tarball?
|
Duhhh...! That was it. I was so accustomed to using the /datalib directory on my primary machine that I simply overlooked the fact that I'd created the directory on the new machine as root, while doing other set-up chores.
Sure enough -- once I changed the ownership of the directory, the tarball extracted as expected. Thanks! |
All times are GMT -5. The time now is 08:40 AM. |