Re: External USB3 HDD: logical sector size incorrectly detected on first connect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 23 Mar 2015, Marc Joliet wrote:

> > > > Please capture a couple of usbmon traces showing what happens during a 
> > > > connect when the wrong sector size is detected and a connect when the 
> > > > right sector size is detected.  You can post the traces here (if there 
> > > > is a lot of repetitious stuff after the beginning, you can trim it out) 
> > > > or post them somewhere for people to see.
> > > 
> > > I'm still in the process of doing this, it turns out it's not so easy:
> > > 
> > > - If I try to run usbmon as early as possible (as a systemd unit, but maybe
> > >   there's a better way?) to catch the drive when the wrong sector size is
> > >   detected, I have a lot of stuff to trim from the logs, such as keyboard input
> > >   and mouse movement (which I'm doing now).  Do the logs give information about
> > >   which keys are pressed?

It's doubtful whether you can run usbmon early enough to capture 
communications with devices that are present when the system boots.

> > Looks like I can answer my own question: yes, at least each key is easily
> > differentiated by what is IIUC its data stream.
> [...]
> 
> I think I've got this done.  I removed messages from bus 1 and 2, which contain
> my mouse and keyboard.

Instead of removing messages from buses 1 and 2, you can simply capture 
the messages from the bus that the drive is attached to.

>  Without trying to trim duplicate messages, the resulting
> log is 3937 lines long and 324K large.  Everything up to line 1229 is from the
> initial connect, the rest from the reconnect.  I left some kernel messages in
> there for context. Trimmings are marked with "[...]".

What kernel messages are you talking about?  usbmon output doesn't 
contain any kernel messages.

> Is that manageable enough, or should I trim it further before sending?  Also,
> should I send it compressed, or in plain-text?

Try trimming it down to the first 200 lines or so following each 
connection.  If that's not enough I'll let you know.  Plain text is 
okay.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux