| Author |
A Question about tar
|
|
| SpreadTooThin 2007-03-28, 1:18 pm |
| I'm trying to extract a single directory and its contents out of a tar
file....
I'm trying:
tar -xvf mytarfile.tar /Volumes/system/Users
and nothing is happening at all.... (yet... its a big tar file.)
if I try:
tar -xvf mytarfile.tar /Volumes/system/Users/*
I get an error message:
tcsh: tar: No match.
| |
| Ralf Fassel 2007-03-28, 1:18 pm |
| * "SpreadTooThin" <bjobrien62@gmail.com>
| I'm trying:
| tar -xvf mytarfile.tar /Volumes/system/Users
What pathnames does
tar -tvf mytarfile.tar
show? Most probably the pathnames in the tar archive do not match the
one you specified.
R'
| |
| SpreadTooThin 2007-03-28, 1:18 pm |
| On Mar 28, 11:32 am, Ralf Fassel <ralf...@gmx.de> wrote:
> * "SpreadTooThin" <bjobrie...@gmail.com>
> | I'm trying:
> | tar -xvf mytarfile.tar /Volumes/system/Users
>
> What pathnames does
>
> tar -tvf mytarfile.tar
>
> show? Most probably the pathnames in the tar archive do not match the
> one you specified.
>
> R'
/Volumes/system/Users/me
/Volumes/system/Users/root
etc
| |
| Fred Kleinschmidt 2007-03-28, 7:17 pm |
|
"SpreadTooThin" <bjobrien62@gmail.com> wrote in message
news:1175101467.326924.138580@d57g2000hsg.googlegroups.com...
> I'm trying to extract a single directory and its contents out of a tar
> file....
>
> I'm trying:
> tar -xvf mytarfile.tar /Volumes/system/Users
>
> and nothing is happening at all.... (yet... its a big tar file.)
>
> if I try:
>
> tar -xvf mytarfile.tar /Volumes/system/Users/*
>
> I get an error message:
>
> tcsh: tar: No match.
>
Are you sure that there is a file called /Volumes/system/Users
in the tar file?
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Aero Stability and Controls Computing
| |
| Måns Rullgård 2007-03-28, 7:17 pm |
| "SpreadTooThin" <bjobrien62@gmail.com> writes:
> I'm trying to extract a single directory and its contents out of a tar
> file....
>
> I'm trying:
> tar -xvf mytarfile.tar /Volumes/system/Users
>
> and nothing is happening at all.... (yet... its a big tar file.)
>
> if I try:
>
> tar -xvf mytarfile.tar /Volumes/system/Users/*
>
> I get an error message:
>
> tcsh: tar: No match.
That message is tcsh complaining that the shell glob
/Volumes/system/Users/* doesn't match any files. You need to put
quotes around it to avoid having the shell attempt expanding it.
--
Måns Rullgård
mans@mansr.com
| |
| Pascal Bourguignon 2007-03-29, 7:19 am |
| Måns Rullgård <mans@mansr.com> writes:
> "SpreadTooThin" <bjobrien62@gmail.com> writes:
>
>
> That message is tcsh complaining that the shell glob
> /Volumes/system/Users/* doesn't match any files. You need to put
> quotes around it to avoid having the shell attempt expanding it.
Which highlight two problems with MacOSX: that it uses tcsh as default
shell instead of a saner option, like at least bash, and that it uses
a case insensitive file system by default, which is very dangerous.
--
__Pascal Bourguignon__
http://www.informatimago.com
http://pjb.ogamita.org
| |
| Ralf Fassel 2007-03-29, 7:19 am |
| * "SpreadTooThin" <bjobrien62@gmail.com>
| /Volumes/system/Users/me
| /Volumes/system/Users/root
- is the leading "/" indeed there? Eg., GNU tar by default replaces
absolute pathnames in tar files by relative ones, so the files would
get created in the current working directory (cf. -p option).
So probably check whether tar has created the directory structure in
the cwd instead of in "/".
Some other possibilities:
- do you have the required permissions to create/write the files in
those directories (should get error messages if not). Keep in mind
that in case of NFS-mounted directories, root might not be able to
access those directories (but again, some error message should
appear in this case).
- did you wait until the tar completes? You mentioned a 'big'
tarfile, probably the files are at the end of it, so it takes some
time
HTH
R'
| |
| Barry Margolin 2007-03-30, 1:18 am |
| In article <87d52sv60e.fsf@voyager.informatimago.com>,
Pascal Bourguignon <pjb@informatimago.com> wrote:
> Måns Rullgård <mans@mansr.com> writes:
>
>
> Which highlight two problems with MacOSX: that it uses tcsh as default
> shell instead of a saner option
The default shell was changed to bash several years ago, in OS X 10.3.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
|
|
|
|