Random truncated files on USB hard disk with timeouts; how to debug?

Arrigo Marchiori ardovm at yahoo.it
Wed Oct 19 06:28:23 UTC 2016


Hello Poul,

thank you for replying.

On Tue, Oct 18, 2016 at 05:43:44PM +0000, Poul-Henning Kamp wrote:

> --------
> In message <20161018152715.GC89691 at nuvolo>, Arrigo Marchiori via freebsd-fs wri
> tes:
> 
> >The USB hard drive occasionally times out for ~10 seconds. 
> 
> When you say "hard drive" do you mean actually rotating platters
> or do you mean a flash-based device ?

It is a USB disk bought some years ago, that contains actually
rotating platters. It has a Y-shaped cable, to get power from two
ports.

usbconfig(8) says:

----8<--------8<--------8<--------8<--------8<--------8<--------8<---------

ugen6.2: <StoreJet Transcend JMicron> at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

----8<--------8<--------8<--------8<--------8<--------8<--------8<---------

And the relevant lines from dmesg(1) are the following (verbose boot):

----8<--------8<--------8<--------8<--------8<--------8<--------8<---------

ugen6.2: <JMicron> at usbus6
umass0 on uhub6
umass0: <MSC Bulk-Only Transfer> on usbus6
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:4:0: Attached to scbus4
random: harvesting attach, 8 bytes (4 bits) from umass0
mountroot: waiting for device /dev/da0s2a...
pass2 at umass-sim0 bus 0 scbus4 target 0 lun 0
pass2: <StoreJet Transcend > Fixed Direct Access SCSI-2 device
pass2: Serial Number 19CD0594134F
pass2: 40.000MB/s transfers
GEOM: new disk da0
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: <StoreJet Transcend > Fixed Direct Access SCSI-2 device
da0: Serial Number 19CD0594134F
da0: 40.000MB/s transfers
da0: 238475MB (488397168 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
da0: Delete methods: <NONE(*),ZERO>

----8<--------8<--------8<--------8<--------8<--------8<--------8<---------

I hope this helps.

Best regards,
-- 
rigo

http://rigo.altervista.org


More information about the freebsd-fs mailing list