Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[VxW] ATA HARD disk

40 views
Skip to first unread message

chenna

unread,
Jul 6, 2004, 9:45:10 AM7/6/04
to vxwe...@csg.lbl.gov
Hi,
I have problem in accessing the hard disk..
please find the code..


atacreate=ataDevCreate(0,0,0,0);
if (atacreate !NULL)
printf("\n Creation is Success");
else
printf("\n FAIL");

status=usrAtaConfig(0,0,"/ata0/");
if (status==OK)
printf("\n Configuration of FD is Success") ;
else
printf("Failed to mount DOS file system");


RESULT:

Creation is Success // with error no indicating volume not available

Failed to mount DOS file system


Please give a suggestion on this.....


Reds
china

Guru

unread,
Jul 8, 2004, 6:34:50 AM7/8/04
to
chenna <che...@cmcltd.com> wrote in message news:<mailman.45.108913...@csg.lbl.gov>...

You may want to check the errno to understand the problem. BTW, why do
you need to use 'ataDevCreate' and then 'usrAtaConfig'. Why do not you
simply use 'usrAtaConfig'. It should setup everything for you
including dosFs device create.

Srinivas B T

unread,
Jul 8, 2004, 1:09:35 PM7/8/04
to
gurumu...@yahoo.com (Guru) wrote in message news:<a483bc25.0407...@posting.google.com>...

HI,

First check the return value of ataDevCreate() to be a valid handle to BLK_DEV
then configure the cache
then used the dosFsDevCreate( )
then use the sys std interface to the file accesses

Srinivas
Knowledge INCREASES when it is SPENT

0 new messages