bug-parted
[Top][All Lists]
Advanced

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

Re: parted command : provide a way to resize / maximize a partition with


From: Brian C. Lane
Subject: Re: parted command : provide a way to resize / maximize a partition without FS resize
Date: Mon, 1 Apr 2013 10:39:44 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Mar 27, 2013 at 02:32:09PM +0100, Marc MAURICE wrote:
> Hi all,
> 
> I'm looking for a way to resize or maximize a partition that can be
> used from a script, without touching the filesystem inside.

You can use parted to change the partition table exactly by using either
the b (bytes) units or s (sectors). You can get machine readable output
by passing -m

I *DO NOT* recommend doing this. Especially without a backup of the
data. But you could remove the existing partition and then re-create it
with the same starting position and new end.

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

Attachment: pgp1N0DYz4Fg1.pgp
Description: PGP signature


reply via email to

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