[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Understanding the two-year release cycle as a desktop user (and a Debian newcomer)



On Thu, 27 Feb 2020 09:30:36 -0500
Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> > Right. You can also use a CD based Linux such as finnix to shrink an
> > existing LVM logical volume (LV), create a new LV for swap, and run
> > mkswap to lay down a swap partition on it.  
> 
> BTW, you don't need a separate CD or anything like that: you can use
> your initrd for that same purpose.  I.e. at the Grub prompt, tell it
> to boot with an argument like `break=local` (IIRC) and it should
> (hopefully) drop you into a shell soon before mounting the root
> file system.  You can then use `lvm lvresize`.
> 
>

Bear in mind that LVM knows nothing of filesystems: before you shrink an
LVM logical volume you need to shrink the filesystem that lives on it,
and conversely if you enlarge the volume, you then need to enlarge the
filesystem afterwards.

-- 
Joe


Reply to: