Skip to content

Instantly share code, notes, and snippets.

@JohnCrafton
Forked from 181192/increase_root_fedora.md
Created November 16, 2023 20:46
Show Gist options
  • Save JohnCrafton/3ba852fb132d570c0832c863ff7a522c to your computer and use it in GitHub Desktop.
Save JohnCrafton/3ba852fb132d570c0832c863ff7a522c to your computer and use it in GitHub Desktop.

Revisions

  1. @181192 181192 revised this gist Mar 9, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions increase_root_fedora.md
    Original file line number Diff line number Diff line change
    @@ -18,12 +18,12 @@ lvresize -L +5G --resizefs /dev/mapper/fedora-root
    and then extend your `root` partition afterwards.


    To scrink your `home`partition run:
    To scrink your `home` partition run:
    ```shell
    lvresize -L -10G --resizefs /dev/mapper/fedora-home
    ```

    And then to extend your `root`partition run:
    And then to extend your `root` partition run:
    ```shell
    lvresize -L +10G --resizefs /dev/mapper/fedora-root
    ```
  2. @181192 181192 created this gist Nov 5, 2018.
    29 changes: 29 additions & 0 deletions increase_root_fedora.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    # 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:
    ```shell
    $ sudo vgs
    VG #PV #LV #SN Attr VSize VFree
    fedora 1 3 0 wz--n- <237.28g 0
    ```
    2. If there is you can just run:
    ```shell
    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`.

    3. 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:
    ```shell
    lvresize -L -10G --resizefs /dev/mapper/fedora-home
    ```

    And then to extend your `root`partition run:
    ```shell
    lvresize -L +10G --resizefs /dev/mapper/fedora-root
    ```