Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

LUKS Container lost due to partitioning by Windows?

$
0
0

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-8EFD1DB81F44

Device Start End Sectors Size Type
/dev/sda1 34 32767 32734 16M Microsoft reserved

Partition 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?


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>