Ubuntu 22.04 LTS, Gnome
I am trying to recover around 1 to 1.5 GB of data from a 3TB external HDD. It was disconnected while mounted under Ubuntu, and now fails to mount. The first mount attempt was when briefly connected under Windows 10.
I originally created the filesystem as a single non-bootable partition (IIRC ext3 or ext4) and encrypted with LUKS-2, using all the drive space, after zeroing out the whole drive first.
TestDisk analysis seems to find a large EFI GPT partition, with a bad sector count, overlapped near the end by a ~9GB extended partition, containing a FAT32 partition. Elsewhere it finds a sketchy FAT16 partition it canāt recover, and reports that the HDD āseems too smallā and should actually be over 4000MB.
The HDD is visible to my Ubuntu install.
$sudo fdisk -l
Disk /dev/sdb: 2.73 TiB, 3000592982016 bytes, 5860533168 sectors
Disk model: ST3000DM001-9YN1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000Device Boot Start End Sectors Size Id Type
/dev/sdb1 1 4294967295 4294967295 2T ee GPTPartition 1 does not start on physical sector boundary.
The partition does not mount
###@Stallo:~$ sudo mount /dev/sdb1 /home/###/mount
mount: /home/###/mount: special device /dev/sdb1 does not exist.
Indeed, /dev doesnāt list any partitions, just /dev/sdb. $sudo partprobe /dev/sdb detects nothing.
What Iāve Tried:
PhotoRec got past the partition mess, but found a bunch of āpdfā files up to a few dozen GB in size. There many such large files on the volume, but not pdfs. I guess PhotoRec is confused by the encryption.
Main Questions:
- Am I going to have to fix the partition table first, to be able to decrypt the contents? Iām expecting this is how LUKS-2 works
- If so, can it be done in pieces, i.e. creating a partial image, or will I have to image the whole thing onto another drive? And will that drive have to be >3TB?
- Any advice on going about the repair once itās imaged, greatly appreciated


