- The physical mount.
Copy down the specs from the label on the drive.
Make sure it's jumpered as "slave".
Mount the drive in a spare drive bay, securing it with several screws.
Attach an IDE cable from the IDE port on the motherboard.
- Update the BIOS with the info for the new drive.
It may autodetect, but don't count on it. Check the BIOS settings to make
certain. Setting the 'LBA' option not necessary.
- Partitioning.
Boot up Linux and partition the new drive:
As root, fdisk /dev/hdb.
[primary partition, Linux native]
- Format the new drive.
mke2fs -cv /dev/hdb1
[verbose output and check for bad blocks]
- Create a mount point.
Decide where you will be mounting it and create a mount point.
For example, if you will mount it as /mnt/drive2, as root,
cd /mnt
mkdir drive2
chmod 777 drive 2
[makes the new drive accessible to ordinary users.]
- Testing.
As root, mount -t ext2 /dev/hdb1 /mnt/drive2.
If no error messages, cd /mnt/drive2, and try creating a directory and
writing a couple of files.
If it works, hurray!
Continue to the final steps.
- Modify /etc/fstab.
Add the following line to /etc/fstab:
/dev/hdb1 /mnt/drive2 ext2 defaults 1 2
- Reboot and see if the new drive automounts.