Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2018 19:45:09 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Ian Lepore <ian@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: r342378 fails sometimes on boot mounting root (error 2)
Message-ID:  <20181228184509.GA2231@c720-r314251>
In-Reply-To: <1546013269.78877.85.camel@freebsd.org>
References:  <20181228145432.GA2249@c720-r314251> <1546013269.78877.85.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <SunplusIT Inc HD WebCam> at usbus0
ugen0.3: <vendor 0x0489 product 0xe056> at usbus0
ugen0.4: <Western Digital Elements SE 25FE> at usbus0
umass0 on uhub0
umass0: <Western Digital Elements SE 25FE, class 0/0, rev 2.10/10.21, addr 3> 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: <TS256GMTS400 N1126I> 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: <TS256GMTS400 N1126I> 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: <WD Elements SE 25FE 1021> 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: <WD Elements SE 25FE 1021> 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<NO_6_BYTE>
pass2: <WD SES Device 1021> 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: <WD SES Device 1021> 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: <UNMAP(*),ZERO>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181228184509.GA2231>