From owner-freebsd-questions Wed Jun 2 7:38:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from maskin.ettnet.se (maskin.oden.se [193.220.120.1]) by hub.freebsd.org (Postfix) with ESMTP id 7B24114E17 for ; Wed, 2 Jun 1999 07:38:09 -0700 (PDT) (envelope-from tw@ettnet.se) Received: (from uucp@localhost) by maskin.ettnet.se (8.9.1a/8.8.8) id QAA06085; Wed, 2 Jun 1999 16:36:32 +0200 (MET DST) Received: from UNKNOWN(193.220.122.60), claiming to be "tw.oden.se" via SMTP by maskin, id smtpdAAAa001Uz; Wed Jun 2 16:36:29 1999 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <37551833.2EA72F74@execpc.com> Date: Wed, 02 Jun 1999 16:39:46 +0200 (CEST) Reply-To: tw@ettnet.se From: Thomas Widlundh To: Doug Poland Subject: Re: Moving directories Cc: FreeBSD Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Doug, Thank You for Your fast answer! But the topic was slightly different. I installed FBSD on two disks. Disk 1 with /, and disk 2 with /usr. After some ports installation, disk 2 got filled up, while disk 1 was almost empty. I had to do something. So I figured I could move some of the directories in /usr on disk 2 to some directory on disk 1. Well, spitting in my fists and started working. I made a new directory on disk 1 named /twusr. I copied all /usr/local from disk 2 to this new directory on disk 1 with "cp -R local /twuser", while beeing in /usr. Then I "rm -R local" and removed all local in /usr on disk 2. Then made a link in /usr like "ln -s /twusr/local local". I don't know if this is the proper way, but IT WORKED!!! It all was a jepardy, I admit, but it worked and now I have a link in /usr named local pointing at /twusr/local. When I cd to /usr/local I end up in /twusr/local, and there is everything. If I am understanding Your mail correct, this is to move to a new, another disk. I'll save this mail. It isn't impossible that a need this information further on, if/when I by a new disk. Thank you for your help. Thomas On 02-Jun-99 Doug Poland wrote: > Thomas, > > I got this from http://www.freebsd.org/tutorials/diskformat/ > > 4.2. Copying the Contents of Disks > > Submitted By: Renaud Waldura (renaud@softway.com) > > To move file from your original base disk to the fresh new one, do: > > mount /dev/wd2 /mnt > pax -r -w -p e /usr/home /mnt <---- This is what you're looking > for > umount /mnt > rm -rf /usr/home/* > mount /dev/wd2 /usr/home ---------------------------------- E-Mail: Thomas Widlundh Date: 02-Jun-99 Time: 16:16:48 FreeBSD 3.1 XFMail 1.3 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message