From 7b894fb325bde642f2f49a917d57bdce01d97299 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Fri, 22 Nov 2024 12:32:57 -0700 Subject: [PATCH] Update Workflows/Linux/Expand XFS Filesystem.md --- Workflows/Linux/Expand XFS Filesystem.md | 26 +++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/Workflows/Linux/Expand XFS Filesystem.md b/Workflows/Linux/Expand XFS Filesystem.md index 45ece73..a2b7f41 100644 --- a/Workflows/Linux/Expand XFS Filesystem.md +++ b/Workflows/Linux/Expand XFS Filesystem.md @@ -20,12 +20,13 @@ sudo dnf install gdisk -y gdisk /dev/ # (1) p # (2) d # (3) -n # (4) -4 # (5) - (Just press ENTER) # (6) - (Just press ENTER) # (7) - (Just press ENTER) # (8) -w # (9) +4 # (4) +n # (5) +4 # (6) + (Just press ENTER) # (7) + (Just press ENTER) # (8) + (Just press ENTER) # (9) +w # (10) ``` 1. The first command needs you to enter the disk identifier. In most cases, this will likely be the first disk, such as `/dev/sda`. You do not need to indicate a partition number in this step, as you will be asked for one in a later step after identifying all of the partitions on this disk in the next command. @@ -49,14 +50,15 @@ w # (9) 3 3328000 19826687 7.9 GiB 8200 4 19826688 1073741790 502.5 GiB 8300 Linux filesystem ``` -4. This tells gdisk to create a new partition. -5. This tells gdisk to re-make partition 4 (the one we just deleted in the example). -6. We just want to leave this as the default. In my example, it would look like this: - `First sector (34-2147483614, default = 19826688) or {+-}size{KMGTP}: 19826688` +4. See the previous annotation for details on what entering `4` does in this context. +5. This tells gdisk to create a new partition. +6. This tells gdisk to re-make partition 4 (the one we just deleted in the example). 7. We just want to leave this as the default. In my example, it would look like this: + `First sector (34-2147483614, default = 19826688) or {+-}size{KMGTP}: 19826688` +8. We just want to leave this as the default. In my example, it would look like this: `Last sector (19826688-2147483614, default = 2147483614) or {+-}size{KMGTP}: 2147483614` -8. Just leave this as-is and press ENTER without entering any values. Assuming you are using XFS, as this guide was written for, the default "Linux Filesystem" is what you want for XFS. -9. This will write the changes to the partition table making them reality instead of just staging the changes. +9. Just leave this as-is and press ENTER without entering any values. Assuming you are using XFS, as this guide was written for, the default "Linux Filesystem" is what you want for XFS. +10. This will write the changes to the partition table making them reality instead of just staging the changes. !!! warning "Point of No Return" When you press `w ` the changes will be written to disk, meaning there is no turning back unless you have full GuestVM backups with something like Veeam Backup & Replication. Be certain the first and last sector values are correctly configured before proceeding.