home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!purdue!yuma!lamar!dan
- From: dan@lamar.ColoState.EDU (Danilo Silva)
- Subject: Re: How to move a filesytem?
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Message-ID: <Dec18.142941.14163@yuma.ACNS.ColoState.EDU>
- Date: Fri, 18 Dec 1992 14:29:41 GMT
- References: <BzFBx0.ECD@encore.com>
- Nntp-Posting-Host: lamar.acns.colostate.edu
- Organization: Colorado State University, Fort Collins, CO 80523
- Lines: 34
-
- Hi There,
-
- Here is what I do on my HP9000-835 to move /users file system to a new one:
-
- Create the file system (if you haven't yet):
-
- # newfs -n /dev/rdsk/c5d0s2 hpXXXX <--- Depends on your disk
-
- Create a working directory:
-
- # mkdir /users_new
-
- Mount new disk:
- # mount /dev/dsk/c5d0s2 /users_new
- # cd /users
-
- Copy the files without changing dates or permissions:
-
- # find . -print | cpio -pdum /users_new
-
- Clean up:
- # cd /
- # rm -rf /users/*
- # umount /users_new
- # mount /dev/dsk/c5d0s2 /users
- # rmdir /users_new
-
-
- You're ready to go,
-
- DAn Silva
- dan@lamar.colostate.edu
-
- Disclaimer: All apply. This is what I do. It works for me, period.
-