![]() :~$ sudo resize2fs -p /dev/mapper/mint-vg-root 24g Pass 5: Checking group summary information Pass 1: Checking inodes, blocks, and sizes :~$ sudo e2fsck -f /dev/mapper/mint-vg-root PV UUID N6UtLS-GIbd-qf3o-V8s0-2dIa-Z7hM-fzdzKT :~$ sudo cryptsetup luksOpen /dev/sda5 crypt1 :~$ sudo apt-get update & sudo apt-get install lvm2 cryptsetup :~$ sudo cryptsetup isLuks /dev/sda5 echo $? Loop6 7:6 0 3.7M 1 loop /snap/gnome-system-monitor/57 Loop4 7:4 0 13M 1 loop /snap/gnome-characters/124 Loop3 7:3 0 2.3M 1 loop /snap/gnome-calculator/238 Now I am trying to reduce an encrypted partition. I do still have plenty of old notes, but I would need to run through some LVM commands again and practice again myself and refresh my memory to be able to give anybody any exact instructions. Resizing smaller requires and auxilliary operating system though, or a Live CD or Live USB. I once had Ubuntu installed in one USB flash memory stick and extended it over three more sticks on a hub, and that was able to be down within the operating system while it was booted and running. But LVM is great and the reason why it's used is to make things easier for us. (Back up your data first when you do too). But you're better of practicing with tutorials first on empty partitions in USB drives or something like that before you try doing anything with an installed operating system with data in it. I'm a bit rusty on LVM right now to be honest, it's been a while since I last experimented with it, but it's well worth learning. Then extend your volume group to include the new physical volume and extend your logical volume into it. ![]() Just allocate another partition in the same disk or even in another drive as an LVM physical volume. If you have LVM and you learn some LVM commands you probably won't need to resize your partition. You haven't mentioned whether it's the LUKS Encrypted LVM installation or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |