LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-22-2009, 12:02 PM   #1
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Kubuntu 9.04 / 12.04
Posts: 50

Rep: Reputation: 15
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/*
That appears to have completed successfully -- at least, I have a file named datalib.tar that is ~30GB, and I can see the names of the directories and files within the tarball.

Then I copied the .tar file to the other machine (named Kodiak) using
Code:
scp -p datalib.tar Kodiak:/datalib/
That process took about 40 minutes, and at the end of that time, I could see .tar file on the other machine.

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
and the entire contents of the .tar file scrolled down the screen, but each listing was followed by
Quote:
Cannot open: No such file or directory
The .tar file on the Kodiak machine is the same size as the original, and I am able to list the files using
Code:
tar -tvf datalib.tar
I am at a loss to know why I'm told there's no such file or directory.

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.

Last edited by qajaq; 11-22-2009 at 12:26 PM. Reason: Problem resolved
 
Old 11-22-2009, 12:18 PM   #2
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
Do you have write permission in the directory where you are trying to extract the tarball?
 
Old 11-22-2009, 12:25 PM   #3
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Kubuntu 9.04 / 12.04
Posts: 50

Original Poster
Rep: Reputation: 15
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!
 
  


Reply

Tags
error, tar


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gedit/gnome error message during file open ksclps Linux - Software 0 12-01-2007 09:54 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Programming 2 07-20-2006 12:44 PM
tar -zvf file.gz in which directory to open? solutionseeker Linux - Newbie 3 01-30-2005 02:31 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Linux - Newbie 1 06-01-2004 05:26 AM
tar file error message eye Red Hat 1 02-25-2004 01:32 AM


All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration