Skip to content

Commit 68f4d42

Browse files
committed
change order of commands to update partitions first, then create a new filesystem
1 parent f026256 commit 68f4d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/linux/add-disk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ The following example uses `parted` on `/dev/sdc`, which is where the first data
8989

9090
```bash
9191
sudo parted /dev/sdc --script mklabel gpt mkpart xfspart xfs 0% 100%
92-
sudo mkfs.xfs /dev/sdc1
9392
sudo partprobe /dev/sdc1
93+
sudo mkfs.xfs /dev/sdc1
9494
```
9595

9696
Use the [`partprobe`](https://linux.die.net/man/8/partprobe) utility to make sure the kernel is aware of the new partition and filesystem. Failure to use `partprobe` can cause the blkid or lsblk commands to not return the UUID for the new filesystem immediately.

0 commit comments

Comments
 (0)