misc/172849: Missing fstab in rootfs leads to problems

Alexander Yerenkow yerenkow at gmail.com
Thu Oct 18 11:40:01 UTC 2012


>Number:         172849
>Category:       misc
>Synopsis:       Missing fstab in rootfs leads to problems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 18 11:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Yerenkow
>Release:        10.0-CURRENT FreeBSD 10.0-CURRENT #0 r241608: Tue Oct 16 16:32:03 EEST 2012
>Organization:
>Environment:
10.0-CURRENT FreeBSD 10.0-CURRENT #0 r241608: Tue Oct 16 16:32:03 EEST 2012     root@:/usr/obj/zstorage/src-clone/sys/GENERIC  amd64

>Description:
If you have single media, with missing fstab file (e.g. - no such file /etc/fstab)

Then boot will throw you forcedly to single user mode, and you will need interactively enter rootfs device, like

ufs:ada0s1 rw

More of that, options are really ignored, rootfs is always in RO, and 
mount -u / not working, so you can't set rootfs writeable, to create fstab.

This is very obscure situation, which required from you some external media to boot from just to mount your disk and create fstab with / record.

Currently even
mount -o rw -u /dev/ada0s1a /
NOT working.
>How-To-Repeat:
Get some FreeBSD, erase fstab, boot.
>Fix:
1. Fix options in mountroot prompt, e.g.
ufs:ada0s1 rw
will mount in RW, not in RO, so you'll be able to create fstab. (Or if UFS root can not be mounted in rw, change help, it's lying to me)

2. Deal with mount -u / when there's no fstab exists (make it work).


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


More information about the freebsd-bugs mailing list