[ECOS]- fat file system (dosfs)

Sergei Gavrikov w3sg@SoftHome.net
Sun Jun 3 20:41:00 GMT 2007

On Sun, Jun 03, 2007 at 11:13:23PM +0530, Alok Singh wrote:
> Hi,
> Dosfs code present in CVS is capable of reading and writing to the
> existing dosfs partition. 
> It would be nice to have the capability to create a dosfs partition too.
> Any file system expert out here, who can let me know what it takes to
> implement this functionality (license permitted), and if there is free
> source code available somewhere for reference! I'm on search from my
> side. 

If you didn't mean to create it under eCos..., you can use Linux as well

32 Mb ms-dos disk

1) dd if=/dev/zero of=/tmp/msdos count=64k 	;# 512x64k room
2) mkfs.msdos /tmp/msdos, or mkmsdos /tmp/msdos ;# create ms-dos fs
3) mount /tmp/msdos /mnt/disk -oloop,rw 	;# mount, do it as root

I think that using `mtools', you can mformat it, mcopy files there, etc.


Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list