mkfs
The family of commands that create a new, empty file system on a partition or logical volume.
In more detail
mkfs.xfs, mkfs.ext4 and mkfs.vfat each create one type, and -L gives it a label. Running it on a device that holds data destroys that data, so check the device with lsblk first.
Example
mkfs.ext4 -L archive /dev/vdcRelated terms
- XFS — The default file system of RHEL, built for large files and volumes, which can grow while mounted but can never shrink.
- ext4 — The default filesystem on many Linux distributions, a journaling filesystem that stores files in blocks tracked by inodes.
- VFAT — The FAT file system family used on USB sticks and EFI partitions, readable by almost every operating system.
Taught in
- GPT Partitions With parted — Red Hat Certified System Administrator (EX200) Exam Prep
- Mount By UUID Or Label, For Good — Red Hat Certified System Administrator (EX200) Exam Prep
- Swap And New Volumes Without Losing Data — Red Hat Certified System Administrator (EX200) Exam Prep
- VFAT, ext4 And XFS: Create, Mount, Use — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: The Machine That Will Not Boot — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: Storage, Then SELinux, Then The Firewall — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 1: Eighteen Tasks, One Reboot — Red Hat Certified System Administrator (EX200) Exam Prep
- No Space For Tonight's Scans: Partitions And LVM On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Which RAID, Which File System? Disks That Fail And Inodes That Run Out — CompTIA Linux+ (XK0-006) Exam Prep
- No Space Left, Says The Disk With Room To Spare: Inodes, Held Files, Corruption And Repair — CompTIA Linux+ (XK0-006) Exam Prep
- Recovering From Boot, File System And Disk Failures — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- LVM End To End: Pools, Volumes And Online Growth — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- File Systems: Create, Label, Mount And Repair — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Swap: Partitions, Volumes, Files And Priorities — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Drill: Volumes, Swap, A Share And A Team Directory — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Mock Exam, Part 1: Seventeen Tasks, One Reboot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Partitions And File Systems — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep