VFAT rewrites the FAT and root directory a lot.  You will wear out your
flash very quickly if you put VFAT directly on top of it.

I use yaffs on a nand device, create a large file and loop to that to put
VFAT on top of it.  You can do the same with JFFS2 on a NOR device.


Kent Forschmiedt
Wildseed, Ltd.
http://www.wildseed.com


-----Original Message-----
From: David Brownell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 11:49 AM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Re: [linux-usb-devel] format mtd device as vfat file system


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


-------------------------------------------------------
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