Here's
dmesg(8) output for a pair of tests first with and then without
umass(4) loaded:
Code:
ugen2.4: <Brother P-touch 2430PC> at usbus2
umass0 on uhub3
umass0: <Brother P-touch 2430PC, class 0/0, rev 1.10/1.00, addr 4> on usbus2
umass0: SCSI over Bulk-Only; quirks = 0x8100
umass0:2:0: Attached to scbus2
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Brother P-touch 2430PC 0.12> Removable Direct Access SCSI-2 device
da0: Serial Number 100C9F361255
da0: 1.000MB/s transfers
da0: 1MB (3041 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
GEOM_PART: integrity check failed (da0, MBR)
GEOM_PART: integrity check failed (diskid/DISK-100C9F361255, MBR)
ugen2.4: <Brother P-touch 2430PC> at usbus2 (disconnected)
umass0: at uhub3, port 6, addr 4 (disconnected)
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Brother P-touch 2430PC 0.12> s/n 100C9F361255 detached
(da0:umass-sim0:0:0:0): Periph destroyed
umass0: detached
ugen2.4: <Brother P-touch 2430PC> at usbus2
vboxdrv: XXXXXXXXXXXXXXXX VMMR0.r0
vboxdrv: XXXXXXXXXXXXXXXX VBoxDDR0.r0
ugen2.4: <Brother P-touch 2430PC> at usbus2 (disconnected)
I don't know what the story is on the GEOM integrity check, but in past episodes this issue has come up with normal flash drives
so I tend to discount that.
The Windows event log is interesting: I see a few instances of ID=51
Code:
An error was detected on device \Device\Harddisk1\D during a paging operation.
and a whole pile of ID=11
Code:
The driver detected a controller error on \Device\Harddisk1\D.
Weirdly enough, the latter occurred during the
successful earlier test (though again, Windows took an unusually long time to
recognize the device).
With
umass(4) unloaded, I get no suspicious Windows events during use of the device.
I'm running
x11-wm/xfce4 on the host. I know of nothing that should be explicitly accessing da0 although all this gvfs stuff is pretty
opaque to me. The disk device /dev/da0 does not show as mounted at any time.
I haven't encountered any reports of this with other hosts. For what it's worth, when I last encountered this several years ago, I ended up being
forced to install xubuntu in place of FreeBSD due to the need to have the extension pack for other reasons. After doing that, I didn't run into
similar problems.
If there's interest in tracking this down, I'm happy to help by gathering debug output or running test code. I wonder if attempting to access the
underlying
ugen(4) node in some way while
umass(4) is loaded would reveal anything.
Having said that, it seems like having
umass(4) loaded while something else is using the lower layer device is asking for
trouble. Maybe this is a
Patient: "Doctor, it hurts when I do this!"
Doctor: "Then don't do that!"
sort of situation.
Thanks!