O'Reilly logo

CompTIA® Linux+ / LPIC-1 Cert Guide: (Exams LX0-103 & LX0-104/101-400 & 102-400) by Sean Walberg, Ross Brunson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Filesystems

You wipe out any existing files on the partition when you create a filesystem, so it always pays to think twice about your filesystem related commands before you press that Enter key!

The mkfs Command

Even though you have your choice of many different filesystems, the commands to create them are fairly consistent. The mkfs command is a front end for these individual programs that create filesystems. The mkfs command, when used with the -t fstype option, calls the mkfs.fstype program to make the actual filesystem. Here’s an example:

mkfs –t ext4 /dev/sdb1

This command executes the mkfs program, supplying the type of ext4, which in turn executes the mkfs.ext4 program against the target partition, creating an Ext4 filesystem. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required