How to make the Device Partitioning Numbers in Order (example: "/dev/sda1 to sda5"}
Solution 1:
Use sgdisk
from the gdisk
package to sort the entries. This can be done by issuing the below command.
sgdisk -s /dev/sda
-s, --sort
Sort partition entries. GPT partition numbers need not match the
order of partitions on the disk. If you want them to match, you
can use this option. Note that some partitioning utilities sort
partitions whenever they make changes. Such changes will be
reflected in your device filenames, so you may need to edit
/etc/fstab if you use this option.