what’s going on under the hood of block device

tags: learning linux

content

under the hood:

  • when a physical device connects to the hardware of a computer, corresponding device drivers detect it
  • linux kernel creates a block device as an interface to interact with the actual physical device
  • user sees the interface, like /dev/sda

philosophical:

  • block devices are essentially just special files, it’s a higher layer abstract created by linux, for the user to interact with physical devices

Note

the block device itself has nothing on it, it’s an empty warehouse that don’t know how to organize data

up

down

reference