So now you have one or more partitions on your new disk. Each partition is addressed by succeeding integers as 1, 2, 3, and 4. Now you have to create a file system on the partition(s). I recommend the basic ext2 file system. Once you get more experience you can always play with the other file system types. In the following command we'll use the default values for most of the configurable options. We will assume that the new IDE disk is /dev/hdb. As root enter the following command:
/sbin/mke2fs -n -v -T news /dev/hdb1
This will test run the command. It will not actually do anything. If you get no errors then run the command without the -n as follows:
/sbin/mke2fs -v -T news /dev/hdb1
When that is finished you have to create an empty directory in the existing file system. This will be the access point for the file system on the new disk. You need a mount point for each partition. You could create a mount point as a subdirectory to the existing /mnt directory. Let's do that. Enter the following command:
mkdir /mnt/newdisk
Now you can mount the disk to that empty mount point as follows:
mount -t ext2 /dev/hdb1 /mnt/newdisk
Now enter the following command:
df
This should show that /mnt/newdisk has a file system mounted.
Now enter the following commands
cd /etc
cp fstab fstab.original
chmod u+w fstab
pico fstab
This will get you into a text editor, pico, which is very easy to use. Add the following line to the bottom of the file:
/dev/hdb1 /mnt/newdisk ext2 defaults 1 1
Save the file. Then enter the following commands:
umount /mnt/newdisk
df
You should be able to see that the /dev/hdb1 disk/partition is no longer mounted. Now enter:
mount -a
df
You should be able to see that /dev/hdb1 is once again mounted on /mnt/newdisk. The system will automatically mount this when you restart Linux.