bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parted script mode fails with unit option


From: Keshav P R
Subject: parted script mode fails with unit option
Date: Sun, 9 Oct 2011 22:30:59 +0530

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.

address@hidden % ./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

Attachment: test_parted_unit.sh
Description: Bourne shell script


reply via email to

[Prev in Thread] Current Thread [Next in Thread]