vgcreate, mke2fs: add sudo and use safe placeholders (#19513)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
Ivan Baluta
2025-11-20 10:37:30 +07:00
committed by GitHub
parent 614d4fd909
commit 249b7a956c
2 changed files with 10 additions and 10 deletions
+6 -6
View File
@@ -3,14 +3,14 @@
> Create a Linux filesystem inside a partition.
> More information: <https://manned.org/mke2fs>.
- Create an ext2 filesystem in partition 1 of device b (`sdb1`):
- Create an ext2 filesystem on a partition:
`mke2fs -t ext2 {{/dev/sdb1}}`
`sudo mke2fs -t ext2 {{/dev/sdXY}}`
- Create an ext3 filesystem in partition 1 of device b (`sdb1`):
- Create an ext3 filesystem on a partition:
`mke2fs -t ext3 {{/dev/sdb1}}`
`sudo mke2fs -t ext3 {{/dev/sdXY}}`
- Create an ext4 filesystem in partition 1 of device b (`sdb1`):
- Create an ext4 filesystem on a partition:
`mke2fs -t ext4 {{/dev/sdb1}}`
`sudo mke2fs -t ext4 {{/dev/sdXY}}`
+4 -4
View File
@@ -4,10 +4,10 @@
> See also: `lvm`.
> More information: <https://manned.org/vgcreate>.
- Create a new volume group called vg1 using the `/dev/sda1` device:
- Create a new volume group using the specified device:
`vgcreate {{vg1}} {{/dev/sda1}}`
`sudo vgcreate {{volume_group}} {{/dev/sdXY}}`
- Create a new volume group called vg1 using multiple devices:
- Create a new volume group using multiple devices:
`vgcreate {{vg1}} {{/dev/sda1}} {{/dev/sdb1}} {{/dev/sdc1}}`
`sudo vgcreate {{volume_group}} {{/dev/sdXY}} {{/dev/sdXZ}}`