[Bug 224974] [fsck] Mounting USB drive at boot time hangs boot

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 7 16:35:18 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224974

            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 at FreeBSD.org
          Reporter: pru13allan at 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-card
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 at 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 single
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 at HP2:/usr/obj/usr/src/i386.i386/sys/GENERIC-NODEBUG  i386

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list