LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-26-2004, 11:40 AM   #1
bigfatdud
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
easiest way to add an extra harddrive for /home


Hello:

Running mandrake 9.2.

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?

Any advice and ideas?

Thanks a lot!
BFD
 
Old 10-26-2004, 03:01 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
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.
 
Old 10-26-2004, 03:08 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Don't forget to copy HIDDEN files too!! I forgot when I changed to a bigger home partition and so lots of config files were lost!
 
Old 10-26-2004, 03:10 PM   #4
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
good point. do a man cp and make sure you include all the switches you need for hidden files, empty subfolders and include permissions
 
Old 10-26-2004, 05:48 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
IBM put together a good how-to guide on this very topic. -- J.W.
 
Old 10-26-2004, 07:51 PM   #6
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
looks good JW, but no beer so i like mine better
 
Old 10-27-2004, 01:37 AM   #7
tardigrade
Member
 
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Rep: Reputation: 15
see this thread . I moved my /home the other day with little problems all of which can be avoided by reading said thread.
 
Old 10-27-2004, 03:24 AM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Quote:
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.
 
Old 10-27-2004, 03:32 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a harddrive for extra space fakie_flip Linux - Hardware 5 10-02-2005 09:39 PM
Easiest way to Add Postgres to existing fedora core 3 installation? gfallon Linux - Newbie 2 03-20-2005 01:15 AM
add new harddrive? Alfatech Linux - Hardware 3 04-20-2004 04:46 PM
samba - extra home directory being mapped on win2k schneider Linux - Networking 2 04-15-2004 10:33 AM
How can I add extra NIC's? binkybuckle Debian 11 12-04-2003 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration