Boot up with an Fedora Live USB stick.
- Run
vgsto 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-rootNB: Remember to check where your fedora root and home partition is mounted by running fdisk -l.
- If you don't have any free
VFreespace, you can shrink yourhomepartition and then extend yourrootpartition afterwards.
To scrink your home partition run:
lvresize -L -10G --resizefs /dev/mapper/fedora-homeAnd 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
rootand<YOUR_PASSWORD>. If you are trying thesudo sucommand 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
/homeso 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 -