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

Create, mount, and unmount file systems - Linux Tutorial

From the course: Linux: Storage Systems

Start my 1-month free trial

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…

Contents