课程: Linux: Storage Systems (2016)
Basic commands for storage partitions
- [Instructor] Let's talk about Linux storage. When we're going to talk about storage we should talk about parts of storage, like partitions. Maybe the easiest way to find out about partitions on your Linux box is the cat/proc/partitions. That's getting information straight from the kernels and it's a proc file. We see here that the kernel is reporting for disc sda two partitions, sda1 and sda2 and it tells you the size. The major, minor numbers there are telling us which driver, eight SCSI, and the minor numbers, which disk and which controller. We also see the DVD sr0, and we see a second disk sdb. Another way to get this information would be with a command like fdisk minus l, or if you go into fdisk, you give it the whole disk, so instead of sdb and a number, or sda and a number, we do the whole disk, so dev sdb, for example. Let us look at the second disk. We get our command prompt command, m for help, so type m if you need it, and we do a p to list the partitions, and there we see the different partitions, and the type and so forth. With fdisk, we could also make new partitions. So if you have some space in your disk that's currently unused, then you have room to make partitions. Now fdisk or parted, or other tools, or possible fsdisk comparted are perhaps the two most popular. Another thing to keep in mind is you can give a type to a partition in certain tools. You can find your partition based on type. So let's look at creating some partitions, and deleting partitions, and changing to make a new partition that's bigger than it was before, and so forth. To be effective with the Linux storage course, you need to be good with the command line, and familiar with Linus admin practices like using sudo and installing Linux, so you can give yourself a fresh system to use and modify.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
Basic commands for storage partitions2 分钟 10 秒
-
(已锁定)
Create, mount, and unmount file systems10 分钟 21 秒
-
(已锁定)
Use block device attributes7 分钟 16 秒
-
(已锁定)
File system types: ext4, Btrfs, and XFS7 分钟 26 秒
-
(已锁定)
Make file systems7 分钟 24 秒
-
(已锁定)
Mount file systems during boot11 分钟 27 秒
-
(已锁定)
Mount file systems on demand7 分钟 1 秒
-
(已锁定)
Challenge: Formatting and mounting2 分钟 3 秒
-
(已锁定)
Solution: Formatting and mounting8 分钟 17 秒
-
-
-
-
-
-