mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
vgcreate, mke2fs: add sudo and use safe placeholders (#19513)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
@@ -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,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}}`
|
||||
|
||||
Reference in New Issue
Block a user