Hi netra,
Why are you closing "s:"?
Have you reviewed and run the following example?
C:\Freescale\Freescale_MQX_4_0\mfs\examples\ramdisk\cw10
From the shell prompt, after you have formatted the drive, you can create a test file and the issue a "dir" shell command that will issue the IOCTL command to find the first file in current directory.
Here is my terminal output (note I used TWR-MEM card with MRAM):
shell> Demo start
Initialized Ram Disk to a:\
NOT A DOS DISK! You must format to continue.
Shell (build: Feb 15 2013)
Copyright (c) 2008 Freescale Semiconductor;
shell>
shell> format a:
Formating...
Done. Volume name is
Free disk space: 518144 bytes
shell>
shell> dir
shell>
shell> write test.txt 123
shell>
shell> dir
TEST.TXT 123 01-01-1980 00:04:26 A TEST.TXT
shell>
Similar topic that might also be of value:
Re: USB device with MFS ramdisk
Hope this helps.
Regards,
David