0

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!

9
  • Did you pass the path to that command? Dec 11, 2017 at 17:28
  • @GeorgeUdosen I tried to pass the path of the physical device (/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 in Volume group "<basename from path i passed>" not found Cannot process volume group <basename from path i passed>
    – talz
    Dec 11, 2017 at 17:41
  • did you use sudo? Dec 11, 2017 at 18:13
  • @GeorgeUdosen yes, I did, with everything I tried.
    – talz
    Dec 11, 2017 at 18:45
  • Why don't you just use GUI to resize your encrypted partition? Then you don't need to worry about paths and sizes. Dec 18, 2017 at 17:18

1 Answer 1

1

Use

$ sudo vgdisplay

the output includes the VG Name.

Source: https://edwards.flinders.edu.au/changing-the-volume-name-on-an-lvm-machine/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .