From owner-freebsd-questions@FreeBSD.ORG Mon Nov 19 18:01:13 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F76D16A418 for ; Mon, 19 Nov 2007 18:01:13 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailwasher.lanl.gov (mailwasher.lanl.gov [204.121.3.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4635613C458 for ; Mon, 19 Nov 2007 18:01:13 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id lAJI1CSb028687; Mon, 19 Nov 2007 11:01:12 -0700 Received: from oppie-mail.lanl.gov (oppie-mail.lanl.gov [128.165.4.123]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id lAJI1Bal020145; Mon, 19 Nov 2007 11:01:11 -0700 Received: from [128.165.86.60] (p25dual1.lanl.gov [128.165.86.60]) by oppie-mail.lanl.gov (Postfix) with ESMTP id 056BA1F800A; Mon, 19 Nov 2007 11:01:07 -0700 (MST) From: James Harrison To: Laszlo Nagy In-Reply-To: <4741C8E5.4020201@shopzeus.com> References: <4741C8E5.4020201@shopzeus.com> Content-Type: text/plain Organization: Los Alamos National Labs Date: Mon, 19 Nov 2007 11:01:06 -0700 Message-Id: <1195495266.6886.17.camel@p25dual1.lanl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-33.0.1.el5) Content-Transfer-Encoding: 7bit X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: jamesh@lanl.gov X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: mount -u -o rw / not working on NFS? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jamesh@lanl.gov List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2007 18:01:13 -0000 On Mon, 2007-11-19 at 18:33 +0100, Laszlo Nagy wrote: > Hi All, > > I have a system where a diskless FreeBSD 6.3 i386 machine boots with pxeboot from a FreeBSD 6.3 amd64 machine. I have lines in /etc/fstab for the diskless machine like: > > # Device MountPoint FsType Options Dump Pass > 172.16.0.1:/usr /usr nfs rw 0 0 > 172.16.0.1:/mnt/d2/rootfs/root /root nfs rw 0 0 > > The machine boots from network nicely, then I can login as root and invoke these commands: > > mount -u -o rw / > mount -u -o rw /usr > mount -u -o rw /root > > There is no error message on the console, nor in the system log. However, this happens afterwards: > > diskless101#mkdir /aaa > mkdir aaa: Read-only file system > > Question: if the remount did not succeed, why didn't it throw an error? If succeeded, why can't I write on the filesystem? > > Thanks, > > Laszlo > The answer to the second portion is that you're mounted as a read only file system, so there's no write access. There's an nfs permissions file you may need to edit, /etc/exports/, which controls whether NFS shares the file system as read only, read write, whether root can have root on the file system etc. James