Partition Numbering question!
Is it always true that
1. the first partition (primary) is called /dev/hda1, 2. the second (primary) contigous /dev/hda2 and so on...? [make conservative assumptions, like your drive is not SCSI..] |
hda1-4 are primary or extended partitions, hda5-> will be partitions inside an extended partition
|
I have an interesting situation.
My earlier harddrive map looked like this, |<hda1(QNX)>|<empty 1 (unallocated)>|<hda2>|<empty 2(unallocated)>|<hda5>.. Later, I installed BSD after creating a BSD type partition (No 165) in first empty space. Upon fdisking, the old hda2 still appears as hda2, and the new BSD partition appears as hda4. Not sure why... So, the new map is |<hda1>|<hda4>|<hda2>|<hda5>..... Any idea what's going on? Is it possible to change the name of partition numbers? |
The numbers are assigned (well, nott exactly, but we can say this) when a partition is created. So when a partition between hda1 and hda2 was created, it took free number.
Note that some OSes (especially Windows) don't handle such situation easily. It may create problems. |
plus you should give it correctly, the numbers are actually like this:
<hda1> primary <hda4> primary <hda2> primary <hda3> extended <hda5> logical etc Btw: i thought windows didn't support more then one primary partition? ~Progster |
Well, It is possible to change the numbers? like, can I change the
name of /dev/hda2 to /dev/hda3? If yes, how? |
I think you have hda3... Extended partitions are created inside a primary one. This primary one (you can't use it as other ones) may be hda3.
|
welll hd3 will be the extended partition, inside them will be virtual partitions, or whatever fdisk calls them
|
I believe that the only way to change the numbers of the partitions is to edit the partition table and rearrange the entries. Whichever partition comes first in the table is hda1 and the next one would be hda2.
To make hda2 become hda3 and hda3 become hda2, you would have to swap their entries in the partition table. It's not something you really want to do. You could mess it up. |
All times are GMT -5. The time now is 09:35 AM. |