Change GPT partition number
Solution 1:
I eventually found the solution by using gdisk
(gdisk - Interactive GUID partition table (GPT) manipulator). This what I did:
- Run
sudo gdisk /dev/sdc
- Option
s
to sort the partitions - Review changes by using option
p
- And finally write the changes to the disk with option
w
Solution 2:
Classic (DOS) partition table is just that, a table. There are four primary rows (lines). You can have an entry in a second row, while the first line is empty (all zeros).
First of all, make a backup. Then I would rather use a very dumb and simple tool like fdisk:
- run
fdisk /dev/sdc
- Switch to extended commands (x) and use "Fix partition order" (f) command to reorder the partition table. This, hopefully, will move the second line to the first place.
If this does not work, you can always do it manually. E.g. create a first partition with exactly the same parameters as the second one, and then delete the second partition. Be sure to use a very simple tool like fdisk, which does not do anything with the actual data behind the scenes, and only modifies the partition table.
After that: make sure all partition pointers in fstab and its likes are correct. Reboot ASAP.