adding another hard drive

situation:
1 hard drive 1GB.
partitions:
/     ~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 ... ?
dibAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rbrCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dibAuthor Commented:
sorry for the delay
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.