home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / admin / 6708 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.6 KB  |  55 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!serini
  3. From: serini@ghost.dsi.unimi.it (Piero Serini)
  4. Subject: Re: move a filesytem? corrections
  5. References: <BzFBx0.ECD@encore.com> <1992Dec18.110817.6773@ghost.dsi.unimi.it>
  6. Organization: Computer Science Dep. - Milan University
  7. Date: Fri, 18 Dec 1992 11:48:43 GMT
  8. Message-ID: <1992Dec18.114843.8331@ghost.dsi.unimi.it>
  9. Lines: 44
  10.  
  11. serini@ghost.dsi.unimi.it (Piero Serini) writes:
  12.  
  13. [...]
  14.  
  15. ># tar cf - . | compress | (cd /usr2 ; uncompress | tar xf - )
  16.  
  17. [...]
  18.  
  19. If you have special files under /usr use cpio instead of tar
  20. Read cpio man pages ...
  21.  
  22. [...]
  23.  
  24. ># sync ; sync
  25. ># cd /
  26. ># /bin/rm -rf /usr
  27. # cd /usr
  28. # /bin/rm -rf *
  29. So you can unmount it ... sorry
  30.  
  31. [...]
  32.  
  33. I'm sorry .. I assumed you have no special files (devices)
  34. under /usr, but I cant' tell, so you can use tar or cpio
  35. as you need.
  36. About the rm of /usr, maybe your system will not be happy
  37. if you remove it before you unmount. Sou you have to cd into /usr
  38. then /bin/rm -rf *   This whill leave all .* files in it,
  39. but I think it's not a problem. You CAN'T /bin/rm .*
  40.                           ^^
  41. safely, as if your rm doesn't check . and .. it will remove
  42. the ROOT directory!
  43.  
  44. Be careful.
  45. Disclaimer as in the 1st article ..
  46.  
  47. Bye
  48. Piero
  49.  
  50. ------------------------------------------ Piero Serini -----------------
  51. Piero Serini                      E-mail: serini@ghost.dsi.unimi.it   
  52. Computer Science Dept.            or: piero@strider.st.dsi.unimi.it
  53. Univ. Statale - Milano - ITALY      ** mail me your .signature **
  54. -------------------------------------------------------------------------
  55.