Skip to content

[luksoid] mount: mounting /dev/mapper/uncrypted-loop0 on /mnt failed: Invalid argument #20

Open

Description

@maksym-anurin-push

System Info:

% uname -a 
Darwin lp0b.local 24.6.0 Darwin Kernel Version 24.6.0: Tue Apr 21 20:19:12 PDT 2026; root:xnu-11417.140.69.710.16~1/RELEASE_ARM64_T6041 arm64

% orb version
Version: 2.2.1 (2020100)
Commit: 0e182b501fcd9e05b99ffb363fce03610390c400 (v2.2.1)

% docker --version 
Docker version 29.4.0, build 9d7ad9f

Command:

docker run \
  --privileged=true \
  --rm \
  --interactive \
  --tty \
  --mount "type=bind,source=${SCRIPT_DIR},target=/data" \
  theanurin/luksoid mount luksoid.img

Output:

Checking for free loop device... Done.

Attaching the file '/data/luksoid.img' to /dev/loop0... Done.

LUKS Opening. Now, you will be ask for a passphrase.
Enter passphrase for /data/luksoid.img: 
LUKS Opening done.

Mounting a file system '' on LUKS-encrypted partition...
mount: mounting /dev/mapper/uncrypted-loop0 on /mnt failed: Invalid argument
 FAILURE. See log above to detect the problem.
LUKS Closing... Done.
Releasing /dev/loop0... Done.

Activity

  1. maksym-anurin-push commented on Jun 9, 2026

    @maksym-anurin-push
    Author

    Trying to play...

    bash-5.1# mount /dev/mapper/uncrypted-loop0 /mnt
    mount: mounting /dev/mapper/uncrypted-loop0 on /mnt failed: Invalid argument
    
    bash-5.1# mount -t ext4 /dev/mapper/uncrypted-loop0 /mnt
    # Works!!!
    

    Full log:

    bash-5.1# losetup -a
    /dev/loop0: 0 /data/luksoid.img
    bash-5.1# cryptsetup status /dev/mapper/uncrypted-loop0 
    /dev/mapper/uncrypted-loop0 is active.
      type:    LUKS2
      cipher:  aes-xts-plain64
      keysize: 512 bits
      key location: keyring
      device:  /dev/loop0
      loop:    /data/luksoid.img
      sector size:  512
      offset:  32768 sectors
      size:    163840 sectors
      mode:    read/write
    bash-5.1# e2fsck /dev/mapper/uncrypted-loop0 
    e2fsck 1.46.6 (1-Feb-2023)
    /dev/mapper/uncrypted-loop0: clean, 11/20480 files, 10799/81920 blocks
    bash-5.1# mount /dev/mapper/uncrypted-loop0 /mnt
    mount: mounting /dev/mapper/uncrypted-loop0 on /mnt failed: Invalid argument
    bash-5.1# cat /proc/filesystems | grep ext4
    bash-5.1# mount -t ext4 /dev/mapper/uncrypted-loop0 /mnt
    bash-5.1# mount | grep uncrypted-loop0
    /dev/mapper/uncrypted-loop0 on /mnt type ext4 (rw,relatime)
    bash-5.1# blkid -o value -s TYPE /dev/mapper/uncrypted-loop0
    /dev/mapper/uncrypted-loop0: UUID="926d7f1f-be8d-4359-9d48-a37b45f333ab" TYPE="ext4"
    bash-5.1# cat /proc/filesystems
    nodev   sysfs
    nodev   tmpfs
    nodev   bdev
    nodev   proc
    nodev   cgroup
    nodev   cgroup2
    nodev   devtmpfs
    nodev   binfmt_misc
    nodev   debugfs
    nodev   tracefs
    nodev   securityfs
    nodev   sockfs
    nodev   bpf
    nodev   pipefs
    nodev   ramfs
    nodev   rpc_pipefs
    nodev   devpts
            vfat
    nodev   nfsd
    nodev   autofs
            fuseblk
    nodev   fuse
    nodev   fusectl
    nodev   virtiofs
    nodev   overlay
            erofs
    nodev   mqueue
            btrfs
            ext3
            ext2
            ext4
    
  2. maksym-anurin-push commented on Jun 9, 2026

    @maksym-anurin-push
    Author
    bash-5.1# mount --help
    BusyBox v1.34.1 (2021-11-23 00:57:35 UTC) multi-call binary.
    
    Usage: mount [OPTIONS] [-o OPT] DEVICE NODE
    
    Mount a filesystem. Filesystem autodetection requires /proc.
    ...
    

    Looks like /proc does not contain necessary data in my environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions