This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Mounting a FAT filesystem
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Eduardo Sabaj <esabaj at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org, esabaj at hasar dot com
- Date: Fri, 3 Apr 2009 14:17:17 +0200
- Subject: Re: [ECOS] Mounting a FAT filesystem
- References: <898781a90904030504k4d9001der3a6fdb67774ad48@mail.gmail.com>
On Fri, Apr 03, 2009 at 09:04:42AM -0300, Eduardo Sabaj wrote:
> I have an i386 platform with two IDE disks and until now I have had no
> success in trying to mount a FAT filesystem in my development.. What I
> have tried is the following:
>
> mount ("/dev/hda/" , "/", "fatfs:sync=write");
>
> In spite of the fact that on my project file (.ecc) the names of the
> disk devices are /dev/hda, /dev/hdb, etc..., mount returns -1 and
> errno 19 ("no such device").
>
> Moreover, if I try to lookup the driver by...
>
> cyg_io_lookup("/dev/hda/", &handle);
>
> it returns -22 ("invalid argument"). Could anyone tell me what I'm missing ??
Arn't you forgetting about partitions? You want to mount the first
partition on the disk, not the disk itself?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss