how to resize an encrypted logical volume?

Posted by Nirmik on Ask Ubuntu See other posts from Ask Ubuntu or by Nirmik
Published on 2012-11-14T16:41:13Z Indexed on 2012/11/14 17:30 UTC
Read the original article Hit count: 406

Filed under:
|
|

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 to resize a LVM partition?

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?

© Ask Ubuntu or respective owner

Related posts about encryption

Related posts about lvm