From owner-freebsd-current@freebsd.org Fri Dec 28 18:45:15 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88F08141EB64 for ; Fri, 28 Dec 2018 18:45:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58FF29568E; Fri, 28 Dec 2018 18:45:13 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [88.217.97.141] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1gcx8B-0001dZ-1R; Fri, 28 Dec 2018 19:45:11 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id wBSIj99j002278 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 28 Dec 2018 19:45:09 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id wBSIj94i002277; Fri, 28 Dec 2018 19:45:09 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 28 Dec 2018 19:45:09 +0100 From: Matthias Apitz To: Ian Lepore Cc: freebsd-current@freebsd.org Subject: Re: r342378 fails sometimes on boot mounting root (error 2) Message-ID: <20181228184509.GA2231@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Ian Lepore , freebsd-current@freebsd.org References: <20181228145432.GA2249@c720-r314251> <1546013269.78877.85.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1546013269.78877.85.camel@freebsd.org> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.97.141 X-Rspamd-Queue-Id: 58FF29568E X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de]; HAS_XOIP(0.00)[]; TO_DN_SOME(0.00)[]; HAS_XAW(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mail.unixarea.de]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.89)[-0.891,0]; RCVD_IN_DNSWL_LOW(-0.10)[101.4.254.178.list.dnswl.org : 127.0.5.1]; RECEIVED_SPAMHAUS_PBL(0.00)[141.97.217.88.zen.spamhaus.org : 127.0.0.10]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[unixarea.de]; AUTH_NA(1.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; IP_SCORE(-2.90)[ip: (-8.35), ipnet: 178.254.0.0/19(-3.40), asn: 42730(-2.72), country: DE(-0.01)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2018 18:45:15 -0000 El día viernes, diciembre 28, 2018 a las 09:07:49a. m. -0700, Ian Lepore escribió: > Try setting vfs.mountroot.timeout= in loader.conf to a value long > enough to let the usb drive get probed reliably. The default is 3 > seconds, maybe a value like 5 or 10 would work better for you. > > -- Ian Thanks. I did so, but this does not help. When I does not work even after 20 secs it fails to mount. After a lot of boot attempts I have the following picture: 1. It always mounts fine when verbose message is selected. 2. It mounts fine when the line below about 'umass0:1:0: Attached to ... ' is printed, if it is not, the mount fails later after 20 secs waiting; here is a working boot: ... uhub1: 2 ports with 2 removable, self powered uhub0: 13 ports with 13 removable, self powered ugen0.2: at usbus0 ugen0.3: at usbus0 ugen0.4: at usbus0 umass0 on uhub0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x8000 umass0:1:0: Attached to scbus1 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-2 ATA SATA 3.x device ada0: Serial Number C196530955 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 1024bytes) ada0: Command Queueing enabled ada0: 244198MB (500118192 512 byte sectors) GEOM: new disk ada0 pass0 at ahcich0 bus 0 scbus0 target 0 lun 0 pass0: ACS-2 ATA SATA 3.x device pass0: Serial Number C196530955 pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 1024bytes) pass0: Command Queueing enabled pass1 at umass-sim0 bus 0 scbus1 target 0 lun 0 pass1: Fixed Direct Access SPC-4 SCSI device pass1: Serial Number 575854314134383033483150 pass1: 40.000MB/s transfers pass2 at umass-sim0 bus 0 scbus1 target 0 lun 1 da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number 575854314134383033483150 da0: 40.000MB/s transfers da0: 953837MB (1953458176 512 byte sectors) da0: quirks=0x2 pass2: Fixed Enclosure Services SPC-4 SCSI device pass2: Serial Number 575854314134383033483150 pass2: 40.000MB/s transfers ses0 at umass-sim0 bus 0 scbus1 target 0 lun 1 ses0: Fixed Enclosure Services SPC-4 SCSI device ses0: Serial Number 575854314134383033483150 ses0: 40.000MB/s transfers ses0: SCSI-3 ENC Device GEOM: new disk da0 da0: Delete methods: WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/gpt/extrootfs [rw,noatime]... atrtc0: providing initial system time start_init: trying /sbin/init ... -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub