See post: viewtopic.php?f=49&t=257816&p=1391392#p1391392
Now that the reader is working, the procedure I had used to mount the encrypted partition on the SD card is failing.
Prior to the failure I would run the following script from the / directory using terminal:
Code: Select all
#!/bin/bash
# A simple shell to mount disk encryption based parition under Linux.
# Tested on Debian and Ubuntu base NAS servers.
# ----------------------------------------------------------------------------
# Written by Vivek Gite <http://www.cyberciti.biz/>
# (c) 2008 nixCraft under GNU GPL v2.0+
# ----------------------------------------------------------------------------
# Last updated: 05/Dec/2011
# ----------------------------------------------------------------------------
### commands ###
_crypt="/sbin/cryptsetup"
_vg="/sbin/vgscan"
_vgc="/sbin/vgchange"
_mnt="/bin/mount"
### SET ME FIRST ###
### Partition specific settings ###
### SET ME FIRST ###
_device="/dev/mmcblk3p1"
_name="Data"
_mnts="/dev/mapper/Data"
_mntd="/media/andrew/Data"
printf "Mounting Drive"
echo
${_crypt} luksOpen ${_device} $_name
echo
${_vg} --mknodes
${_vgc} -ay
echo
${_mnt} ${_mnts} ${_mntd}
Now however, when I insert the SD card the encrypted partition refuses to mount. Initially upon inserting the card I receive a prompt for a password. Naturally I enter the password for the encryption and I receive the following error:
Code: Select all
Error mounting /dev/dm-4 at /media/andrew/Data: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/dm-4" "/media/andrew/Data"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/mapper/luks-4a6b3368-e4fc-4063-886a-fda46e330224,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
The readout of lsblk is the following:
Code: Select all
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0rpmb 179:24 0 4M 0 disk
mmcblk3 179:32 0 183.4G 0 disk
├─mmcblk3p2 179:34 0 90G 0 part /media/andrew/Lore
└─mmcblk3p1 179:33 0 93.4G 0 part
└─luks-4a6b3368-e4fc-4063-886a-fda46e330224
253:4 0 93.4G 0 crypt
mmcblk0boot0 179:8 0 4M 1 disk
mmcblk0boot1 179:16 0 4M 1 disk
mmcblk0 179:0 0 28.5G 0 disk
├─mmcblk0p2 179:2 0 488M 0 part /boot
├─mmcblk0p3 179:3 0 27.5G 0 part
│ └─mmcblk0p3_crypt 253:0 0 27.5G 0 crypt
│ ├─mint--vg-root 253:1 0 25.6G 0 lvm /
│ └─mint--vg-swap_1 253:2 0 1.9G 0 lvm
│ └─cryptswap1 253:3 0 1.9G 0 crypt [SWAP]
└─mmcblk0p1 179:1 0 512M 0 part /boot/efi
I'm not sure what to do next and I would greatly appreciate some direction. Thank you all.