×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Adding Hardware

To to Add a second IDE Hard drive to linux system by clonny2
Posted: 25 Mar 03

(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.

Back to Linux (server) FAQ Index
Back to Linux (server) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close