Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 1996 08:29:56 -0400 (EDT)
From:      Andrew Webster <andrew@fortress.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Moving /usr 
Message-ID:  <Pine.BSF.3.91.960731082944.16211Q-100000@guardian.fortress.org>

next in thread | raw e-mail | index | archive | help

On Wed, 31 Jul 1996, Hr.Ladavac wrote:

> In his e-mail Mike wrote:
> > I want to move my /usr to another drive (running out of room presently).
> > Anyone got any suggestions?  I tried before mv /usr /disk2 and creating a
> > symbolic link to the new location and it didn't work right.  I think
> > permissions got changed around somehow.  Any suggestions welcome.
> 
> tar-ring and un-tar-ring it as root might do it.  You will receive multiple
> copies of hard linked files, though.  The other methould would be
> dump/restore.
> 

Even better, copies symbolic links, etc...
0. Go into single user mode to do this
1. Partition & mount your new volume on, say /mnt
2. cd /usr
3. find -x . -print | cpio -pmduv /mnt
4. Unmount /mnt and /usr
5. Mount new partition onto /usr
6. Edit /etc/fstab to reflect the changes
7. Reboot

Have fun!

Andrew Webster  - andrew@pubnix.net - http://www.pubnix.net
PubNIX Montreal - Connected to the world - Branche au monde
 514-990-5911   - P.O. Box 147, Cote St-Luc, Quebec, H4V 2Y3





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960731082944.16211Q-100000>