This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: - fat file system (dosfs)
- From: Sergei Gavrikov <w3sg at SoftHome dot net>
- To: Alok Singh <aloks at broadcom dot com>
- Cc: eCos discuss list <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 3 Jun 2007 23:40:26 +0300
- Subject: Re: [ECOS]- fat file system (dosfs)
- References: <FE7FB54DCB7C6949A1D3F9FF22DA6C135DF900@lvl7in-mail01.lvl7.com>
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