Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a new harddrive which I wish to add for my /home directory, and I am wondering how this is going to work.
1. Do I stick it in, and then configure it so that it can be a second partition for /home. Then linux figures it out and save files accordingly to the new harddrive once the old one becomes entirely full?
2. Or do I have to make a full backup for my /home partition, delete the partition, make a /home partition on the new harddrive, format it, and then use it? If that's the case, what should I do with the old /home partition?
install new drive
setup partition
format partition
enter single user run level
login as root
mount old home partition (if not already mounted)
mount new home partition
copy entire contents of old /home to new partition
edit fstab to mount /home to new disk/partition
reboot
have a beer.
Originally posted by Finlay looks good JW, but no beer so i like mine better
Well, in my defense, please note that I'm not the author of the article I linked to. If I had been, there very likely could have been a final step involving certain carbonated beverages. -- J.W.
If you were using LVM, you could extend the size of the /home directory by adding another drive. http://ds9a.nl/lvm-howto/
Another thing to keep in mind is if you have several users on your system, you could use a /home2 partition for home directories on some of the users. The location of a users home page comes from the /etc/passwd file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.