Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Jun 1999 06:40:35 -0500
From:      Doug Poland <dpoland@execpc.com>
To:        Thomas Widlundh <tw@ettnet.se>
Cc:        FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Moving directories
Message-ID:  <37551833.2EA72F74@execpc.com>
References:  <199906021024.MAA17598@maskin.ettnet.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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


Thomas Widlundh wrote:
> 
> Hi,
> Due to my second disk with /usr is totally filled up, I wonder if it's possible to move
> some of the directories to my first disk, e.g.:
> I make a directory like /newusr and move e.g. /local that's in /usr(/local) to this
> new /newusr, and then make a link from /usr to /newusr.
> Is this possible?
> How do I make a link like this?
> I've noticed that I can't link directories. To me, I had to delete one of the directories
> (the empty one) and making the link made a new directory with the same name, but
> now as a link only. This during a cautiously test with fake directories.
> Is this the right thing to do?
> I do not want to screw up my FBSD system.
> 
> Thomas
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Doug Poland
dpoland@execpc.com


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?37551833.2EA72F74>