tldr/pages/linux/mkfs.ext4.md

12 lines
266 B
Markdown
Raw Normal View History

2020-04-18 16:27:57 +01:00
# mkfs.ext4
> Creates an ext4 filesystem inside a partition.
- Create an ext4 filesystem inside partition 1 on device b (`sdb1`):
`sudo mkfs.ext4 {{/dev/sdb1}}`
- Create an ext4 filesystem with a volume-label:
`sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdb1}}`