From owner-freebsd-hackers@freebsd.org Tue Apr 19 14:32:30 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB5C0B13DAB for ; Tue, 19 Apr 2016 14:32:30 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 674CF1326 for ; Tue, 19 Apr 2016 14:32:29 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from [194.32.164.30] ([194.32.164.30]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id u3JEN8w1090359; Tue, 19 Apr 2016 15:23:08 +0100 (BST) (envelope-from rb@gid.co.uk) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Diskless workstation and some minor issues From: Bob Bishop In-Reply-To: <57163991.4000100@systella.fr> Date: Tue, 19 Apr 2016 15:23:08 +0100 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <57163991.4000100@systella.fr> To: =?utf-8?Q?BERTRAND_Jo=C3=ABl?= X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2016 14:32:30 -0000 Hi, > On 19 Apr 2016, at 14:58, BERTRAND Jo=C3=ABl = wrote: >=20 > Hello, >=20 > I have installed a diskless workstation (10.2-RELEASE-p14) that = mounts its rootfs from a NetBSD nfs server. My fstab is : >=20 > root@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@pythagore:~ # >=20 > 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 (!) : >=20 > Apr 9 10:48:00 pythagore kernel: Root mount waiting for: usbus2 = usbus1 usbus0 [snip] > Apr 9 10:48:02 pythagore kernel: ugen0.4: 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 >=20 > I don't understand why kernel tries to mount an USB rootfs... = And I haven't found how fix this trouble. It doesn=E2=80=99t. It waits for USB just in case the root is on USB, I = assume this isn=E2=80=99t 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 =3D> nobody mapping. You probably need something like -maproot=3D0 = somewhere in /etc/exports on the server; RTFM exports(5). -- Bob Bishop rb@gid.co.uk