Public bug reported: I wanted to create a new luks image file, or actually increase the size of one that had overflowed. Each time I get the error message:
Requested offset is beyond real size of device /work/e/tmp/codes.cryp. There is a suggestion this happens if you already have a luks drive mounted that is larger. I had nothing mounted through mapper. I successfully created my volume on 16.04, and 18.04. It fails on 20.04 after clean boot, and one device mount "sudo mount /dev/sda10 /work". I also mount /opt, and /big in my fstab I believe all versions have already been gathered. #!/bin/sh dd if=/dev/zero of=codes.cryp bs=1024 count=8000 # 4M volume sudo cryptsetup -vy luksFormat codes.cryp sudo cryptsetup luksOpen /work/e/tmp/codes.cryp codes sudo mkfs.ext4 /dev/mapper/codes sudo cryptsetup luksClose codes ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: cryptsetup 2:2.2.2-3ubuntu2 ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30 Uname: Linux 5.4.0-28-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Wed Apr 29 15:56:38 2020 InstallationDate: Installed on 2020-04-26 (3 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) SourcePackage: cryptsetup UpgradeStatus: No upgrade log present (probably fresh install) cmdline: BOOT_IMAGE=/boot/vmlinuz-5.4.0-28-generic root=UUID=ea9a06e5-2ffa-4a3a-9ff9-096ea28d78f7 ro quiet splash vt.handoff=7 crypttab: # <target name> <source device> <key file> <options> ** Affects: cryptsetup (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875885 Title: luks cannot create small volumes < 8M To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1875885/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs