GNU bug report logs - #22167
Invalid token errors with resizepart

Previous Next

Package: parted;

Reported by: Julius Schwartzenberg <julius.schwartzenberg <at> abz.nl>

Date: Mon, 14 Dec 2015 16:37:02 UTC

Severity: normal

Tags: patch

Merged with 24215

Full log


View this message in rfc822 format

From: "Brian C. Lane" <bcl <at> redhat.com>
To: 22167 <at> debbugs.gnu.org
Subject: bug#22167: Invalid token errors with resizepart
Date: Mon, 14 Dec 2015 13:48:05 -0800
On Mon, Dec 14, 2015 at 04:52:08PM +0100, Julius Schwartzenberg wrote:
> Hi,
> 
> I'm trying to create a single command to increase a single root partition to
> the maximum size. Doing it step by step, I managed to do it interactively
> with:
> >(parted) resizepart 1
> >Warning: Partition /dev/vda1 is being used. Are you sure you want to continue?
> >Yes/No? yes
> >End?  [4000MB]? -1s
> 
> When I do it all on a single line, I get an error that -1s is an invalid
> token however:
> >(parted) resizepart 1 -1s
> >Warning: Partition /dev/vda1 is being used. Are you sure you want to continue?
> >parted: invalid token: -1s
> 
> I tried other values as well, but it seems the end argument can't be parsed
> properly when it's specified with the initial call or I'm doing something
> wrong. Is there any way to get this to work?

You need to make sure the partition isn't mounted.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




This bug report was last modified 5 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.