You are not logged in.

#1 2011-02-23 23:40:49

xdemo
Member
From: Bristol, UK
Registered: 2010-06-10
Posts: 42

[Solved] How to resize an encrypted luks partition?

Edit: This worked: http://www.enigmacurry.com/2007/04/28/r … ilesystem/

I have some empty space on my harddrive, and wish to fill it up, with my existing partition.

This is my harddrive setup in gparted:
screenshotkpa.th.png

And fdisk respectively:

[ricky@archlinux ~]$ sudo fdisk /dev/sda -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x58bd1192

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63      289169      144553+  83  Linux
/dev/sda2          289170   195607439    97659135   83  Linux

/dev/sda2 (the crypted luks partition) contains an lvm group.
I am trying to enlarge the luks partition, to fill all of the empty space, soi can give some more space to the lvm's inside the encrypted partition.

I did come across an interesting page here: http://www.enigmacurry.com/2007/04/28/r … ilesystem/

Is this the correct approach, by deleting the WHOLE partition (not the data), and then simply creating a new partition, with the same start-sector, and the higher end-sector?

Will that allow me to then resize my lvm's inside of the luks partition?

I am sorry if this is confusing.

Last edited by xdemo (2011-03-18 07:53:35)


Linux 2.6.38-ck x86_64 / xfce

Offline

Board footer

Powered by FluxBB