adding another hard drive

1 hard drive 1GB.
/     ~100MB
/user ~800MB
/swap ~100MB

I want to add another hard drive (540MB) to my pc to get more space on the /user patition.
how to achieve that without reinstalling ... ?
Who is Participating?
rbrConnect With a Mentor Commented:
Plug in your second HD
Master IDE 1 /dev/hda
Slave IDE 1 /dev/hdb
Master IDE 2 /dev/hdc
Slave IDE 2 /dev/hdd
fdisk /dev/hd?
create a new partion type is linux native. Use the complete HD for it.
The problem no is. that you can`t connect the 2 partitions togheter. You have to move some users to the second hd.
format the hd

mkfs -t ext2 /dev/hd?1

make a directory
/mnt/hd2 on the / partition

edit /etc/fstab

/dev/hd?1 / /mnt/hd2 ext2 default

Mount the HD

Make a directory /user on the second hd

copy all data(users) you want from the first hd to the second
delete the date on the first hd

Alter ether the passwd file or make a link for each user
ln -s /mnt/hd2/user/name /user/name
dibAuthor Commented:
sorry for the delay
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.