Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 2010 07:45:05 GMT
From:      "Reed L O'Brien" <reed@koansys.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/148493: 8.0-RELEASE #0 won't boot if it can't mount smbfs entries in fstab
Message-ID:  <201007110745.o6B7j56h057448@www.freebsd.org>
Resent-Message-ID: <201007110750.o6B7o2LC047801@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148493
>Category:       misc
>Synopsis:       8.0-RELEASE #0 won't boot if it can't mount smbfs entries in fstab
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 11 07:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Reed L O'Brien
>Release:        8.0-RELEASE #0
>Organization:
Koansys, LLC
>Environment:
FreeBSD babahoya.retroconference.org 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


>Description:
Machine went down due to a very extended power outage.

It was running fine, but after reboot it wouldn't come up at all. It dropped back to single user mode.

The actual cause was a firewall rule blocking wins resolution when trying to mount /etc/fstab during init.

I don't know if this qualifies as a bug, but it seems rather silly that the system can't boot after mounting all the local filesystems. I understand that if init exits nonzero from mount it can't tell if it was / or an smbfs mount that failed. So, maybe the non-essential mount points should go in a /usr/local/fstab or something.

I wanted to report it though as I am sure someone else has been or will be bitten by this. it was especially painful as the machine runs headless...Your call. If you need me to follow up on anything let me know.
>How-To-Repeat:
mount a win2kx server share in /etc/fstab and then enable pf without creating a rule to allow smb/cifs traffic. Wait until there is a 6 hours power outage. The machine functions fine until it reboots. Then init exits non zero from trying to mount the entries in fstab.

Logged error:
Jul  8 14:48:53 babahoya kernel: netsmb_dev: loaded
Jul  8 14:49:22 babahoya init: /bin/sh on /etc/rc terminated abnormally, going to single user mode

Console error was something close to:
smbfs: can't get server address: syserr = Operation timed out
>Fix:
Easy enough just add the correct rules to allow smb/cifs traffic in the firewall; pf in this case.

>Release-Note:
>Audit-Trail:
>Unformatted:



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