fdisk partition
confused about partition.
Read a book and says MBR is limited to 4 primary partition, or 3 primary + 1 extended. Does that mean 1 harddisk can only have a max of 4 primary partition. Or all harddisk together can only have a max of 4 primary partition. ================================================== so that means if all my disk is primary, I can't have: /dev/hda1 /dev/hda2 /dev/hda3 /dev/hdb1 /dev/hdb2 ================================================== and how do I check if my current disk is primary or extended? |
Each disk can have four primary partitions. If you include logical partitions, each disk can have up to 15 partitions.
To check your disk, run "fdisk -l", and it will list the partitions you have. |
Actually an IDE can have up to 64 partitions, a SCSI drive is 16.
|
From my kernel boot log:
Code:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14 hda15 hda16 hda17 hda18 > |
Re: fdisk partition
Quote:
If you want to know about the size of current partition: df -h |
Yeah...the first three partitions are primary partitions. Then the fourth partition(/dev/hda4) is the extended partition. When you create the extended partition in fdisk you create it to use the rest of the disk. Then everything after that(/dev/hda5, /dev/hda6, etc.) will be a logical partition that is housed within the extended partition. So /dev/hda4 can't really be assigned to a specific directory since its not a useable partition.
|
Actually, you can assign the extended partition filesystem type to any one of the 4 primary partitions. In fact, windows will use the 2nd primary parititon as extended when creating additional drives.
|
All times are GMT -5. The time now is 12:13 AM. |