Diskless client mount NFS-root error

Beeblebrox zaphod at berentweb.com
Mon Apr 2 09:28:07 UTC 2012


Client boots fine and gets to mounting root from NFS, but then stops with:
"Mounting root filesystem rw failed, startup aborted" and drops to
single-user mode.
*loader.conf* for the client is below, Some optioons caused more trouble
than solutions, so were commented out.
1. boot.nfsroot.server="192.168.2.1"
2. boot.nfsroot.path="/data/amd64"
3 .vfs.root.mountfrom="nfs:192.168.2.1:/data/amd64"
4. #vfs.root.mountfrom="nfs"
5. #boot.nfsroot.options="nolockd"
6 .#vfs.root.mountfrom.options="ro"

Now the fun part is, with a dirty-little hack I was able to get diskless to
work and NOT break boot:
I commented out [stop_boot true] in diskless/etc/rc.d/root.
Although at the time this was satisfactory, I would noow like to solve this
the "propper way" if possible.
*/etc/exports*:  /data/amd64 -ro -maproot=0  -network 192.168.2.0/24

Thanks for your input


More information about the freebsd-fs mailing list