--%>

Block device and character device

Describe block device and character device?

E

Expert

Verified

Character devices deal along with IO on a character through character basis. The clearest example is a keyboard, where every key produce a character on the device. The mouse is another instance of character devices. Every motion or click sends a character to the /dev/input/mouse0 device. To check it out do $cat /dev/input/mouse0 , then move mouse (see what happens)

Block devices read data in big chunks or blocks. Data storage devices, like IDE hard drives (/dev/hd), SCSI hard drives (/dev/sd), and CD-ROMs (/dev/cdrom or /dev/sr0) are block devices. IO interactions along with block devices transact to chunks of data (blocks), which let large quantities of data to be moved back and forth more efficiently(unlike character device). eg: $df -h

Broadly, block devices can be mounted and cached, and char devices are for communication devices, aren’t cached nor block aligned, and can’t be mounted. Particularly, /dev/scd* (block) are for cdroms, provide the block access and commands for ejecting, closing, playing, etc. The equivalent character device for the cdrom is /dev/sg1

   Related Questions in Science

  • Q : Process to give a root password Normal

    Normal 0 false false

  • Q : Advantages of Model Checking Advantages

    Advantages of Model Checking: Many tools already exist to help detect problems in source code. Testing is clearly the most widely used technique and there are a variety of tools which support test data selection, test case management, test result chec

  • Q : Assignment of content items Normal 0

    Normal 0 false false

  • Q : Different functions of Syntax

    Normal 0 false false

  • Q : Root mirror into Linux Normal 0 false

    Normal 0 false false

  • Q : Describe Exact Abstraction Exact

    Exact Abstraction: An abstraction is exact (with respect to a property or a class of properties) if there is no loss of information due to abstraction. Exact abstractions are strongly property preserving. Under-approximations can be strongly preservin

  • Q : Difference between Compiler and

    Differentiate between Compiler and Interpreter? Interpreter reads one instruction at a time and brings the actions implied by that instruction. This does not execute any translation. Howev

  • Q : Definition of Biomedical Explain the

    Explain the definition of the “Biomedical”. Specify the topics that will cover the study of the Biomedical Sciences.

  • Q : Mass Transport in Environmental

    The table below gives water velocity as a function of distance from the ocean-sediment interface.  Assume effects from surface winds are negligible and address the questions given below about the transfer of a chemical (A) from the sediment into water column.&nbs

  • Q : Manchester orbital logistics network

    The diagrams below show the Manchester orbital logistics network and the UK end of the Trans-European Network (TEN) which form the urban and national infrastructure for UK and Republic of Ireland supply chains:a. Illustrate, with examples,