Description of problem: With a 100MB block device: $ sudo blockdev --getsize64 /dev/vg_data/tmp 104857600 $ sudo parted -s -- /dev/vg_data/tmp mklabel msdos mkpart primary 128 -128s Error: The location 128 is outside of the device /dev/dm-2. If the size of the block device is increased a bit to 500 MB, then the same command works fine: $ sudo blockdev --getsize64 /dev/vg_data/tmp524288000 $ sudo parted -s -- /dev/vg_data/tmp mklabel msdos mkpart primary 128 -128s Warning: The resulting partition is not properly aligned for best performance. $ echo $? 0 Version-Release number of selected component (if applicable): parted-3.1-28.fc21.aarch64 Also tested parted-3.1-17.sa1.4.aarch64 which fails in the same way. How reproducible: 100% Steps to Reproduce: 1. See above. 2. 3.
OK, I see why this is not a bug. I omitted '128s' ...