add new hd on linux

Can any one help me ? when i add a new hard disk to my pc i can't mount it in linux mandrake 9
i want to auto mount this new hd on my linux system
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.

gaferahmedAuthor Commented:
Nick AccadSystems AdministratorCommented:

after you physically install the new disk, u need to
create the partition table and the filesystems:

fdisk /dev/DEVICE

the DEVICE here is one of the following:

hda == primary master
hdb == primary slave
hdc == secondary master
hdd == secondary slave

read the man page for fdisk and create your partitions
after that you have to reboot, after rebooting you have
to "format" the partitions you created

for example, if you created /dev/hdd1 and /dev/hdd2
you will have to

mkfs.ext2 (or mkfs.ext3 if u want journaling support, read the man page for mkfs for more details)

mkfs.ext2 /dev/hdd1
mkfs.ext2 /dev/hdd2

choose a mount point, for example if you want the 1st
partition of the new disk to be mounted under /mnt/new1
and the 2nd partition to be /mnt/new2 you will have to
create those mount points:

mkdir -p /mnt/new1
mkdir -p /mnt/new2

and then mount it:

mount /dev/hdd1 /mnt/new1
mount /dev/hdd2 /mnt/new2

if you these new mounts to be automatic after the next
reboot, you need to create new lines in /etc/fstab
like this:

/dev/hdd1  /mnt/new1  ext2 defaults 1 2
/dev/hdd2  /mnt/new2  ext2 defaults 1 2

of course change 'ext2' to whatever you formatted your fs

that should do it


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
Become root... either by logging in or su or consolehelper (ie run it as a regular user and get asked the root password), then run diskdrake.

This is the familiar partitioning/formatting GUI from the installation.
Just click on the tab for your new drive and partition/format/assign mountpoint&options to your hearts content:-).

Or do the equivalent thing outlined by naccad.

-- Glenn
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split points between naccad and Gns
Please leave any comments here within the next seven days.


EE Cleanup Volunteer
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

From novice to tech pro — start learning today.

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.