[SOLVED] LUKS USBs not recognized

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.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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 cryptsetup installed, 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!

      #19983
      Forum Admin
      dolphin_oracle
        Helpful
        Up
        0
        ::

        I think the tools antiX uses for automounting do not support encrypted partitions directly. You’ll need to use

        luksOpen devicename name

        to 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_usb

        which 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.
        #20005
        Anonymous
          Helpful
          Up
          0
          ::

          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?

          #20015
          Anonymous
            Helpful
            Up
            0
            ::

            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 luks

            Upon 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/USB1

            The 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 EncUSB

            Thanks for steering me in the right direction.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.