Hi, Parted in script mode (latest git snapshot) fails to run when "unit MiB" is used (mainly for mkpart commands). I am planning to use similar commands in Archlinux installer script. Please check the attached file test_parted_unit.sh . Thanks in advance.
keshav_pr@host % ./test_parted_unit.sh + echo + rm -f ./test.bin + echo + dd if=/dev/zero of=./test.bin bs=1000000 count=1024 1024+0 records in 1024+0 records out 1024000000 bytes (1.0 GB) copied, 21.0416 s, 48.7 MB/s + echo + parted -a optimal -s ./test.bin unit MiB mktable GPT + parted -a optimal -s ./test.bin unit MiB mkpart 1 1 2 + parted -a optimal -s ./test.bin set 1 bios_grub on + parted -a optimal -s ./test.bin name 1 BIOS_BOOT_GRUB2 + parted -a optimal -s ./test.bin unit MiB mkpart 2 2 202 Error: You requested a partition from 2.00MiB to 202MiB. The closest location we can manage is 2.00MiB to 202MiB. Regards. Keshav
test_parted_unit.sh
Description: Bourne shell script
_______________________________________________ bug-parted mailing list bug-parted@gnu.org https://lists.gnu.org/mailman/listinfo/bug-parted