moving /home to new drive

Jerry McAllister jerrymc at
Wed Jul 18 15:05:24 UTC 2007

> 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.

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

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.


> -- 
> Zbigniew Szalbot
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list