To add and partition secondary disks in a linux server follow the steps.
1. Login to server as root.
2. Run the command fdisk -l
You can see the new disk like /dev/sdb
3. To format and partition the disk run the following commands.
fdisk /dev/sdb
# m –> prints all commands
# n –> to create a new partition
# d –> to delete a existing partition
# p –> for primary partition
# 1 –> for 1st partition
# w –> to write and exit
4. To create the filesystem in the new partition run the following command.
mkfs.ext3 /dev/sdb1
5. To mount the created partition in the server as /disk2 .
# mkdir /disk2
# vi /etc/fstab (Edit fstab for the new disk add the following line )
/dev/sdb1 /backup ext3 defaults 0 0
# mount -a ( To mount the devices entered in fstab)
# df -h ( To verify the mounted devices )





