View Full Version : Howto add a new harddrive to /home?
darbin
05-29-2007, 06:57 PM
I have installed a new ATA harddrive.
My question is how can I mount it to the /home/darbin, as I have run out of space in ad0?
What entries would I have to make to /etc/fstab??
TerryP
05-29-2007, 07:31 PM
Install the hard drive into the computer
Format and Label the drive (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html)
dump your home directory and restore it to the new drive. (Basically cloning your files).
Edit /etc/fstab and create an entry to mount the new device to /usr/home/<your name> and give you the necessary permissions.
If any thing happens your files are still in your home directory on ad0. So you can have root un mount ad1, fix fstab e.t.c. if you have problems.
darbin
05-31-2007, 10:40 AM
Thanks for the reply.
I have installed, formatted and labeled the drive. shows up in dmesg
here is my /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
/dev/ad1s1 /usr/home/darbin ufs rw 1 1
when i do this and reboot and try to login the machine keeps restarting. that made me wonder about the permissions. i am unsure at what i should change
something like chmod 777 ad1s1?
TerryP
06-02-2007, 09:10 PM
You'll probably want to
chmod 775 /usr/home/darbin
and
chown <Your User>:<wheel or your group> /usr/home/darbin
darbin
06-05-2007, 03:02 PM
Thanks TerryP,
Everything mounts fine. Now when i go to login in KDE, i get inicial screen, i type in the user and password the process begins and then it looks like it is going to start and throws me back to the login screen.
I then have to enter in the command line and edit out /dev/ad1s1 /usr/home/darbin ufs rw 1 1 reboot and i can log back in but without the disk ad1s1 mounted. Any ideas?
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.