moving /home to new drive

Jerry McAllister jerrymc at
Wed Jul 18 16:07:19 UTC 2007

On Wed, Jul 18, 2007 at 11:03:04AM -0400, Jerry McAllister wrote:

> > 
> > Hello,
> > 
> > I have just installed an additional drive to my FreeBSD 6.2-RELEASE-p6
> > machine. I'd like to use this drive exclusively for /home.
> > 
> > Currently /home is a link to /usr/home. Can I just mount (haven't done it
> > yet) the new drive with the mount point /home then delete the symlink (?)
> > and move the files from /usr/home to /home? Or do I need to delete the
> > symlink first and only then try to mount the new drive as /home?
> You should remove the symlink first, otherwise the mount will go
> over it and then you won't be able to rm it and later it will
> still exist if the mount is not made and you will see again the
> old stuff.

Sorry, I just got off a 12 hour flight.   
The part that says you should remove the symlink first is correct.
The explanation applies to directories that become mount points
but not quite the same to symlinks.

Then, after you remove the symlink, you have to create a mountpoint
by doing a mkdir /home


> > Can it break something? Is the procudure safe? Thank you in advance!
> > 

It is safe.  It won't break anything.   But, as mentioned, don't
forget to move your files and directories from /usr/home to the
new /home after you get it there.


> Well, I wonder what you might have in the old /home  (/usr/home)
> that you want to keep.   You will need to move this stuff to
> the new /home some way.  Since the old one is not a file system
> unto itself, you will not be about to use dump (well you could
> in a certain way, but) so, probably you will want to use tar with a -P.
> ////jerry
> > -- 
> > Zbigniew Szalbot
> > 
> > _______________________________________________
> > freebsd-questions at mailing list
> >
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"
> > 
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list