mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 13:32:42 +00:00
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.
This commit is contained in:
parent
ae2d2c44fa
commit
1d70d8156b
1 changed files with 32 additions and 1 deletions
|
@ -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 <partition_number> <target_size>
|
||||
----
|
||||
+
|
||||
. 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
|
||||
|
|
Loading…
Reference in a new issue