[Solved] Unable to mount luks disk

I've followed the guide https://wiki.openwrt.org/doc/howto/disk.encryption to encrypt a partition of my external disk under ubuntu. I tried to open, write and read the disk content, all works as expected. Then I plugged the disk on my router and after installing the needed packages (as shown in the same guide) I tried to run the two final commands. The first went ok (or, at least, it did not display any error after the password prompt and waiting for several seconds), but the second one not. Here is the log:

root@LEDE:/mnt# cryptsetup open /dev/sda2 sda2
Enter passphrase for /dev/sda2:

root@LEDE:/mnt# mount /dev/mapper/sda2 /mnt/sda2
NTFS signature is missing.
Failed to mount '/dev/mapper/sda2': Invalid argument
The device '/dev/mapper/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
NTFS signature is missing.
Failed to mount '/dev/mapper/sda2': Invalid argument
The device '/dev/mapper/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Can you help me explaining how to solve the issue?

Never mind, never mind, I solved mounting the partition with the option
-t ext4
Thank you anyway.

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.