resize partition

Tony Arnold tony.arnold at manchester.ac.uk
Wed Nov 8 13:58:09 UTC 2006



Johan Ramm-Ericson wrote:
> On Wed, November 8, 2006 Andy wrote:
> 
>> On 08/11/06, Rares Vernica <rvernica at gmail.com> wrote:
>>> gparted just give me an error I did not know what to do with it.
>> Did you make sure the partition you where resizing was not mounted at
> the
>> time?
>> I don't think you can resize a partition if its mounted (if you can its
> probably a bad idea to).
>> - Andy
> 
> You can resize a partition online if it is a logical volume ("man lvm"  or
> "sudo apt-get install lvm2 ; man lvm").

You can certainly resize a logical volume on line, but you also have to
resize the file system in the logical volume, and that depends on the
type of the file system. I recently expanded a reiserfs system in a
logical volume while it was mounted wit no problem. Shrinking is a
different matter.

And to be really picky, a logical volume is not a partition!

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold




More information about the ubuntu-users mailing list