On Tuesday 18 January 2005 9:33 am, [EMAIL PROTECTED] wrote:
> Command> mkdosfs /dev/mtdblock/5
> I got this error : mkdosfs: unable to get drive geometry for '/dev/mtdblock/5'
> 
> The page size of this mtd device is 1056 bytes.  The partition size is 1056 * 
> 1024 = 0x108000 bytes

Normally you'd want to use JFFS2 on an MTD device (like NAND flash) ...


> I would like to create a fat file system in mtd device in order to use this 
> partition for the usb mass storage device.  

That is, run g_file_storage on top of it?  Hmm, if that's a flash
device you won't get wear leveling out of it that way.  You might
be better off using a file system protocol over USB than a block
storage protocol ... like PTP, NFS, or SMB over USB, talking to JFFS2.

But you might be able to achieve what you're describing by using
a loopback mount over the MTD device; I don't know whether that
handles geometry translations.

- Dave



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to