Problem mounting LUKS partition after OS crash
by nomadic101 from LinuxQuestions.org on (#5C92W)
Hello
I'm using OSMC (debian-based OS). I have an attached HD via USB, which has an encrypted LUKS partition. THe OS crashed and now after re-booting I can't mount the encrypted partition (the other non-encrypted partition mounts fine).
I seem to be able to open the encrypted partition with:
Code:sudo cryptsetup luksOpen /dev/sda2 encrypt-data
osmc@osmc-ss:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
sda1 8:1 0 2.6T 0 part /home/osmc/media-drive
sda2 8:2 0 1T 0 part
encrypt-data 253:1 0 1T 0 crypt
But when I try to mount it:
Code:osmc@osmc-ss:~$ sudo mount /dev/mapper/encrypt-data /encrypt-data
mount: /encrypt-data: wrong fs type, bad option, bad superblock on /dev/mapper/encrypt-data, missing codepage or helper program, or other error.I've tried searching for a solution, but confused. Any help will be appreciated.
Thanks


I'm using OSMC (debian-based OS). I have an attached HD via USB, which has an encrypted LUKS partition. THe OS crashed and now after re-booting I can't mount the encrypted partition (the other non-encrypted partition mounts fine).
I seem to be able to open the encrypted partition with:
Code:sudo cryptsetup luksOpen /dev/sda2 encrypt-data
osmc@osmc-ss:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
sda1 8:1 0 2.6T 0 part /home/osmc/media-drive
sda2 8:2 0 1T 0 part
encrypt-data 253:1 0 1T 0 crypt
But when I try to mount it:
Code:osmc@osmc-ss:~$ sudo mount /dev/mapper/encrypt-data /encrypt-data
mount: /encrypt-data: wrong fs type, bad option, bad superblock on /dev/mapper/encrypt-data, missing codepage or helper program, or other error.I've tried searching for a solution, but confused. Any help will be appreciated.
Thanks