home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!ames!agate!doc.ic.ac.uk!uknet!edcastle!dcs.ed.ac.uk!sct
- From: sct@dcs.ed.ac.uk (Stephen Tweedie)
- Newsgroups: comp.os.linux
- Subject: Re: Bugs in LINUX tar (?)
- Message-ID: <SCT.92Nov5172837@ascrib.dcs.ed.ac.uk>
- Date: 5 Nov 92 17:28:37 GMT
- References: <Bx8G3M.DBE@news.cso.uiuc.edu>
- Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
- Organization: University of Edinburgh Dept. of Computer Science, Scotland
- Lines: 33
- In-Reply-To: jy10033@ehsn11.cen.uiuc.edu's message of 5 Nov 92 07:42:57 GMT
-
- In article <Bx8G3M.DBE@news.cso.uiuc.edu>, jy10033@ehsn11.cen.uiuc.edu (Joshua M Yelon) writes:
-
- > Last night I switched from minix FS to ext FS. Here are the steps I
- > went through:
-
- > * tarred my whole filesystem using gnu tar, split tarfile onto
- > floppies. * reformatted hard disk using mkefs. * reloaded software
- > from floppy using the tar on the 0.98 rootdisk.
-
- > Much to my chagrin, though, the tar on the root floppy didn't seem
- > to quite understand the tarfile format: it loaded the files up ok,
- > and got all the chmod bits right, but got most of the file
- > ownerships wrong! Needless to say, this took a long time to fix.
-
- > It may be important that I use UID's greater than 1000... although
- > I can't see why that would be a problem, it IS unusual.
-
- First of all, you should be using the -p (set permissions) option to
- tar; although if you say the mode bits are correct, you're probably
- doing this anyway.
-
- The problem with ownership is that when you boot from the root floppy,
- you are no longer using the passwd and group files from your tarred
- root partition. So, all those users and groups who should own the
- files you are restoring simply don't exist at the time of the restore.
- You should copy the original /etc/passwd and /etc/group files into
- /etc on the root floppy before extracting the tar archive.
-
- Cheers,
- Stephen Tweedie.
- ---
- Stephen Tweedie <sct@uk.ac.ed.dcs> (Internet: <sct@dcs.ed.ac.uk>)
- Department of Computer Science, Edinburgh University, Scotland.
-