Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To to Add a second IDE Hard drive to linux system

Adding Hardware

To to Add a second IDE Hard drive to linux system

by  clonny2  Posted    (Edited  )
(1) attach the new hard drive.
(2) you will need to create partitions on the hard drive.
ááYou will need to know what the drive is connectecd as
ááPrimary Master = hda
ááPrimary Slaveáá= hdb
ááSecondary Master = hdc
ááSecondary Slave = hdd
fdisk /dev/hd?
ácreate as many partitions that you need.
áexample:
án (new)
áp (primary)
áENTER (start first cylinder at begining)
áENTER (use the whole disk as 1 partition)
áw (write the partition table)
(3) You need to put a filesystem on the hard drive.
áYou must decide what type of filesystem you would like to put on, like ext2, ext3, jfs, reiserfs, xfs, etc..
The will be a format utility for that type of filesystem, usually mkfs.ext3 mkfs.xfs mkfs.ext2 mkfs.reiser mkfs.jsf.
So run the format on the device like mkfs.ext3 /dev/hdc1

(4) Mount the drive.ááOnce the format is finished formating you need to mount the drive. Create a mount point like hdc.
"mkdir /mnt/hdc"
mount /dev/hdc1 /mnt/hdc

(5) Edit the fstab to now use the new drive and partitions. I do not know how familiar you are with vi so use pico.ááCopy the fstab to a backup file.
cp /etc/fstab /etc/fstab.bk
pico /etc/fstab. Using your new mount point make an entry for the new drive. Follow what you already have in the fstab.

(6) Test the new mount point.ááReboot the server and login.ááOnce logged in type mount.
See if the new drive is mounted or not.
That should be it.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top