GPT Partition re-naming / re-ordering after deletion

So I removed the first three partititons (old unused rescue system) on a gpt disk, which were followed by partitions containing other systems.

Disklabel type: gpt
Disk identifier: E9F262E3-E987-4560-B064-0EC666DF4802

Device         Start       End   Sectors  Size Type
/dev/sdf4  101281792 101896191    614400  300M EFI System
/dev/sdf5  101896192 311611391 209715200  100G Linux filesystem
/dev/sdf6  311611392 312225791    614400  300M EFI System
/dev/sdf7  312225792 521940991 209715200  100G Linux filesystem

gparted

Does anyone know if there is there a non destructive way of re-ordering / re-naming the partition ids to begin from sdf1, instead of sdf4?

If the only way is to backup, re-partition (ie remove all partitions & re-create), then restore into those new partitions then I’ll probably leave it as it is … despite how much it will irritate my mild OCD.

I believe a managed to do this using fdisk in Expert Mode.

sudo fdisk /dev/sdf

    press “x” to enter Expert Mode
    press “f” to fix the drive order
    press “w” to write changes to the disk
    press “q” to  quit fdisk

I think I had to reinstall grub after writing the changes to disk.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.