Update Workflows/Linux/Expand XFS Filesystem.md
This commit is contained in:
@ -20,12 +20,13 @@ sudo dnf install gdisk -y
|
|||||||
gdisk /dev/<diskNumber> # (1)
|
gdisk /dev/<diskNumber> # (1)
|
||||||
p <ENTER> # (2)
|
p <ENTER> # (2)
|
||||||
d <ENTER> # (3)
|
d <ENTER> # (3)
|
||||||
n <ENTER> # (4)
|
4 <ENTER> # (4)
|
||||||
4 <ENTER> # (5)
|
n <ENTER> # (5)
|
||||||
<DEFAULT-FIRST-SECTOR-VALUE> (Just press ENTER) # (6)
|
4 <ENTER> # (6)
|
||||||
<DEFAULT-LAST-SECTOR-VALUE> (Just press ENTER) # (7)
|
<DEFAULT-FIRST-SECTOR-VALUE> (Just press ENTER) # (7)
|
||||||
<FILESYSTEM-TYPE=8300 (Linux Filesystem)> (Just press ENTER) # (8)
|
<DEFAULT-LAST-SECTOR-VALUE> (Just press ENTER) # (8)
|
||||||
w <ENTER> # (9)
|
<FILESYSTEM-TYPE=8300 (Linux Filesystem)> (Just press ENTER) # (9)
|
||||||
|
w <ENTER> # (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.
|
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 <ENTER> # (9)
|
|||||||
3 3328000 19826687 7.9 GiB 8200
|
3 3328000 19826687 7.9 GiB 8200
|
||||||
4 19826688 1073741790 502.5 GiB 8300 Linux filesystem
|
4 19826688 1073741790 502.5 GiB 8300 Linux filesystem
|
||||||
```
|
```
|
||||||
4. This tells gdisk to create a new partition.
|
4. See the previous annotation for details on what entering `4` does in this context.
|
||||||
5. This tells gdisk to re-make partition 4 (the one we just deleted in the example).
|
5. This tells gdisk to create a new partition.
|
||||||
6. We just want to leave this as the default. In my example, it would look like this:
|
6. This tells gdisk to re-make partition 4 (the one we just deleted in the example).
|
||||||
`First sector (34-2147483614, default = 19826688) or {+-}size{KMGTP}: 19826688`
|
|
||||||
7. We just want to leave this as the default. In my example, it would look like this:
|
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`
|
`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. 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.
|
10. This will write the changes to the partition table making them reality instead of just staging the changes.
|
||||||
!!! warning "Point of No Return"
|
!!! warning "Point of No Return"
|
||||||
When you press `w <ENTER>` 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.
|
When you press `w <ENTER>` 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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user