Solved: Fedora 16 Boot and NFS mount problems

Tags:

I installed Fedora 16 today. First problem: System would not boot. I got "No bootable devices found. Insert media and press any key." That turned out to be, because the "old style" DOS partition table didn't have the new partition marked as bootable. Overcoming this took re-booting the Live CD, opening a terminal window, executing the command "su" to become root, then "fdisk /dev/sda" ...ignoring the message about the new GPT partition table type, and using the fdisk command "a" to set sda1 to be bootable (then "w" to write, ignore the error, and reboot). Very sloppy of Fedora to fail to do this. And why do we need a new partition table format at all?

Anyway the next bit that got me stuck was trying to mount an nfs share. The error message says you need to start the "statd" service (see several failed attempts below) but the actual name of the service is rpcbind ...go figure.


# <strong>yum install nfs-utils</strong>
<em>(needed for nfs mount to work at all)</em>
# <strong>mkdir /mnt/home</strong>
# <strong>mount 192.168.1.10:/home /mnt/home</strong>
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

# <strong>service statd start</strong>
Redirecting to /bin/systemctl  start nfslock.service
Failed to issue method call: Unit nfslock.service failed to load: No such file or directory. See system logs and 'systemctl status nfslock.service' for details.
<em>(It tells you to 'start statd' but there is no statd to start! Ugh.)</em>

# <strong>service nfslock start</strong>
Redirecting to /bin/systemctl  start nfslock.service
Failed to issue method call: Unit nfslock.service failed to load: No such file or directory. See system logs and 'systemctl status nfslock.service' for details.

# <strong>service nfs start</strong>
Redirecting to /bin/systemctl  start nfs.service
Failed to issue method call: Unit nfs.service failed to load: No such file or directory. See system logs and 'systemctl status nfs.service' for details.

# <strong>service rpcbind start</strong>
Redirecting to /bin/systemctl  start rpcbind.service
<em>(( Success! ))</em>
# <strong>mount 192.168.1.10:/home /mnt/home</strong>
<em>(( Success! ))</em>
#

Mounting NFS shares from Mac OSX 10.4

Tags:

If you have an NFS mount called /home on host 192.168.1.100 -- first make the directory /mnt and then, as root:

mount -o -P 192.168.1.100:/home /mnt

Refresher on NFS exporting

Tags:

on the server, in /etc/exports:

`

/home/somedirectory * 192.168.1.0/24 * (no_root_squash,rw,nohide) `

then after editing /etc/exports, refresh the NFS server with:

`

/sbin/exportfs -a

`