Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

Listing disks with lsblk

As part of your base system, a program called lsblk should be installed.

Running this program gives you a human-readable tree view of our system's block devices, their logical separations, and their mount points:

$ lsblkNAME              MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTsda                 8:0    0   40G  0 disk ├─sda1              8:1    0    1M  0 part ├─sda2              8:2    0    1G  0 part /boot└─sda3              8:3    0   39G  0 part   ├─VolGroup00-LogVol00                  253:0    0 37.5G  0 lvm  /  └─VolGroup00-LogVol01                  253:1    0  1.5G  0 lvm  [SWAP]sdb                 8:16   0    2G  0 disk sdc                 8:32   0    2G  0 disk 
A block device is basically a layer of abstraction atop a storage medium; character (raw) devices allow direct access to the storage medium, but may have restrictions applied that are abstracted away by using a block device instead. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content