mkfs.ext4
Creates an ext4 filesystem inside a partition. More information: https://manned.org/mkfs.ext4.
-
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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.