*BSD News Article 48998


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!lerc.nasa.gov!purdue!haven.umd.edu!cs.umd.edu!info.usuhs.mil!hq.hq.af.mil!scratchy.hq.af.mil!lpeters
From: lpeters@scratchy.hq.af.mil (Les Peters)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Odd cpio restore problem
Date: 16 Aug 1995 19:16:02 GMT
Organization: DISA
Lines: 22
Message-ID: <40tg5i$gnb@hq.hq.af.mil>
Reply-To: lpeters@scratchy.hq.af.mil
NNTP-Posting-Host: scratchy.hq.af.mil

I have been using cpio to backup my system to 8mm tape, using -ocB options.
I had the opportunity (read: crash) to restore from a backup, after
re-installing the OS from distributions (2.0.5R).  I noticed that a lot
of programs weren't running any more: looking at them with file was giving
me "data" instead of the "FreeBSD/i386 demand paged dynamically linked 
executable not stripped" I was expecting.  I am slowly reinstalling/
recompiling the programs group by group.  It seemed to me that somehow
the files were not restored properly: the beginning of the file had
extra cruft and there was data missing from the end.  It also happened 
to text files, so it is not strictly binaries that were affected.

Weird.

I am going to use dump from now on to backup the system (restructured
the filesystem to only have a root and usr f/s), so this is really
just a lessons learned for me and a warning for the rest of us.

-- 
"Voom? Mate, this parrot wouldn't voom if you put 4 million volts through it!"
Les Peters (lpeters@scratchy.hq.af.mil/lpeters@aol.net/FiddyRing@aol.com)
(GC3) GCS d s+:+ a28 C++>++++ UBAHI++++$ P+++ L- E--- W+++ N+ K- w +O- M V- PS+
PE++ Y+ PGP t++(+++) 5 X+ R* tv+ b+ DI++>++++ D---- G e+>++ h---- r+++ y++++(*)