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

Use block device attributes - Linux Tutorial

From the course: Linux: Storage Systems

Start my 1-month free trial

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…

Contents