On Wed, Sep 12, 2001 at 03:14:02PM -0700, Raghava Raju wrote: > Is it that every flash device is block device. Yes, flash can only be block erased. To change a single byte one would store the block temporary in RAM, change the byte in RAM, erase the flash block, and write back the changed block to flash. > What about MTD?? How to determine that??? MTD is a layer around flash devices, it provides both character and block devices to a "real" flash device. Checking from userland is easy: stat() the device and check if S_ISBLK() is true. See man stat. Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/