home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / admin / 6714 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!fs7.ece.cmu.edu!news.sei.cmu.edu!kochmar
  2. From: kochmar@sei.cmu.edu (John Kochmar)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: How to move a filesytem?
  5. Message-ID: <1992Dec18.110958.25712@sei.cmu.edu>
  6. Date: 18 Dec 92 16:09:58 GMT
  7. Article-I.D.: sei.1992Dec18.110958.25712
  8. References: <BzFBx0.ECD@encore.com> <1992Dec18.110817.6773@ghost.dsi.unimi.it>
  9. Sender: netnews@sei.cmu.edu (Netnews)
  10. Organization: The Software Engineering Institute
  11. Lines: 35
  12.  
  13.  
  14. In article <1992Dec18.110817.6773@ghost.dsi.unimi.it>, serini@ghost.dsi.unimi.it (Piero Serini) writes:
  15. |> tma@encore.com (Thanh Ma) writes:
  16. |> 
  17. |> >My /usr filesystem is full and I would like to move it to a newly-
  18. |> >installed second hard disk with the same name /usr. Please show
  19. |> >me how to do it. Also how do i reuse the space that /usr on the
  20. |> >1st disk occupied?
  21. |> 
  22. |> In single user mode:
  23. |> 
  24. |> # cd /
  25. |> # mkdir usr2
  26. |> # mount /dev/newdisk /usr2
  27. |> # cd usr
  28. |> # tar cf - . | compress | (cd /usr2 ; uncompress | tar xf - )
  29.  
  30. I always use -p option to the second tar, so that permissions and
  31. ownerships are set correctly.  According to the man page, not using the
  32. -p option will cause the files to be restored with the current umask,
  33. and setUID and stickey information are also preserved.
  34.  
  35. Note: the -p is only necessary on the extract, not on the corrosponding
  36. create (the man page sez it is only useful with the -x option.)
  37.  
  38. The above info was taken from a Sun OS, your milage may vary.
  39.  
  40. John
  41.  
  42.  
  43.  
  44. -----------------------------------------------------------------------------
  45. John Kochmar         | Estimated amount of glucose used by an adult human
  46. kochmar@sei.cmu.edu     | brain each day, expressed in M&Ms: 250
  47. SEI Computing Facilities |            -Harper's Index, October 1989
  48.