Re: mount -u -o rw / not working on NFS?



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

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: bin, sbin, etc as seperate LVM volumes
    ... RD>>that's where mount lives, and you almost certainly need to mount ... driver modules needed to get to the root file system. ... to start with -- these all must be all on the same file system. ...
    (comp.os.linux.misc)
  • Re: RFC: enhancing the root mount logic
    ... : The 2 reasons for doing this in the kernel are: ... allowing /sbin/init to come from the actual root file system. ... have to have your final init on the first level root file system. ... we support mount options in this scheme. ...
    (freebsd-arch)
  • Re: RFC: enhancing the root mount logic
    ... as root is not enough to have a usable root file system. ... draft below is an idea to enhance the root mount from having ad-hoc ... The kernel mounts devfs as root. ...
    (freebsd-arch)
  • Re: mounting filesytem for homedir
    ... if i mount the filesystem with the superuser ACL on the directory ... you mount the disk, and then after you mount the disk you need to again ... root, but is a problem when a user owns the entire partition filesystem. ... including the "root" of the mounted file system. ...
    (Fedora)
  • [Trouble Ticket #190335] AutoReply: freebsd-questions Digest, Vol 246, Issue 26
    ... please edit your Subject line so it is more specific ... you need to open a root xterm or even a root shell, ... boot manager is installed for this mirror and I would like to remove it ... was that NFS mount managwed ...
    (freebsd-questions)