Storage Management:
Hard disk:
It contains two main part.
IDE
sata
IDE:
/dev/hda ----> It's a Primary Master Partition.
/dev/hdb ----> It's a Primary Slave Partition.
/dev/hdc ----> It's a secondary Master Partition.
/dev/hdd ----> It's a secondary Slave Partition.
SATA:
/dev/sda ----> It's a Primary Master Partition.
/dev/sdb ----> It's a Primary Slave Partition.
/dev/sdc ----> It's a secondary Master Partition.
/dev/sdd ----> It's a secondary Slave Partition.
To view Harddisk Information:
#fdisk -l
To Enter the Partition into a harddisk:
fdisk /dev/hda or for sata fdisk /dev/hda
command P-partition information
hda1 Partition name in linux c: in windows
hda2 Partition name in linux d: in windows
. .
. .
. .
To create the new partition:
New partition Command for create n
size +1024 [1 GB].
-To save and exit the partition using w.
To Create a File System:
#mkfs -t file system name device name
MKFS - Making File System.
ext3 - extended 3 in el5.
Example:
# mkfs -t ext3 /dev/hda8
Difference Between ext2 and ext3:
ext2 - do not support the data recovery.
ext3 - support data recovery.
To Access the partition:
#mount -t ext3 /dev/hda8 /hard8
-- you create the files and it will be automatically to stored into a hard8.
To Delete the partition:
Command delete for d
to be delete for particular linux partition[when you are selected that partition.]
Note:
save and exit: wq
without save: q