d833
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have a single HDD at the moment. I want to keep this drive but add a new 320GB HDD and make that the new /home.
How should I go about this and are there any pitfalls to avoid? In my mind I will do this: 1. Connect new HDD and format with UFS. 2. Copy /home/* onto the new HDD. 3. Edit fstab and add the line: Code:
/dev/ad2s1 /usr/home ufs rw 1 1 Cheers. Last edited by DutchDaemon; February 20th, 2011 at 02:41. |
|
#2
|
||||
|
||||
|
|
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
caesius (February 19th, 2011) | ||
|
#3
|
|||
|
|||
|
If your home directories are to reside in a seperate filesystem from /usr, then just mount it directly under /home, not under /usr/home.
You'll have to delete the /home symlink to /usr/home first then create an empty /home directory to use as the new mountpoint.
__________________
http://www.b0rken.org/ Last edited by DutchDaemon; February 20th, 2011 at 02:42. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#4
|
||||
|
||||
|
Quote:
![]() This is from the top of my head: Code:
gpart create -s MBR ad2 gpart add -t freebsd-ufs -l myhome ad2 newfs /dev/gpt/myhome mkdir /mnt/home mount /dev/gpt/myhome /mnt/home tar -C /usr -cf - home | tar -C /mnt -xvf - umount /mnt/home rm -rf /usr/home/* mount /dev/gpt/myhome /usr/home/ And last but not least, edit /etc/fstab: Code:
/dev/gpt/myhome /usr/home/ ufs rw 2 5
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
caesius (February 19th, 2011) | ||
|
#5
|
||||
|
||||
|
You don't need to use gpt for that unless you want to boot from it. Instead label the disk:
Code:
glabel label -v name /dev/ad2 (where ad2 is your new drive) Code:
/dev/label/name /usr/home/ ufs rw 2 5 #(cd /home && tar cf - .) | (cd /mnt && tar xpf -)
__________________
Powered by BareBSD |
| The Following User Says Thank You to gkontos For This Useful Post: | ||
caesius (February 20th, 2011) | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing userid | rbizzell33 | General | 14 | April 12th, 2010 16:39 |
| [Solved] Changing date without changing time. | caesius | General | 6 | February 8th, 2010 16:30 |
| Changing architecture? | Dinchamion | Installing & Upgrading | 5 | July 2nd, 2009 21:32 |
| Changing users home massively | godzilla | General | 2 | November 21st, 2008 11:01 |