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
If you are still facing this issue, login with root user and try it again.
Please note that login with root means logging out as your non root user and login with credentials
root
and<YOUR_PASSWORD>
. If you are trying thesudo su
command to switch the user you still would get this error.Reason: The non root user has mounted /home directory and possibly the applications running are accessing the file contents inside of
/home
so that's why we cannot unmount it. Login with root user will solve this problem.I will post a detailed blog about this on my blogging site as well.
Regards.
Edit:
Written post for this process -