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
This is exactly what I needed. I just ran into this issues while updating my 4 month old machine. I built my Fedora Server with a brand new 1TB drive, but apparently I only had 15GB assigned to root. Ran just the above code and it worked just fine! Thank you thank you!