课程: Linux: Storage Systems (2016)

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Create, mount, and unmount file systems

Create, mount, and unmount file systems - Linux教程

课程: Linux: Storage Systems (2016)

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…

内容