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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-26-2004, 11:40 AM
|
#1
|
LQ Newbie
Registered: Oct 2004
Posts: 5
Rep:
|
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
|
|
|
10-26-2004, 03:01 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029
Rep:
|
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.
|
|
|
10-26-2004, 03:08 PM
|
#3
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
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!
|
|
|
10-26-2004, 03:10 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029
Rep:
|
good point. do a man cp and make sure you include all the switches you need for hidden files, empty subfolders and include permissions
|
|
|
10-26-2004, 05:48 PM
|
#5
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
IBM put together a good how-to guide on this very topic. -- J.W.
|
|
|
10-26-2004, 07:51 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029
Rep:
|
looks good JW, but no beer so i like mine better
|
|
|
10-27-2004, 01:37 AM
|
#7
|
Member
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150
Rep:
|
see this thread . I moved my /home the other day with little problems all of which can be avoided by reading said thread.
|
|
|
10-27-2004, 03:24 AM
|
#8
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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.
|
|
|
10-27-2004, 03:32 AM
|
#9
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
All times are GMT -5. The time now is 06:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|