|
From: | Chunyang Liu |
Subject: | parted complain with negative number as argument for mkpart sub-command |
Date: | Sun, 10 Jul 2011 15:31:13 +0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 |
hi guys,i want to create a partition on my disk using parted. the new partition will fill all remain space on the disk. as man page said, i can use negative number as argument to count from end of the disk.
but i found parted doesn't work. following is the command i tried: # parted -s /dev/sdb mkpart extended 2048M '-1s' parted: invalid option -- 1 # parted -s /dev/sdb mkpart extended 2048M '\-1s' Error: " 1s" has invalid syntax for locations.if in interactive mode, the above command works. but i need to script it. so is it a bug or it's work-aroundable?
thanks! -- Chunyang Liu
[Prev in Thread] | Current Thread | [Next in Thread] |