- A Few days ago I posted an automounter-related question (see below)
and I have been flooded with answers.
- Thanks for all those who answered so far.
- I'll summarize below. I tried to reply to each person, but some mails bounced,
so I'll honor all of them below.
- I apologize again for putting a 'tar'-realted question on sun-nets.
- BTW, only one person (so far) has answered question 2 below (email@example.com) -
He says it can be done.
------------------- the question: --------------------
I have a tar tape (a poor copy of MIT X11R4) which was prepared in the dumbest way possible:
(well, maybe there are dumber ways, but I have not seen them yet...)
$ tar tvf /dev/rst8
r--r--r--603/603 214 Dec 21 00:06 1989 /net/hostile/mit/CHANGES
rw-rw-r--603/603 53362 Dec 24 00:21 1989 /net/hostile/mit/CHANGES.ALL
[...and so it goes...]
Needless to say, I don't have a machine called 'hostile' in my net.
Previously I dealt with it by taking down the automounter, create a real
directory 'hostile' under /net and extract the stuff that I needed.
I was wondering whether I can fake a machine in the YP hosts map with the
above name, but with an ethernet address of my (real) machine and then create 'mit'
under the root and thus when extracting to /net/hostile it will actually go
However, I'm loath to try it before I'm sure it'll work (a little wimpy, I admit).
My questions are:
1. Will it work?
2. Do YP/NFS/automounter care if there >1 host with the same address?
3. Unrelated to networking, is there a nicer way to override dump tar files like that?
------------------- the answers: --------------------
1. Use GNU's 'tar' - it strips leading '/' from archived file names.
George Young firstname.lastname@example.org
Hans Berggren email@example.com
Bennett Todd firstname.lastname@example.org
Scott Schwartz email@example.com
kevin ? firstname.lastname@example.org
Brian Baird email@example.com
Brian Kelley firstname.lastname@example.org
Timothy G. Smith tgsmith@fedps.East.Sun.COM
Roy Smith email@example.com
2. Hack the output of tar:
use 'pax' - David N. Blank firstname.lastname@example.org
use 'fixtar' - Wietse Venema email@example.com
3. Unpack the archive under a different root, using 'chroot':
Hans Buurman firstname.lastname@example.org
Bob Drzyzgula email@example.com
4. Set up symbolic links from /net/hostile to a real directory:
Brent Chivers firstname.lastname@example.org
Keith McNeill email@example.com
Gert van Antwerpen firstname.lastname@example.org
Steve Harris uunet!etnibsd!vsh
------------------- the verdict: --------------------
I tried GNU tar 1.08. It worked for a while, then crashed with 'bus error'.
I then opted for Hans Buurman's 'chroot' solution which worked like a charm.
It does require superuser permission.
I have tried neither setting up symbolic links nor 'pax' of 'fixtar'.
Thanks for all who responded and tell your friends never to use absolute
files names when using 'tar'.
Amir J. Katz, System Manager
Phone: +972 52-570713
Fax: +972 52-570719
Snail-mail: Amir J. Katz, Silvaco Israel Ltd.
19 Maskit St., Herzelia, Israel 46733
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:14 CDT