This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: - fat file system (dosfs)


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.

Sergei


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]