How To Fix if Partition Table Entries not in Disk Order

The suggestion given below can help if your partition table is not in a proper disk order.

From linux fdisk (fdsik /dev/), choose the advanced menu (by pressing x, afaik), then choose the entry for correcting partition ordering (press 'm' anytime to get some help on commands).

You should know that after following the step above, your partitions will be in the order they are on the disk, meaning all (or some) numbers might change. That means you might have to adjust your /boot/grub/menu.lst,
and probably also your /etc/fstab.

Now, you will get (on disk):


Why would it happen ?

It often happens when you delete one partition in the middle and insert two or more in the remaining space. It can also happen when you start adding partitions at the end.

For example if you had:

/dev/hda2 < delete, enter two new partitons

After entering the two partitons, the ordering is:

/dev/hda4 < wrong ordering

Bobbin Zachariah 11:01 pm

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author's All Posts
Like to become part of Linoxide Team and contribute tips? Contact us here.


Your email address will not be published. Required fields are marked *

All comments are subject to moderation.