Format a block device with ext4.
Section: Storage Partitions and LVM
Create ext4 filesystem
bash
bash
sudo mkfs.ext4 /dev/sdb1Explanation
Formatting destroys existing data; verify the target device carefully.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Storage Partitions and LVM