Installer makes broken GPT partition table

Volker Wysk post at volker-wysk.de
Mon Jan 27 17:02:56 UTC 2020


Hi!

I've installed Ubuntu 18.04.3 LTS in an SSD (/dev/vgme0n1) and got a
broken partition table! See:

--snip------------------------------------------
# gdisk -l /dev/nvme0n1
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************

Disk /dev/nvme0n1: 1953525168 sectors, 931.5 GiB
Model: PNY CS3030 1TB SSD                      
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): EAC0F90C-0DB5-4597-AF12-707D4B900B85
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5485 sectors (2.7 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1499135   731.0 MiB   8300  Linux
filesystem
   5         1501184      1953523711   930.8 GiB   8300  Linux
filesystem
--snip------------------------------------------


Can the broken table be repaired? Doing "write" ("w") in gdisk doesn't
seem to just convert the table, but also seems to be destructive:


--snip------------------------------------------
# gdisk /dev/nvme0n1
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************


Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE
EXISTING PARTITIONS!!

Do you want to proceed? (Y/N): n
Aborting write of new partition table.
--snip------------------------------------------


What to do?


Cheers
Volker





More information about the ubuntu-users mailing list