Linux, fdisk: change order of partitions

fdisklinuxpartitioning

I have a harddrive with 24 logical partitions on it. Half of them are Linux and half are windows. Current ordering is: 3 Linux partitions; 12 windows partitions; 9 Linux partitions. In this setup, Windows can access any of partition (no limits on partition number), but Linux can't access sda16, sda17 …

Can I change numbering of partitions without moving them on disk? I want to put all Linux partitions to be <16; and windows partitions to be > 16, so linux will be able to access all linux partitions.

I have fdisk/sfdisk and it sees all partitions.

Best Answer

You can rearrange the partition table using sfdisk, which is very risky (vulnerable to human error) but probably the only way. I described how to do that here - you'll need to adapt the procedure to your specific scenario.

Related Question