home *** CD-ROM | disk | FTP | other *** search
- 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
- From: kochmar@sei.cmu.edu (John Kochmar)
- Newsgroups: comp.unix.admin
- Subject: Re: How to move a filesytem?
- Message-ID: <1992Dec18.110958.25712@sei.cmu.edu>
- Date: 18 Dec 92 16:09:58 GMT
- Article-I.D.: sei.1992Dec18.110958.25712
- References: <BzFBx0.ECD@encore.com> <1992Dec18.110817.6773@ghost.dsi.unimi.it>
- Sender: netnews@sei.cmu.edu (Netnews)
- Organization: The Software Engineering Institute
- Lines: 35
-
-
- In article <1992Dec18.110817.6773@ghost.dsi.unimi.it>, serini@ghost.dsi.unimi.it (Piero Serini) writes:
- |> tma@encore.com (Thanh Ma) writes:
- |>
- |> >My /usr filesystem is full and I would like to move it to a newly-
- |> >installed second hard disk with the same name /usr. Please show
- |> >me how to do it. Also how do i reuse the space that /usr on the
- |> >1st disk occupied?
- |>
- |> In single user mode:
- |>
- |> # cd /
- |> # mkdir usr2
- |> # mount /dev/newdisk /usr2
- |> # cd usr
- |> # tar cf - . | compress | (cd /usr2 ; uncompress | tar xf - )
-
- I always use -p option to the second tar, so that permissions and
- ownerships are set correctly. According to the man page, not using the
- -p option will cause the files to be restored with the current umask,
- and setUID and stickey information are also preserved.
-
- Note: the -p is only necessary on the extract, not on the corrosponding
- create (the man page sez it is only useful with the -x option.)
-
- The above info was taken from a Sun OS, your milage may vary.
-
- John
-
-
-
- -----------------------------------------------------------------------------
- John Kochmar | Estimated amount of glucose used by an adult human
- kochmar@sei.cmu.edu | brain each day, expressed in M&Ms: 250
- SEI Computing Facilities | -Harper's Index, October 1989
-