Ubuntu – Change GPT partition number

gptpartitioningUbuntu

I have a 2TB GPT drive that for some reason is mounted as /dev/sdc2. I would prefer all my data drives to be mounted as /dev/sd*1.

If I use sudo parted /dev/sdc print I get:

Model: ATA WDC WD20EARS-07M (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start  End     Size    File system  Name                  Flags
 2      135MB  2000GB  2000GB  ntfs         Basic data partition

Is it possible to change the partition number without losing any data?

Best Answer

I eventually found the solution by using gdisk (gdisk - Interactive GUID partition table (GPT) manipulator). This what I did:

  1. Run sudo gdisk /dev/sdc
  2. Option s to sort the partitions
  3. Review changes by using option p
  4. And finally write the changes to the disk with option w
Related Question