Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2016 08:28:12 +0200
From:      Arrigo Marchiori <ardovm@yahoo.it>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Arrigo Marchiori via freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: Random truncated files on USB hard disk with timeouts; how to debug?
Message-ID:  <20161019062812.GA93031@nuvolo>
In-Reply-To: <51997.1476812624@critter.freebsd.dk>
References:  <20161018152715.GC89691@nuvolo> <51997.1476812624@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Poul,

thank you for replying.

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

> --------
> In message <20161018152715.GC89691@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161019062812.GA93031>