The kernel only seems to be seeing the first partition, which I think is a dummy “protective” partition that systems that don’t recognise GPT formatted disks will see:
Nov 05 14:03:48 raspi kernel: sd 0:0:0:0: [sda] 1565565872 512-byte logical blocks: (801 GB/746 GiB)
Nov 05 14:03:48 raspi kernel: sd 0:0:0:0: [sda] Write Protect is off
Nov 05 14:03:48 raspi kernel: sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
Nov 05 14:03:48 raspi kernel: sd 0:0:0:0: [sda] No Caching mode page found
Nov 05 14:03:48 raspi kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov 05 14:03:48 raspi kernel: sda: sda1
Nov 05 14:03:48 raspi kernel: sd 0:0:0:0: [sda] Attached SCSI disk
No trace of sda2 in the partition list reported by the kernel. Likewise udisks-glue (the automounter) is only detecting the one partition:
Nov 05 14:03:55 raspi udisks-glue[265]: Device file /dev/mmcblk0 inserted
Nov 05 14:03:55 raspi udisks-glue[265]: Device file /dev/sda inserted
Nov 05 14:03:55 raspi udisks-glue[265]: Device file /dev/sda1 inserted
Nov 05 14:03:55 raspi udisks-glue[265]: Device /dev/sda1 did not match any rules.
Nov 05 14:03:55 raspi udisks-glue[265]: brw-rw---- 1 root disk 8, 1 Nov 5 14:03 /dev/sda1
Nov 05 14:03:56 raspi udisks-glue[265]: blkid: /dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="f1913321-8ee0-4871-bdf1-2c242e5d36a4"
I’ve never actually used a GPT disk on Linux before so I don’t know whether our Kernel may be missing support for GPT or not.
Current GPT partition table:
# Start LBA End LBA Type
1 34 262177 MS Reserved
2 264192 5860532223 Basic Data
Current MBR partition table:
# A Start LBA End LBA Type
1 1 4294967295 ee EFI Protective
Status: MBR table must be updated.
Proposed new MBR partition table:
# A Start LBA End LBA Type
1 1 33 ee EFI Protective
2 34 262177 c0 Unknown
3 * 264192 5860532223 07 NTFS/HPFS
May I update the MBR as printed above? [y/N] y
Yes
Writing new MBR...
Warning: Partition 3 extends beyond 2 TiB limit
MBR updated successfully!
Thanks but its still not recognising it - is this because the partition is over the 2tb limit?
Error: Can't have a partition outside the disk!
Model: Generic External (scsi)
Disk /dev/sda: 802GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
Fdisk is still also showing the same:
osmc@raspi:~$ fdisk -l
Disk /dev/sda: 746.5 GiB, 801569726464 bytes, 1565565872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: BBA9CBCE-F513-4123-A61A-7BF5D84CBFA2
Device Start End Sectors Size Type
/dev/sda1 34 262177 262144 128M Microsoft reserved
/dev/sda2 264192 5860532223 5860268032 2.7T Microsoft basic data
Do you have any important data on the disk ? Because if you don’t, you’re now at the point where you are probably better off re-partitioning and re-formatting rather than trying to repair what is there.