Date: Mon, 17 Jun 2019 13:12:37 +0200 From: Matthias Apitz <guru@unixarea.de> To: freebsd-usb@freebsd.org Subject: external USB disk spins off and mount gets destroyed Message-ID: <20190617111237.GA10000@sh4-5.1blu.de>
next in thread | raw e-mail | index | archive | help
Hello, I've on my laptop (FreeBSD 12.0-CURRENT r314251 amd64) an external USB disk which presents it like this on plugin: Jun 17 12:50:10 c720-r342378 kernel: ugen0.4: <TOSHIBA External USB 3.0> at usbus0 Jun 17 12:50:10 c720-r342378 kernel: umass0 on uhub0 Jun 17 12:50:10 c720-r342378 kernel: umass0: <TOSHIBA External USB 3.0, class 0/0, rev 3.00/3.15, addr 7> on usbus0 Jun 17 12:50:10 c720-r342378 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0100 Jun 17 12:50:10 c720-r342378 kernel: umass0:1:0: Attached to scbus1 Jun 17 12:50:10 c720-r342378 kernel: (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 Jun 17 12:50:10 c720-r342378 kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error Jun 17 12:50:10 c720-r342378 kernel: (probe0:umass-sim0:0:0:0): SCSI status: Check Condition Jun 17 12:50:10 c720-r342378 kernel: (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) Jun 17 12:50:10 c720-r342378 kernel: (probe0:umass-sim0:0:0:0): Error 22, Unretryable error Jun 17 12:50:10 c720-r342378 kernel: da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 Jun 17 12:50:10 c720-r342378 kernel: da0: <TOSHIBA External USB 3.0 5438> Fixed Direct Access SPC-4 SCSI device Jun 17 12:50:10 c720-r342378 kernel: da0: Serial Number 20181017010605F Jun 17 12:50:10 c720-r342378 kernel: da0: 400.000MB/s transfers Jun 17 12:50:10 c720-r342378 kernel: da0: 953869MB (1953525164 512 byte sectors) Jun 17 12:50:10 c720-r342378 kernel: da0: quirks=0x2<NO_6_BYTE> I've created with gpart(8) file systems like this: # gpart show -l da0 => 40 1953525088 da0 GPT (932G) 40 1024 1 extboot (512K) 1064 984 - free - (492K) 2048 536870912 2 extrootfs (256G) 536872960 16777216 3 extswap (8.0G) 553650176 1399873536 4 extbackupfs (668G) 1953523712 1416 - free - (708K) # mount /dev/gpt/extrootfs /mnt The problem is, that after some time of idel, the disk spins down and the mount gets destroyed: Jun 17 12:52:51 c720-r342378 kernel: ugen0.4: <TOSHIBA External USB 3.0> at usbus0 (disconnected) Jun 17 12:52:51 c720-r342378 kernel: umass0: at uhub0, port 10, addr 6 (disconnected) Jun 17 12:52:51 c720-r342378 kernel: da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 Jun 17 12:52:51 c720-r342378 kernel: da0: <TOSHIBA External USB 3.0 5438> s/n 20181017010605F detached Jun 17 12:52:51 c720-r342378 kernel: (da0:umass-sim0:0:0:0): Periph destroyed Jun 17 12:52:51 c720-r342378 kernel: umass0: detached What can I do to avoid this? matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190617111237.GA10000>