What Is Block Device and Character Device in Linux?
Contents

There are two main types of devices under all Unix systems, character and block devices. Character devices are those for which no buffering is performed, and block devices are those which are accessed through a cache. … Filesystems can only be mounted if they are on block devices.

What is the difference between block devices and character devices?

The block devices access the disk using the system’s normal buffering mechanism. The character devices provide for direct transmission between the disk and the user’s read or write buffer.

What are character devices in Linux?

A Character (‘c’) Device is one with which the Driver communicates by sending and receiving single characters (bytes, octets). A Block (‘b’) Device is one with which the Driver communicates by sending entire blocks of data. Examples for Character Devices: serial ports, parallel ports, sounds cards.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest