Skip to content

[luksoid] mkfs.ext4: Operation not permitted while trying to determine filesystem size #19

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=$(pwd),target=/data" \
  theanurin/luksoid:0.0.7 init --sizemb=96 --fstype=ext4 luksoid.img

Output:

Initializing a zero-based file '/data/luksoid.img' for 96 MBytes... Done.

Checking for free loop device... Done.

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

LUKS Formatting. Now, you will be ask for a passphrase. ALL DATA IN THE FILE '/data/luksoid.img' WILL BE DISCARDED!!!
Enter passphrase for /data/luksoid.img: 
LUKS Formatting done.

LUKS Opening. Now, you will be ask for the passphrase again. We have to open your LUKS image to double-check the passphrase and make filesystem 'ext4' on it.
Enter passphrase for /data/luksoid.img: 
LUKS Opening done.

Writing zeros to the LUKS-encrypted partition. This ensures that outside world will see this as random data i.e. it protect against disclosure of usage patterns... Done.

Creating a file system 'ext4' on LUKS-encrypted partition...
mke2fs 1.46.4 (18-Aug-2021)
mkfs.ext4: Operation not permitted while trying to determine filesystem size
 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

    Funny... I cannot reproduce that after post the issue)

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

    @maksym-anurin-push
    Author

    No luck.. trying to reproduce a lot of times..

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