Some months ago I decided to switch from gentoo to debian. Since I still had an old partition for ubuntu I just installed debian there.
While sitting in the Hackcenter1 I decided to repartition my hard drive. I didn't need gentoo anymore and the unencrypted swap was also pretty useless, but they ate nearly fifty percent of my disk space! So I decided to delete them and resize my home-partition. Here is how I did it:
- delete the partitions for gentoo (use parted or whatever)
- fdisk-> delete debian partition (it's sda6 for me) and recreate partition, now including free space after the old one2
- resize crypted volume (expands automatically to the maximum)
cryptsetup resize /dev/mapper/sda6_crypt
maybe I did a
pvresize alles
to resize the lvm group "alles" - I don't know - resize your logical volume - 7202 is the number ob blocks that can be added. Choose a big number and lvresize will tell you how many blocks you can add.
lvresize -v -l +7207 /dev/alles/home
resize the filesystemresize2fs /dev/alles/home
Update: There are really people who read this (via google) and I would like to know whether it worked for you. So please comment! (update2: no comments with ikiwiki, send me a mail if there's something you want to know)
1: at the 24C3, it was great btw.
2: you can't use parted because parted tries to resize the filesystem too and there it fails
