From owner-freebsd-bugs@freebsd.org Sun Jan 7 16:35:18 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25D98E7513C for ; Sun, 7 Jan 2018 16:35:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0CCE26D8A6 for ; Sun, 7 Jan 2018 16:35:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 01D531EFE9 for ; Sun, 7 Jan 2018 16:35:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w07GZHOD008683 for ; Sun, 7 Jan 2018 16:35:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w07GZHqJ008682 for freebsd-bugs@FreeBSD.org; Sun, 7 Jan 2018 16:35:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224974] [fsck] Mounting USB drive at boot time hangs boot Date: Sun, 07 Jan 2018 16:35:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pru13allan@telia.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2018 16:35:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224974 Bug ID: 224974 Summary: [fsck] Mounting USB drive at boot time hangs boot Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: pru13allan@telia.com Maybe related to Bug 208308. When mounting USB drive from fstab and the sixth field, (fs_passno), is set to 2 the boot sequence hangs. Setting fs_passno to 0 work as expected. Tested with different types of drives (memstick and disk) with different schemes (MBR, GPT) and all combination of msdosfs and/or ufs. Adding 'late' to fstab have no effect. (fsck comes before mount) Steps to reproduce (memstick): /etc/fstab: /dev/da0s1 /mnt msdosfs rw,noatime 0 0 This work OK. /etc/fstab: /dev/da0s1 /mnt msdosfs rw,noatime 0 2 This should start a background fsck and the boot would proceed as normal. Tested on RaspberryPi3: Booting hangs after enumerating all USB devices. You have to remove SDHC-ca= rd and mount it on another machine and edit /etc/fstab. Eventually after fsck of SDHC. FreeBSD fbsd4 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r327173M: Sun Dec 31 16:04:59 CET 2017 root@HP2:/usr/crochet-freebsd/work/obj/usr/src/arm64.aarch64 /sys/GENERIC-NODEBUG arm64 Tested on HP laptop: Boot message: Can't open '/dev/da0s1' /dev/da0s1: UNEXPECTED INCONSISTENCY: RUN fsck_msdosfs MANUALLY /dev/ada0s1d: FILE SYSTEM CLEAN: SKIPPING CHECKS .... .... THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: msdosfs: /dev/da0s1 (/Video) Automatic file system check failed: help! ERROR: ABORTING BOOT (sending SIGTERM to parent)! Jan 7 12:46:45 init: /bin/sh on /etc/rc terminated abnormally, going to si= ngle user mode Enter full pathname of shell or RETURN for /bin/sh: FreeBSD HP2 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r327173M: Tue Dec 26 10:36= :15 CET 2017 root@HP2:/usr/obj/usr/src/i386.i386/sys/GENERIC-NODEBUG i386 --=20 You are receiving this mail because: You are the assignee for the bug.=