Linux stores all the known disk partition in /proc/partitions file
The Entire hard disk is represented by a entry with minor number 0, the partitions on the drive are sequentially numbered after that.
We have added a new hard disk and it is represented as /dev/hdb
Partitioning the new disk :
The first steo after adding the new disk is to partition it in preparation of the adding a filesystem to it.
#fdisk /dev/hdb
Make the Hard Disk as primary partition
Enter all the default values
Once done type "p" and check for the details
Then to save the changes type "w"
To verify the new partition
#cat /proc/partitions
Putting the directory structure on the newly formatted hard disk
#mkfs -t ext3 /dev/hdb1
#mkdir /mnt/hdb
To automatically mount the partition
#vi /etc/fstab
/dev/hdb1 /mnt/hdb1 ext3 defaults 1 2
Mount the partition
#mount -a
Sunday, January 13, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment