From owner-freebsd-questions@freebsd.org Sat Nov 21 12:35:56 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 16A5B2EEA91 for ; Sat, 21 Nov 2020 12:35:56 +0000 (UTC) (envelope-from shadowomf@arcor.de) Received: from vsmx012.vodafonemail.xion.oxcs.net (vsmx012.vodafonemail.xion.oxcs.net [153.92.174.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CdXvb0C0yz4hCT for ; Sat, 21 Nov 2020 12:35:54 +0000 (UTC) (envelope-from shadowomf@arcor.de) Received: from vsmx004.vodafonemail.xion.oxcs.net (unknown [192.168.75.198]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTP id 6A909F35AAF; Sat, 21 Nov 2020 12:35:52 +0000 (UTC) Received: from [10.86.1.1] (unknown [46.142.0.50]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 3039E19AD91; Sat, 21 Nov 2020 12:35:48 +0000 (UTC) To: freebsd-questions From: Christoph Harder Subject: usb harddisk not working Autocrypt: addr=shadowomf@arcor.de; prefer-encrypt=mutual; keydata= mJMEXtfqExMJKyQDAwIIAQENBAMEiOcnS1zkzUiN69dDauTzK5rciVyTl/TETRsSY3UZPTyG DtzqCJV3gkmw8+8nfsABrct9Kes2nZcQS4Z1mYjNSjKqBrFjnOuzs2aKP9HVOxbq2O0/uQt+ dNKj/0/OQ277YkcgmSZxLtEyFFxZ+oG/lEH1GTRG/4sQIJlYBMAD3yq0JUNocmlzdG9waCBI YXJkZXIgPHNoYWRvd29tZkBhcmNvci5kZT6I1gQTEwoAPhYhBJvciSrfzNhHg1EzkaNiR58/ CtwGBQJe1+ozAhsjBQkKfRgdBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEKNiR58/CtwG lA4B/jca5VP9NhR9JsW+SPYYokMt3CcW9xasxukupfjmXo31yjrkNvL9ibwbs1s8d2/wg7I0 Rwlj1uwPdUowGMP0A0gB/3Yh2WGLlseMZHwcp3Or+u67dxB5UJ3HmUkNA4IaITrWGm4spTDp n/jOycSa1/OPHPqrNAhPtukPsWi8Zn2qG6i4lwRe1+oTEgkrJAMDAggBAQ0EAwRzV2Ra5qRU wy+lalkkrRSklVgYIhKX9H4cgfbsmT+hrjs2XQFVRj2kKz5dvBVMTpO+cyxzzflHfwNJqwm4 o/zeO25U2gplF3D19ObC7KSCBSyIopX+cp0r9Zyj+LO9BXXuy6TF0N2Oe2HLAVeyEdHc1PCu Op4hmD1g5BCHNx4zgAMBCgmIvgQYEwoAJhYhBJvciSrfzNhHg1EzkaNiR58/CtwGBQJe1+oT AhsMBQkKfRgdAAoJEKNiR58/CtwGJwYB/39UIRXG5RcGddpOoHY95z1nlSwPC1RPwEVBp39T hPuWeKI1l6KIh9uOuGUZt8Q37OX7eRv1Fq46qi0tSow9CpIB/1qn/rd05ShB+K31WRefy7mW q0vLe7Kbxcn7uXDOQ0niDmdAjpgZjXU3+7enaCD/vEMMc1geuxKDwdF4kd6+VNM= Message-ID: Date: Sat, 21 Nov 2020 13:35:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-VADE-STATUS: LEGIT X-Rspamd-Queue-Id: 4CdXvb0C0yz4hCT X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of shadowomf@arcor.de designates 153.92.174.90 as permitted sender) smtp.mailfrom=shadowomf@arcor.de X-Spamd-Result: default: False [-3.40 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[153.92.174.90:from]; FREEMAIL_FROM(0.00)[arcor.de]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:153.92.174.0/24]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[arcor.de]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[arcor.de]; ASN(0.00)[asn:60664, ipnet:153.92.174.0/24, country:DE]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[153.92.174.90:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2020 12:35:56 -0000 Hello everybody, I'm/we're running FreeBSD 12.1-RELEASE-p10 GENERIC amd64 on an PC Engines APU.4D4 Board with a Transcend MSA230S SSD as main hard drive which is detected as ada0. I would like to attach a hdd case that contains a Western Digital 14TB hard disk (already partitioned and formatted with a single ufs partition). However the disk is not always detected, sometimes connecting it to another usb port (2 ports are available) works but not always. Especially after a reboot the drive is not detected properly (I'm not 100% certain, but I believe it never was detected correctly after a reboot). When the disk is detected it is listed as da0. The hdd case does seem to contain a JMicron usb controller, it's a icybox case with space for two 3.5" disks, but currently only contains the one WD hdd. I've enabled automount like described in section 17.4.2. Automounting Removable Media of the handbook. The same settings work flawlessly on other devices (same board, same os version) with external seagate hdds (though they are ready made solutions, not hdd cases that are made to be filled with drives by the user). /etc/devd.conf # automount notify 100 { match "system" "GEOM"; match "subsystem" "DEV"; action "/usr/sbin/automount -c"; }; /etc/rc.conf # automount autofs_enable="YES" dmesg uhub0: 4 ports with 4 removable, self powered uhub1: 2 ports with 2 removable, self powered lo0: link state changed to UP ugen1.2: at usbus1 uhub2 on uhub1 uhub2: on usbus1 ugen0.2: at usbus0 umass0 on uhub0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x8100 umass0:2:0: Attached to scbus2 uhub2: 4 ports with 4 removable, self powered igb0: link state changed to UP intsmb0: at device 20.0 on pci0 smbus0: on intsmb0 Security policy loaded: MAC/ntpd (mac_ntpd) (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 1 more tries remain (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 0 more tries remain (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Error 5, Retries exhausted (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain camcontrol devlist at scbus0 target 0 lun 0 (ada0,pass0) usbconfig ugen0.1: <0x1022 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA) /dev shows ada0 but not da0. It also shows the following usb devices lrwxr-xr-x 1 root wheel 9 Nov 21 13:10 ugen0.1@ -> usb/0.1.0 lrwxr-xr-x 1 root wheel 9 Nov 21 13:10 ugen0.2@ -> usb/0.2.0 lrwxr-xr-x 1 root wheel 9 Nov 21 13:10 ugen1.1@ -> usb/1.1.0 lrwxr-xr-x 1 root wheel 9 Nov 21 13:10 ugen1.2@ -> usb/1.2.0 crw-r--r-- 1 root operator 0x45 Nov 21 13:10 usbctl I hope you can give me some hints and tips on how to get this disk working properly. By the way, do you have any information about settings that reduce the power consumption of external disk drives? We expect the disks to be mostly idle, but at the moment the power consumption looks pretty high (higher than the APU board itself), even when it is not currently accessed. Especially information about usb power saving states and power consumption in combination with automount would be appreciated. Thank you in advance. -Christop Harder