From 1d70d8156be8343fafa935aff2646052b9c101f7 Mon Sep 17 00:00:00 2001 From: Douglas Silva Date: Fri, 14 May 2021 02:20:31 +0000 Subject: [PATCH] Update modules/ROOT/pages/_partials/proc_installing-fedora-on-a-raspberry-pi-for-linux-users.adoc Added instructions to resize the main partition on the microSD card. --- ...ora-on-a-raspberry-pi-for-linux-users.adoc | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/_partials/proc_installing-fedora-on-a-raspberry-pi-for-linux-users.adoc b/modules/ROOT/pages/_partials/proc_installing-fedora-on-a-raspberry-pi-for-linux-users.adoc index 92c9e62..d79b217 100644 --- a/modules/ROOT/pages/_partials/proc_installing-fedora-on-a-raspberry-pi-for-linux-users.adoc +++ b/modules/ROOT/pages/_partials/proc_installing-fedora-on-a-raspberry-pi-for-linux-users.adoc @@ -38,7 +38,38 @@ The location of your microSD card will be /dev/sdX or /dev/mmcblkX depending on $ xzcat *Fedora-IMAGE-NAME.raw.xz* | sudo dd status=progress bs=4M of=*/dev/XXX* ---- + -. Resize the Root Partition on the microSD using gparted: +. To resize the main partition, run `parted` and select the device. ++ +---- +(parted) select /dev/sdX +---- ++ +. Inspect the amount of unallocated space at the end and resize the root partition. ++ +---- +(parted) print free +(parted) resizepart +---- ++ +. Resize the LVM physical volume so it takes up all the available space. For this to work you must deactivate any logical volumes within. ++ +---- +# pvresize /dev/sdaX +---- ++ +. Then extend the logical volume that corresponds to the root directory (`/dev/fedora_fedora/root` in this example). ++ +---- +# lvextend -l +100%FREE /dev/fedora_fedora/root +---- ++ +. Finally, resize the XFS filesystem in the logical volume (`/dev/mapper/fedora_fedora-root` in this example). ++ +---- +# xfs_growfs -d /dev/mapper/fedora_fedora-root +---- ++ +. Alternatively, you can use gparted to resize the Root Partition on the microSD: + ---- $ gparted /dev/XXX