As mass-storage , a few more questions:
I use DiskOnChip as backing media, and also mount it on /truefs/,As you say it is better to mount it later. Is it ok to read/write on /truefs while at the same time r/w throught windows platform?
It seems that while add or delete the file on the smartphone, this change can't reflect on windows platform's view, I could only see that changes after rmmod/insmod the g_file_storage, Is this normal? Why can't the change reflect real time?
It seems fat16 filesystem has filename limited 8 character, is it proper to use fat16 or fat32 on UFI device?
thanks for commenting my doubts.


From: Alan Stern <[EMAIL PROTECTED]>
To: tong changda <[EMAIL PROTECTED]>
CC: linux-usb-devel@lists.sourceforge.net
Subject: Re: [linux-usb-devel] how to format backup media for mass-storage
Date: Fri, 18 Feb 2005 22:30:32 -0500 (EST)

On Sat, 19 Feb 2005, tong changda wrote:

> Doc is Disk on Chip
> Following your advice I run fdisk on my smartphone(pxa271)'s DOC to
> make a partition, then using mkdosfs on this partition(mkdosfs -F 16
> /dev/tffsa1), Now there is a disk driver appear, but it is
write-protect.
> But I could mount as vfat to read/write file on it.
> There remains several problems(insmod g_file_storage.o file=/dev/tffsa)
> 1) it is write-protect, printk shows open_backing_file set ro=1 as
> checking IS_RDONLY(inode) is true, Is it because of ill use of fdisk
and
> mkdosfs?

No, your use of fdisk and mkdosfs is correct.  Did you check the
permissions on /dev/tffsa (ls -l /dev/tffsa)?  Maybe you don't have write
permission.

Did you have it mounted when you loaded g-file-storage?  That might cause
a problem.

> 2) I can't see the file on the disk file. But I could see the files
by
> mount it on /truefs/, and could r/w file on it. Is the problem of
> mkdosfs(v2.8)? or there is some issue with pxa271 driver.

I don't think there's any problem with mkdosfs.  Maybe there is an issue
with the pxa271 driver.  Do you see any error messages in the dmesg log?
Have you tried turning on debugging in the g-file-storage driver?  (Change
the line that says "#undef DEBUG" to "#define DEBUG".)

Alan Stern



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to