(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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.