Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Jun 1999 16:39:46 +0200 (CEST)
From:      Thomas Widlundh <tw@ettnet.se>
To:        Doug Poland <dpoland@execpc.com>
Cc:        FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Moving directories
Message-ID:  <XFMail.990602163946.tw@ettnet.se>
In-Reply-To: <37551833.2EA72F74@execpc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <tw@ettnet.se>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990602163946.tw>