LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What are the NAND(MTD) read and write commands? (https://www.linuxquestions.org/questions/linux-software-2/what-are-the-nand-mtd-read-and-write-commands-842624/)

dbrazeau 11-05-2010 04:38 PM

What are the NAND(MTD) read and write commands?
 
I have tried using dd but it appears that dd is not skipping the bad blocks in the bad block table. Is there some other command that I should be using to read and write to a raw NAND (MTD) device?

TobiSGD 11-05-2010 05:28 PM

If you want to skip bad blocks use the ddrescue command. It may be that you have to install it first. Have a look at
Code:

man ddrescue
for informations about the usage, the options differ from dd.

dbrazeau 11-05-2010 06:29 PM

Thanks for the reply. I ended up installing mtd-utils and used nandwrite to write to NAND and that seems to work.

eSelix 11-05-2010 06:31 PM

MTD is not a real block device. If you have bad blocks on MTD it cannot be seeked as normal tools will do it. Reading software must handle this itself. Maybe try mtd-utils if you have this package. It automaticaly do it.


All times are GMT -5. The time now is 01:01 PM.