From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Create and configure filesystems - Linux Tutorial
From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep
Create and configure filesystems
- [Instructor] To store files and directories inside a partition, first, we need to create a file system on it. By default, Red Hat operating systems use the XFS file system, and Ubuntu uses the ext4 file system. So we'll learn how to work with both. Note that these defaults can change in the future as they've also changed in the past. To format a partition with the XFS file system, the simplest command we can use is this, (keyboard clacking) sudo mkfs.xfs /dev/sdb1. And as you know, /dev/sdb1 is the partition that we're targeting. To create an ext4 file system, we changed the suffix to ext4. Now mkfs comes from the words make file system. Any file system has settings that we can adjust with the commands above the default settings would be used, which are acceptable for most purposes. If we don't want to use the defaults, we can adjust things with some command line options. We can see what file system settings can be changed by reading the command's manual. Now here, I'm typing man…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
List, create, delete, and modify physical storage partitions10m 9s
-
(Locked)
Configure and manage swap space5m 32s
-
(Locked)
Create and configure filesystems9m 19s
-
(Locked)
Configure systems to mount filesystems at or during boot7m 19s
-
(Locked)
Filesystem and mount options5m 56s
-
(Locked)
Use remote filesystems: NFS12m 9s
-
(Locked)
Use network block devices: NBD11m 9s
-
(Locked)
Manage and configure LVM storage10m 38s
-
(Locked)
Monitor storage performance15m 47s
-
(Locked)
Create, manage, and diagnose advanced filesystem permissions11m 7s
-
(Locked)
-