Article 5C92W Problem mounting LUKS partition after OS crash

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.

Thankslatest?d=yIl2AUoC8zA latest?i=U6HuxpoMp-4:U5zbn2CXtWg:F7zBnMy latest?i=U6HuxpoMp-4:U5zbn2CXtWg:V_sGLiP latest?d=qj6IDK7rITs latest?i=U6HuxpoMp-4:U5zbn2CXtWg:gIN9vFwU6HuxpoMp-4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments