- So now that we've created our partitions
let's create some file systems.
First we are going to have a look at ext4.
There are three utilities that matter
or only just two mkfs.ext4 is a utility
that you use to create an ext4 file system.
And then there is tune2fs
which can be used to tune ext4 properties.
The name of this utility is funny: Tune2fs.
It contains the letters E2,
and E2 that is ext2.
And that is because this utility goes all the way
down to the ext2 period,
which was the original file system that was introduced
with Linux in 1992.
Many of the utilities that come
with ext4 still are from that period.
And if you wanna know what you can do
with ext4 properties, try tune2fs-l,
that will list all the properties that are currently used.
Let me show you.
All right, so let me start with lsblk.
I'm going to work on sdb1, mkfs dot tap, tap.
It's always a good idea to use tap completion.
This is showing what you have available and we can see
on this center S system that I have all the exts,
vfat as well as xfs.
Well ext4 is what we wanna do here.
It's the most recent version of ext file system
and there's no reason to use ext2 or ext3 nowadays.
I do advise you use minus, minus help
for an overview of all the different options.
There are specific options that you can set,
but in most cases,
apart from the volume label and the UUID,
there's no real reason to set any of these options.
So just mkfs dot ext4
on dev sdb1 will do.
And there we go.
And now it's already formatted.
That means that
at this point I can mount it, mount dev sdb1
on slash mnt using slash mnt
because that directory was designed
as a temporary mount point.
And as you can see, that is working.
Going to U-mount it
and I want to show you tune2FS-L on dev SDB1,
which is showing all the different options that can be set
on the file system.
This is coming
from what we call the file system super block.
And in the super block all these options are stored.
So that contains information
like when was it last mounted,
which features are supported
do we have specific mount options and many, many more.
As I just told you,
it's nice to see that these options are available.
But where, in the past,
sometimes specific options were used
to have your file system behave differently,
nowadays the file systems normally contain everything
that you need and these options are, are rarely used.