On Fri, 15 Oct 2004, Moshe Yudkowsky wrote:

> Thanks for writing. Your point about the sectors is interesting, especially 
> since as you can see below the FAT claims to have made 512000 sectors.
> 
> 
> >>mkdosfs 2.10 (22 Sep 2003)
> >>/dev/sda has 9 heads and 56 sectors per track,
> >>logical sector size is 512,
> >>using 0xf8 media descriptor, with 512000 sectors;
> >>file system has 2 16-bit FATs and 8 sectors per cluster.
> >>FAT size is 250 sectors, and provides 63933 clusters.
> >>Root directory contains 512 slots.
> >>Volume ID is 416fdcd5, no volume label.

Hmmm...  If my calculations are correct it really used 511997 sectors:

        1 boot sector
        2 FATs at 250 sectors each = 500 sectors
        1 root dir with 512 32-byte entries = 32 sectors
        63933 clusters * 8 sectors/cluster = 511464 data sectors

Maybe the number was just rounded up to the next multiple of 8.  Or maybe 
it really did think there were only 512000 sectors available.

> OK, time for some logs. I'm leaving in the timestamps in case that's an issue.
> 
> after "modprobe usb-storage verbose" and plugging in the device
> 
> 
> Oct 15 12:47:59 bagpipes kernel: hub.c: new USB device 00:10.3-3, assigned 
> address 37
> Oct 15 12:47:59 bagpipes kernel: scsi1 : SCSI emulation for USB Mass Storage 
> devices
> Oct 15 12:47:59 bagpipes kernel:   Vendor: iriver    Model: MassStorage Disc  Rev:
> Oct 15 12:47:59 bagpipes kernel:   Type:   Direct-Access 
> ANSI SCSI revision: 02
> Oct 15 12:47:59 bagpipes devfsd[106]: 
> fixscsigenericperms(scsi/host1/bus0/target0/lun0/generic)
> Oct 15 12:47:59 bagpipes devfsd[106]: Changed non-CD 
> scsi/host1/bus0/target0/lun0/generic to be 0/0 0600
> Oct 15 12:47:59 bagpipes kernel: Attached scsi removable disk sda at scsi1, 
> channel 0, id 0, lun 0
> Oct 15 12:47:59 bagpipes kernel: SCSI device sda: 512001 512-byte hdwr sectors 
> (262 MB)

Notice that number!

> Oct 15 12:47:59 bagpipes kernel: sda: Write Protect is off
> Oct 15 12:47:59 bagpipes kernel:  /dev/scsi/host1/bus0/target0/lun0: p1
> Oct 15 12:47:59 bagpipes kernel: WARNING: USB Mass Storage data integrity not 
> assured
> Oct 15 12:47:59 bagpipes kernel: USB Mass Storage device found at 37
> Oct 15 12:48:02 bagpipes usb.agent[32193]:      usb-storage: loaded successfully
> 
> 
> unplug and replug the device:
> 
> Oct 15 12:49:43 bagpipes kernel: usb.c: USB disconnect on device 00:10.3-3 
> address 37
> Oct 15 12:49:48 bagpipes kernel: hub.c: new USB device 00:10.3-3, assigned 
> address 38
> Oct 15 12:49:48 bagpipes kernel: WARNING: USB Mass Storage data integrity not 
> assured
> Oct 15 12:49:48 bagpipes kernel: USB Mass Storage device found at 38
> Oct 15 12:49:52 bagpipes usb.agent[32271]:      usb-storage: loaded successfully
> 
> 
> Attempt to mount again:
> 
> > Oct 15 12:50:55 bagpipes kernel: SCSI disk error : host 1 channel 0 id 0 lun 0 
> > return code = 70000
> > Oct 15 12:50:55 bagpipes kernel:  I/O error: dev 08:00, sector 0
> > Oct 15 12:50:55 bagpipes kernel: FAT: unable to read boot sector

Your logs don't include the usb-storage verbose debugging.  Either you 
didn't rebuild the driver with debugging enabled, or you didn't load the 
new driver, or you didn't configure the syslog daemon to capture the 
debugging output.

By the way, you might try using Linux 2.6 and see if things go any more 
smoothly.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to