home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 15820 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  2.0 KB

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