Boot up with an Fedora Live USB stick.
- Run
vgs
to check if there's any space:
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
fedora 1 3 0 wz--n- <237.28g 0
- If there is you can just run:
lvresize -L +5G --resizefs /dev/mapper/fedora-root
NB: Remember to check where your fedora root
and home
partition is mounted by running fdisk -l
.
- If you don't have any free
VFree
space, you can shrink yourhome
partition and then extend yourroot
partition afterwards.
To scrink your home
partition run:
lvresize -L -10G --resizefs /dev/mapper/fedora-home
And then to extend your root
partition run:
lvresize -L +10G --resizefs /dev/mapper/fedora-root
Thanks for the tip. But unfortunately it seems not to work with Fedora 29 on VMWare Workstation. VFree is always 0 but there should be additional 10G available.
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 41943039 39843840 19G 8e Linux LVM
VG #PV #LV #SN Attr VSize VFree
fedora 1 2 0 wz--n- <19.00g 0