Hi Amit

You need to do the following as root.

1)Your hard disk is identified by a device like follows

/dev/hda    Primary master
/dev/hdb    Primary slave
/dev/hdc    Secondary master
/dev/hdd    Secondary slave

For SCSI it's /dev/sda, /dev/sdb etc.

2)Attach your hard disk and run 'cfdisk /dev/hdb'. Change the device to suit
your case. Create the partitions using cfdisk. It's even easier than dos fdisk.

Let's say you create 4 partitions on new HDD. They will be labelled as
/dev/hdb1-/dev/hdb4. Do 'fdisk -l /dev/hdb' to get the partition listing on new
HDD.

3)To format the partition, run 'mke2fs /dev/hda1'. This stands for make ext2
filesystem. Not that the argument is partition to format. Refer to it's man
pages for checking the option of bad blocks during format. Format each partition
similarly.

4)Create a directory say /mnt/newhdd.(Name is upto you. You can absolutely
choose anything.) Now issue 'mount -t ext2 /dev/hdb1 /mnt/newhdd'. This will
mount the newly created partition.  The partition will be available as a
directory in / directory tree. Tweak it's permission to suit you.

Mount all the partition to different directories similarly.

To mount the partitions automatically for each boot, add an entry in /etc/fstab.
You will figure the format once you see the file. It's quite easy...

HTH

 Bye
  Shridhar

Verma Amit wrote:
> 
>  Hi all,
>      How can i add a new Hard disk to a Linux server
> And how can i format and use it.

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to