Resizing Ubuntu 12.04 Precise filesystem with LUKS LVM2

Posted by ronald on april 13, 2013 in Nieuws |

Resizing Ubuntu 12.04 Precise filesystem with LUKS LVM2

First is to backup your filesystem you want to modify.

First boot of LiveCD and choose “try without installing”. Although it is said to be possible online, it still is risky so I do it offline.

Open a terminal

$ sudo -i

# apt-get install lvm2

# cryptsetup luksOpen /dev/sda2 crypt-sys

# pvscan

# vgscan

# vgchange -ay

# e2fsck -f /dev/ubuntu/root

 

Shrink filesystem to 100GB

# resize2fs /dev/ubuntu/root 100G

# lvreduce –size 100G /dev/ubuntu/root

 

in progress…

Copyright © 2012-2019 Dutch Ronaldo All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.