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

Re: How to enlarge LUKS partition ?



On Mon, 20 Aug 2012 17:57:31 +0200
"tv.debian@googlemail.com" <tv.debian@googlemail.com> wrote:

> On 20/08/2012 16:53, J. B wrote:
> >
> > Dear list,
> >
> > Is there anyone who is successful increasing LUKS partition ?
> > I have 2 physical partitions /dev/sda1 and /dev/sda2.
> > There is 800 GB free disk space (un-partitioned) between sda1&  sda2
> > Whole /dev/sda2 is dedicated to a LUKS partition which holds a LVM.
> > I have tried with gparted to increase /dev/sda2 but there is no support to increase luks.
> > How can I increase sda2, so that I can later execute cryptsetup resize ?
> >
> > Thanks
> >
> >
> Hi, I resized LUKS containers on several occasions, without lvm on top 
> but it shouldn't be much more difficult.
> I usually operate from a live-cd, any will do as long as there is 
> cryptsetup/lvm/whatever-filesystem-you-use support, or that you can 
> install it.
> Close LUKS container if open (unmount partition, close lvm first if 
> needed), fire up fdisk to destroy the partition that support the LUKS 
> container, and recreate it with the desired size. fdisk commands are "d" 
> (destroy), 

But it also destroy the data in LVM, no ?


Reply to: