How Do I Access a Blocked Device in Linux?
Contents

What is block device in Linux?

Block devices are characterized by random access to data organized in fixed-size blocks. Examples of such devices are hard drives, CD-ROM drives, RAM disks, etc. … To simplify work with block devices, the Linux kernel provides an entire subsystem called the block I/O (or block layer) subsystem.

How can I get a list of all blocked devices?

The best way to list anything in Linux is to remember the following ls commands:

  1. ls: List files in the file system.
  2. lsblk: List block devices (for example, the drives).
  3. lspci: List PCI devices.
  4. lsusb: List USB devices.
  5. lsdev: List all devices.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest