I'm trying to follow this guide, in order to shrink an encrypted partition on an external hard drive.
I think I've successfully resized the file system on that partition, and now I want to reduce the size of the LVM partition with lvreduce
, But sudo lvdisplay
only shows the lvm partitions of the disk from which the machine is currently booted, and not the external one (from which I am not booted, but is mounted). Same goes for vgscan
.
How do I find the volume group name of the root LVM volume on the external drive?
I'd also appreciate any reference to a guide which is more appropriate to my situation (the encrypted partition is not the partition of the running operating system, and on an external hard drive).
Thanks!
/dev/sdb
), the path of the lvm volume (/dev/mapper/luks-<a lot of numbers>
) and also the path where it is mounted (/media/user/<FileSystemLable>
), and they all result inVolume group "<basename from path i passed>" not found Cannot process volume group <basename from path i passed>
sudo
?