[NTLUG:Discuss] Question about USB memory stick to mount properly.
Choi Jason
kbc_hyper at hotmail.com
Tue Feb 13 11:39:31 CST 2007
Hello guys,
I sent a question as followings a few days ago.
--------------------------------------------------------------------
I have a problem to mount USB memory stick.
I found some memory stick was successfully mounted but others were not
mounted successfully.
And the error messages are as followings.
FAT: bogus logical sector size 20487
VFS: Can't find a valid FAT filesystem on dev 08:00.
mount: Mounting /dev/sd0 on /mnt/usb failed: Invalid argument
I'm using kernel 2.4.20 on PowerPC platform (MPC8245).
USB host controller what I'm using is ISP 1562.
Would you give me some recommendation or comments for this?
I think I'm using so long time to solve this problem.
-------------------------------------------------------------------
And I found something.
That is some USB memory sticks are recognized as "sd0" and some
other USB memory sticks are recognized as "sd1".
For devices recognized as "sd0", "mount -t vfat /dev/sd0 /mnt/usb" can be
used. And for devices recognized as "sd1", "mount -t vfat /dev/sd1
/mnt/usb" can be used as you expected.
*************************************************
***** But I have one more question, here. *******
*************************************************
How can application know the inserted memory stick is recognized as "sd0"
or "sd1" by Kernel.
I think if the application don't know this, application could not mount USB
memory properly.
Would you give me some comments or recommendation for this?
Thanks in advance,,,,
snowman
More information about the Discuss
mailing list