If a picture is worth a thousand words, here is 2K:
The top is gparted and the bottom is the terminal.
gparted lists partitions in sector order:
- p1, p2, p3, p4, p11, p5, p8, p6, p7
The terminal lists partitions in lsblk
order (using the alias lsdrv
):
- p11, p7, p5, p3, p1, p8, p6, p4, p2
There are partitions deleted in preparation of Ubuntu 24.04 install:
- p9, p10
It's noteworthy that partition p11
used to be p9
with the flags hidden, diag
but after copy & paste the flags were changed to msftdata
. I haven't booted Windows 10 in years so I may never know if this will be a problem...
Some say fdisk
may solve the problem and renumber the partitions in order, but I haven't found a definitive answer. How can partitions be renumbered in the order of:
- p1, p2, p3, p4, p5, p6, p7, p8 and p9?
fdisk
solution that doesn’t do what you need? 🤔nvme
devices weren't supported. However I must have spelled the device wrong because it works now. I'll delete my question later today after you read the comment. Thanks.sudo sfdisk -d /dev/sda > PT_sda.
And same for nmve drive's partitions.etc/fstab
it's byUUID
of course so that is the only thing I would have to change to point to the mount name. I'll rescind my idea of deleting this question because your excellent comment will go into the dust-bin. I'll post an answer of what I did to solve the problem and add your caution to backup and recommendation forgdisk
by Rod Smith.