Diskless workstation and some minor issues
Bob Bishop
rb at gid.co.uk
Tue Apr 19 14:32:30 UTC 2016
Hi,
> On 19 Apr 2016, at 14:58, BERTRAND Joël <joel.bertrand at systella.fr> wrote:
>
> Hello,
>
> I have installed a diskless workstation (10.2-RELEASE-p14) that mounts its rootfs from a NetBSD nfs server. My fstab is :
>
> root at pythagore:~ # cat /etc/fstab
> # Device Mountpoint FStype Options Dump Pass#
> 192.168.10.128:/srv/pythagore / nfs nfsv3,tcp,soft,intr,rw 0 0
> ...
> 192.168.10.128:/home /home nfs nfsv3,tcp,soft,intr,rw 0 0
> root at pythagore:~ #
>
> First question. I have installed this diskless workstation with an USB stick. Now, FreeBSD kernel mounts rootfs over NFS. But in a first time, it tries to mount usbus0 (!) :
>
> Apr 9 10:48:00 pythagore kernel: Root mount waiting for: usbus2 usbus1 usbus0
[snip]
> Apr 9 10:48:02 pythagore kernel: ugen0.4: <Unknown> at usbus0 (disconnected)
> Apr 9 10:48:02 pythagore kernel: uhub_reattach_port: could not allocate new device
> Apr 9 10:48:02 pythagore kernel: Trying to mount root from nfs:192.168.10.128:/srv/pythagore [nfsv3,tcp,soft,intr,rw]...
> Apr 9 10:48:02 pythagore kernel: NFS ROOT: 192.168.10.128:/srv/pythagore
>
> I don't understand why kernel tries to mount an USB rootfs... And I haven't found how fix this trouble.
It doesn’t. It waits for USB just in case the root is on USB, I assume this isn’t optimised to keep things simple.
> Second trouble. /var/log/message contains a lot of :
> Apr 9 10:50:00 pythagore atrun[862]: cannot lock /var/at/jobs/: Permission denied
[etc]
I suspect the rest of your troubles are due to the usual default NFS root => nobody mapping. You probably need something like -maproot=0 somewhere in /etc/exports on the server; RTFM exports(5).
--
Bob Bishop
rb at gid.co.uk
More information about the freebsd-hackers
mailing list