Computing.Net > Forums > Linux > How to add 2 hdd and mount to /home

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

How to add 2 hdd and mount to /home

Reply to Message Icon

Name: JB
Date: August 29, 2003 at 21:34:10 Pacific
OS: debian
CPU/Ram: 512/13.g
Comment:

I want to add 2 hdd and I want it to be my /home and /var. how can I do that since there is already a home and var in the 1st hdd. thanks in advance!
JB



Sponsored Link
Ads by Google

Response Number 1
Name: Jake
Date: August 29, 2003 at 22:10:28 Pacific
Reply:

Install the drives. Run fdisk on each drive, then make filesystems on each ("mke2fs -j /dev/whatever" for ext3, "mkreiserfs /dev/whatever" for reiserfs). Make directories /mnt/home and /mnt/var, mount the new filesytems on them, go to runlevel 1 (telinit 1), and do "mv /var/* /mnt/var" and "mv /home* /mnt/home". Unmount from the temporary locations ("umount /mnt/var" and "umount /mnt/home"). Create entries in /etc/fstab for the new /home and /var, then run "mount /var" and "mount /home". Go back into runlevel 3, 4, or 5 (not sure which Debian uses for X, 4 or 5, or if you just want command line, 3).

If you can't move a file, use the fuser command to figure out what PID is using it. If the process refuses to die, use "kill -9 PID". Being in runlevel 1 should kill just about everything, though. Post back if you need more details.


0
Reply to Message Icon

Related Posts

See More


RH9 and LCD RH 9 Update Mozilla



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How to add 2 hdd and mount to /home

how do add user to home and www www.computing.net/answers/linux/how-do-add-user-to-home-and-www/22418.html

how to add a NIC and configure in Linux www.computing.net/answers/linux/how-to-add-a-nic-and-configure-in-linux/6942.html

how to install qt? www.computing.net/answers/linux/how-to-install-qt/25574.html