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.
Use block device attributes - Linux Tutorial
From the course: Linux: Storage Systems
Use block device attributes
- [Instructor] Let's look at identifying storage. That is, identifying your disks. Well, there's a good bit of information, like UUID information in dev disk. The used space device demon is responsible for creating lots of stuff underneath dev, like device files when the system detects disks, including disks that get plugged in dynamically, like a USB disk. So underneath dev disk there's directories where there's entries for your disk, based on their ID and labels and so forth. So, if you're trying to figure out which disk is which, you might be able to get information that's sufficient there. Say, before you unplug a disk. There's also a command blkid to give you information and lsblk, which list partitions and sizes and even the mountpoint, for things that are mounted. The sys file system has, in general, information about hardware devices and drivers. The subdirectory block is what the kernel knows about block devices. There's an entry in there for each block device, including…
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
-
-
-
-
-
-