Hard drive upgrade with encryption in Ubuntu

sudo fdisk -l | grep Disk
lsblk 
sudo dd if=/dev/sda of=/dev/sdb status=progress bs=4m
sudo parted /dev/sda print 
sudo parted /dev/sda resizepart 4 100%
sudo cryptsetup luksOpen /dev/sda4 vgubuntu
sudo cryptsetup resize vgubuntu
sudo pvresize /dev/mapper/vgubuntu
sudo pvs
sudo vgs
sudo lvs
lvresize -l +100%FREE /dev/vgubuntu
e2fsck -f /dev/mapper/vgubuntu-root
resize2fs /dev/mapper/vgubuntu-root
Bookmark the permalink.

Comments are closed.