Skip to content

Instantly share code, notes, and snippets.

@MadBomber
Forked from 181192/increase_root_fedora.md
Created December 27, 2022 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadBomber/2e64f3ceee6102443aca390b046149ec to your computer and use it in GitHub Desktop.
Save MadBomber/2e64f3ceee6102443aca390b046149ec to your computer and use it in GitHub Desktop.
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. 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 
  1. 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.

  1. If you don't have any free VFree space, you can shrink your home partition and then extend your root 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment