From the course: Linux: Storage Systems
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create, mount, and unmount file systems - Linux Tutorial
From the course: Linux: Storage Systems
Create, mount, and unmount file systems
- [Instructor] Hey, let's talk about formatting Partitions, that is putting a file system on a partition, or in Linux speak, making a file system. Alright, when we partition a disk, we just set aside some space but it doesn't have any structure to it, it doesn't have a format that Linux can understand for us to mount it into the tree of our file system, so we need to format it and there's lots of choices for kinds of file systems, but typically you do a mkfs -t and the type of file system that you want, ext4 is a really common one these days, and then you give it the device file that you want to format, this is a big deal, right, a typo there can really give you a bad day. So let's say we're going to format the first partition on the second disk, that would be sdb1. It is possible to format an ordinary file, just have a file maybe full of binary zeros or something like that, and you can format and you can mount that as well, but that's, it's kind of unusual. Mounting a file system is…
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
-
-
-
Basic commands for storage partitions2m 10s
-
(Locked)
Create, mount, and unmount file systems10m 21s
-
(Locked)
Use block device attributes7m 16s
-
(Locked)
File system types: ext4, Btrfs, and XFS7m 26s
-
(Locked)
Make file systems7m 24s
-
(Locked)
Mount file systems during boot11m 27s
-
(Locked)
Mount file systems on demand7m 1s
-
(Locked)
Challenge: Formatting and mounting2m 3s
-
(Locked)
Solution: Formatting and mounting8m 17s
-
-
-
-
-
-