On Wed, 19 Jan 2005, Sara Fonseca wrote: > Alan, I recompiled to kernel to get usb-stor debuf msgs. When I try to > read a file previously recorded by windows system, this is what is > shows(/dev/sdb mounted on /mnt/usb): > > >cp /mnt/usb/file.txt . > > usb-storage: Command READ_10 (10 bytes) > usb-storage: 28 00 00 00 0c 5f 00 00 01 00 > usb-storage: Bulk Command S 0x43425355 T 0xac L 4096 F 128 Trg 0 LUN 0 CL 10 > usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes > FAT: Filesystem panic (dev sdb) > fat_get_cluster: invalid cluster chain (i_pos 669) > File system has been set read-only > FAT: Filesystem panic (dev sdb) > fat_get_cluster: invalid cluster chain (i_pos 669)
> The rest of the log seems ok(before the copy command). To me this > looks like a imcompatibility in the way both Linux and Windows deal > with FAT when the pen drive uses 4K block size. I say that because i > tested the pen drive with 512-byte block size, and it works from one > system to the other. Is that possible? Yes, certainly it's possible. I doubt that anyone has ever tried using a FAT filesystem with 4096-byte hardware blocks; the driver likely has never been tested under those conditions. Many of the fields in the FAT filesystem are defined in terms of the sector size. Is the sector size equal to 4096 when the hardware block size is 4096, or is the sector size still supposed to be 512? Probably nobody knows, and Windows and Linux have made different choices. You could learn a lot by looking at a hex dump of the first 512 bytes in the partition after formatting it under Windows, then again after formatting it under Linux. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel