I have (had?) a HDD with a LUKS container. I wanted to access it within WSL (Ubuntu) so I ran these commands in PowerShell:
- wmic diskdrive list brief
- wsl --mount DiskPath --bare
(According to the second answer: https://superuser.com/questions/1129533/how-to-access-drives-other-than-c-in-ubuntu-on-windows)
Unfortunately, I did not know that this would apparently create a new partition. Now cryptsetup doesn't recognize the container anymore and my HDD looks like this:
fdisk -l /dev/sda
Disk /dev/sda: 3,64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: ST4000DM004-2CV1
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: gpt
Disk identifier: A149A5A1-E9D1-4DA3-AE90-8EFD1DB81F44Device Start End Sectors Size Type
/dev/sda1 34 32767 32734 16M Microsoft reservedPartition 1 does not start on physical sector boundary.
Is there ANY WAY to restore the container again, or do I have to say goodbye to my data?