From owner-freebsd-questions Wed Jul 31 05:30:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA26370 for questions-outgoing; Wed, 31 Jul 1996 05:30:21 -0700 (PDT) Received: from guardian.fortress.org (fortress.org [199.84.158.128]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id FAA26365 for ; Wed, 31 Jul 1996 05:30:14 -0700 (PDT) Received: (from andrew@localhost) by guardian.fortress.org (8.6.12/8.6.12) id IAA18666; Wed, 31 Jul 1996 08:29:56 -0400 Date: Wed, 31 Jul 1996 08:29:56 -0400 (EDT) From: Andrew Webster Reply-To: andrew@pubnix.net To: freebsd-questions@freebsd.org Subject: Re: Moving /usr Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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