PDA

View Full Version : can't mount nfs directory at mountpoint


mike_sh
2004-07-06, 03:18 PM CDT
Hello! can somebody help me with next:
I'm running FC2 (kernel 2.6.5...)
When I try to mount the nfs directoty(/mnt/riku) I receive next message:
mount: can't find /mnt/riku in /etc/fstab or /etc/mtab

here is my /etc/fstab line:
riku:/mnt/riku/ /home/riku/movies/ nfs rw,hard,intr 0 0

I don't know what's wrong!!!
I did try to restart /etc/init.d/nfs, and some other things back and forth, nothig changes!
do I really have add line to /etc/mtab? (If yes please tell me how should it look)

I'm new to linux so if you can give me some advice I'd appreciate that very much!
THANKS

bradthemad
2004-07-06, 05:27 PM CDT
Judging by your fstab entry, riku is your NFS server, with a exported directory /mnt/riku, which you'd like to mount on your local machine as /home/riku/movies. If that is the case, you need to run:

root@localhost# mount riku:/mnt/riku /home/riku/movies

Since you have the mount defined in the fstab, you can also shorten that as follows:

root@localhost# mount riku:/mnt/riku
root@localhost# mount /home/riku/movies

Running "mount /mnt/riku", which is what you would have done to get that error, would mean to mount something in the /mnt/riku directory on your local machine.

Don't edit mtab, that file is written by mount/umount to show what is currently mounted, and is not a configuration you can change.

/etc/init.d/nfs controls NFS services, but not the NFS client daemons, which are controlled by /etc/init.d/nfslock.

mike_sh
2004-07-06, 09:01 PM CDT
Judging by your fstab entry, riku is your NFS server, with a exported directory /mnt/riku, which you'd like to mount on your local machine as /home/riku/movies.

That was my mistake!!!
Server riku is exporting directory /home/riku/movies/ and I have it on /mnt/riku

The point Is: HAVE TO SLEEP ALSO!!!

Thank you bradthemad for help!