deleted wrong partition (LUKS)
Posted: 03 Aug 2022, 01:35
I was installing various OSs on my nvme drive, and I got too clicky and accidentally deleted the backup partition that has all my backups on it. It's too large for me to backup again (my next largest disk is 4tb, this one is 10), and I'm wondering if I can get help to recover the partition. Specifically I was at the "select partition" part of installing an OS, and I accidentally deleted the one that was automatically highlighted (for all the other OSs it was the nvme drive, this one selected my spinning backup drive). Once I realized what I had done, I stopped and rebooted into the last OS I had installed (this one Manjaro) and have been looking for pages and guidance to undo deleting a partition.
So yeah, I'm currently on Manjaro...
nvme is the OS i'm on, and sda is the partition with the backups that I've used over many years across various OSs.
It's a LUKs encrypted drive.
I'm looking for step by step instructions on how to recover this but all the instructions I've been finding instruct how to recover boot partitions, windows, ntfs, fat, fat32 but not really on how to do just a stand alone LUKS drive and I'm confused. If it's possible to get copy paste guidance I'd appreciate that lots. I will do my due diligence, and read the documentation while I follow along the help I get to try and understand what I'm doing, but I'm pretty new at the whole recovery and manually mounting encrypted partitions stuff.
When I attempted to mount it as a loopback, I'm unable to find a "luks volume". I assume that's because the partition isn't there. Guessing I need to run testdisk to attempt recovery and write the table, then I should be able to mount the encrypted device and decrypt it and all should be well?
The original partition was approx. 90% full and was set to 6Tb of the 10 Tb disk
thanks in advance
So yeah, I'm currently on Manjaro...
Code: Select all
sudo lsblk ✔
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 9.1T 0 disk
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 300M 0 part /boot/efi
└─nvme0n1p2 259:2 0 465.5G 0 part /
It's a LUKs encrypted drive.
Code: Select all
sudo hexdump -C /dev/sda | grep LUKS
00100000 4c 55 4b 53 ba be 00 02 00 00 00 00 00 00 40 00 |LUKS..........@.|
^C
When I attempted to mount it as a loopback, I'm unable to find a "luks volume". I assume that's because the partition isn't there. Guessing I need to run testdisk to attempt recovery and write the table, then I should be able to mount the encrypted device and decrypt it and all should be well?
The original partition was approx. 90% full and was set to 6Tb of the 10 Tb disk
thanks in advance