Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is a mtd device a block device or a char device ?

block char device mtd
0
10 Posted

Is a mtd device a block device or a char device ?

0
10

First off, an mtd is a “memory technology device”, so it’s just “mtd. An “mtd device” is a pleonasm. Unix traditionally only knew block devices and character devices. Character devices were things like keyboards or mice, that you could read current data from, but couldn’t be seeked and didn’t have a size. Block devices had a fixed size and could be seeked. They also happened to be organized in blocks of multiple bytes, usually 512. Flash doesn’t match the description of either block or character devices. They behave similar to block device, but have differences. For example, block devices don’t destinguish between write and erase operations. Therefore, a special device type to match flash characteristics was created: mtd. So mtd is neither a block nor a char device. There are translations to use them, as if they were. But those translations are nowhere near the original, just like translated chinese poems.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123