Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › [SOLVED] LUKS USBs not recognized
- This topic has 3 replies, 2 voices, and was last updated Apr 3-2:18 am by Anonymous.
-
AuthorPosts
-
April 2, 2019 at 7:22 am #19981
Anonymous
I’m running AntiX 17.4 (4.9.160-antix.1-amd64-smp) on a Acer Swift notebook. I use a lot of LUKS encrypted USB thumbdrives, which with most distros, upon insertion, a window pops of asking for the passphrase and once entered, it’s decrypted and accessible. I have
cryptsetupinstalled, and while unencrypted USB thumbdrives are recognized and mounted as expected, LUKS partitions are not recognized and therefore inaccessible. Can someone help me out with this? Thank you!April 2, 2019 at 7:49 am #19983Forum Admin
dolphin_oracle
::I think the tools antiX uses for automounting do not support encrypted partitions directly. You’ll need to use
luksOpen devicename nameto open the luks container on the device. Then you should be able to mount the filesystem within.
So if your usb is sdb and your encrypted partition is sdb1, you would
luksOpen /dev/sdb1 encrypted_usbwhich should make the filesystem available at
/dev/mapper/encrypted_usb
spacefm will probably mount that automatically
- This reply was modified 4 years, 1 month ago by dolphin_oracle.
April 2, 2019 at 6:23 pm #20005Anonymous
::Thanks. I tried doing what you suggested and was asked for the passphrase, but once entered, spacefm returns with
udevil: denied 73: fstype 'crypto_LUKS' is not an allowed type. I checked /dev/mapper/encrypted_usb and it’s there but not accessible since it’s not supported. Is there a package I can install to add this LUKS capability?April 3, 2019 at 2:18 am #20015Anonymous
::Thanks, dolphin_oracle, for your help.
I didn’t realize it was just a symlink in /dev/mapper/, which is why it wouldn’t open (duhhh). Got it working by doing as follows.
Open LUKS container partitions
sudo cryptsetup open /dev/LUKSpartition NAME --type luks
Example:sudo cryptsetup open /dev/sda1 EncUSB --type luksUpon entering your passphrase/password, a symlink appears at /dev/mapper/NAME
Then I mounted it by first creating a directory:
sudo mkdir /mnt/directoryname
Example:sudo mkdir /mnt/USB1
Then mounting:
sudo mount /dev/mapper/NAME /mnt/directoryname
Example:sudo mount /dev/mapper/EncUSB /mnt/USB1The encrypted partition will then be accessible.
Then for closing the container:
sudo umount /mnt/directoryname
Example:sudo umount /mnt/USB1
Then,
sudo cryptsetup close NAME
Example:sudo cryptsetup close EncUSBThanks for steering me in the right direction.
-
AuthorPosts
- You must be logged in to reply to this topic.