Custom Search

Saturday, September 12, 2009

Linux Partition Naming Convention IDE SCSI

Linux Partition Naming Convention IDE SCSI

IDE Hard Disk
*************
hda --> hd0 --> First Hard Disk (connected in IDE1)
hdb --> hd1 --> Second Hard Disk (connected in IDE2)

hda0 --> Not exist
hda1 --> (hd0,0) --> First partition in First Hard Disk
hda2 --> (hd0,1) --> Second partition in First Hard Disk
hda3 --> (hd0,2) --> Thired partition in First Hard Disk

hdb0 --> Not exist
hdb1 --> (hd1,0) --> First partition in Second Hard Disk
hdb2 --> (hd2,1) --> Second partition in Second Hard Disk
hdb3 --> (hd1,2) --> Thired partition in Second Hard Disk

---------------

20GB  -- hda1 --> (hd0,0) --> First partition in First Hard Disk(First Primary Partition)
20GB  -- hda2 --> (hd0,1) --> Second partition in First Hard Disk(Second Primary Partition)
20GB  -- hda3 --> (hd0,2) --> Thired partition in First Hard Disk(Thired Primary Partition)
100GB -- hda4 --> (hd0,3) --> Extended Partition.
  |
  --> 25GB  -- hda5 --> (hd0,4) --> First Logical Partition in Extended Partition
      25GB  -- hda6 --> (hd0,5) --> Second Logical Partition in Extended Partition
      25GB  -- hda7 --> (hd0,6) --> Thired Logical Partition in Extended Partition
      25GB  -- hda8 --> (hd0,7) --> Fourth Logical Partition in Extended Partition

---------------
* only can create 4 primary partitions in a system.To create more partitions, create an extended partiotion and then create any number of logical partitions in it.

* In linux we can set boot flag in Logical and Primary partitions to boot OS from that partiotion.But Windows set boot flag only in Primary Partition. 

*  Grub (boot loader) know only IDE naming convention Eg: hda1,hda2. Grub dont understand SCSI naming convention Eg: sda1,sda2.

---------------

SCSI Hard disk
**************

sda  --> First Hard Disk
sdb  --> Second Hard Disk

sda0 --> Not exist
sda1 --> First partition in First Hard Disk
sda2 --> Second partition in First Hard Disk
sda3 --> Thired partition in First Hard Disk

sdb0 --> Not exist
sdb1 --> First partition in Second Hard Disk
sdb2 --> Second partition in Second Hard Disk
sdb3 --> Thired partition in Second Hard Disk


20GB  -- sda1 --> First partition in First Hard Disk(First Primary Partition)
20GB  -- sda2 --> Second partition in First Hard Disk(Second Primary Partition)
20GB  -- sda3 --> Thired partition in First Hard Disk(Thired Primary Partition)
100GB -- sda4 --> Extended Partition.
  |
  --> 25GB  -- sda5 --> First Logical Partition in Extended Partition
      25GB  -- sda6 --> Second Logical Partition in Extended Partition
      25GB  -- sda7 --> Thired Logical Partition in Extended Partition
      25GB  -- sda8 --> Fourth Logical Partition in Extended Partition

*****************************************

No comments:

Post a Comment