I installed Ubuntu with encryption and LVM on my entire haddisk...
Now I want to resize it.
How do I do This...
Following this link gave me errors on step 2 -
How can I resize an LVM partition? (i.e: physical volume)
error
ubuntu@ubuntu:~$ sudo e2fsck -f /dev/sda5 e2fsck 1.42.5 (29-Jul-2012) ext2fs_open2: Bad magic number in super-block e2fsck: Superblock invalid, trying backup blocks... e2fsck: Bad magic number in super-block while trying to open /dev/sda5
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193
what do I do?
/dev/sda5
is encrypted volume, with an LVM PV on top of that, not the volume containing a filesystem. Please post full output ofpvs
,vgs
,lvs
,cat /etc/crypttab
andfdisk -l
somewhere. You'll probably end up resizing: partition, crypto volume, LVM PV, LVM VG, LVM LV and filesystem. Yes, a lot of work. – gertvdijk Nov 14 '12 at 22:52