Rename the Volume Group of an USB stick, which uses LVM

Volker Wysk post at volker-wysk.de
Mon Jun 22 16:14:13 UTC 2020


Am Montag, den 22.06.2020, 10:39 -0400 schrieb J:
> On Mon, Jun 22, 2020 at 9:24 AM Volker Wysk <post at volker-wysk.de>
> wrote:
> > Am Montag, den 22.06.2020, 15:05 +0200 schrieb Liam Proven:
> > > On Mon, 22 Jun 2020 at 14:58, Volker Wysk <post at volker-wysk.de>
> > > wrote:
> > > > I'm trying to build an encrypted rescue/maintenance system on
> > > > an
> > > > USB
> > > > stick.
> > > 
> > > Why?
> > 
> > There are some passwords, which I want to save there.
> > 
> > > If it's a rescue stick, it doesn't need to contain any data. If
> > > it
> > > contains no data, don't encrypt it.
> > > 
> > > And as I've said to you before, avoid LVM if at all possible if
> > > you
> > > want an easy life.
> > 
> > Alas, the Ubuntu installer makes it that way.
> 
> Only if you choose to let the installer partition for you.  If you
> choose "Something Else" when it asks what kind of storage setup you
> want, you can set up however many partitions you choose, without LVM.

The Ubuntu installer makes, when encrypting has been chosen, one
encrypted physical volume, out of which the two logical volumes for
root and swap are made via LVM. Only one partition is encrypted, so
only one password is needed at boot time.

(This could be improved relatively easily, by making the boot process
try the same password for several encrypted partitions.)

I don't need to use any more partitions. I'd be completely happy with
an encrypted root file system and a boot partition. A swap partition is
expendable, because you can use a swap file instead (so I think). No
LVM needed. 

That "something else" is completely broken in Ubuntu 18.04. Next I'll
try to do it with Ubuntu 20.04's installer.

Thanks
Volker





More information about the ubuntu-users mailing list