- In this lesson, you will learn how to create file systems
on the partitions that you have just created.
Some operating systems do that automatically.
On Linux that's not the case.
In order to do something with the partition,
you need to create a file system on top of it.
File systems are the solution that are required
to store files on partitions
and the generic file systems on Linux are XFS and Ext4.
You will mainly find Ext4, XFS is popular
in a Red Hat environment.
There's also a Btrfs
You should pronounce it as butter-F-S
That's a relatively new file system
that's available on some distributions.
It's a bit more complex
and for that reason
we are not going to talk about Btrfs in this video.
If you want to create a file system
mkfs is the main utility
and mkfs is followed by a dot
and the name of the file system that you want to create,
like mkfs dot xfs
or mkfs dot ext4
These are Linux native file systems.
There are also windows compatible file systems
like vfat and NTFS-NG.
They provide support for windows,
but in general
there is no need to use file systems like vfat or NTFS
unless for formatting USB thumb drives.
You will however see vfat in one location.
And that is as a boot partition.
And that's because if your system
is using UEFI for booting,
then you need a partition,
that is formatted as vfat
because vfat is the only file system
that is readable and writeable from Linux,
windows, and MacOS as well.
This vfat partition
contains some essential information
that is required
to boot your system successfully.
Well that's not something we are going to do in this class.
You should just remember
that vfat and NTFS-NG
are not really required
to access windows,
unless you are using
WSL where the windows partition
is mounted in the Linux file system.
That's a different story,
but on real Linux distributions
vfat and NTFS-NG are rarely found.
Let me show you how to create a file system.
So I'm going to create a file system
on the partitions that we created before
and I'm using a
sudo mkfs.ext4
on /dev/sd,
sdb1
And that is all,
that's creating the file system
so that wasn't too hard.
And if you sudo mkfs.xfs
on dev/sdc1
we can create an XFS file system.
You can see that both
of these utilities
are providing some information about what they have done,
but at this point
the file system has been created.
In the next video we will explore mount
and I will tell you how to activate the file system.