LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   NFS shares not working (https://www.linuxquestions.org/questions/linux-software-2/nfs-shares-not-working-543886/)

windsurfer 04-06-2007 04:03 PM

NFS shares not working
 
Hi

I have several Ubuntu 6.10 machines on a small network. I thought It would be really good if I could share my data on one machine and access it from the others. I read about NFS as a means to do this so installed NFS_server on one remote machine, I changed the /etc/fstab file on my local machine to be:

remote_hostname:/media/music_safe/ /media/music_safe rw,hard,intr 0 0

on my local machine I run :-
mount remote_hostname
and I get mount: can't find remote_hostname in /etc/fstab or /etc/mtab

What am I doing wrong?

thecarpy 04-06-2007 08:00 PM

1. clients and server qlso need nfs-common, it speeds things up ;-)

2. your problem looks like you do not have "users" in the options in fstab, so "users" cannot mount the nfs fs ...

3. try the following:

sudo mount -t nfs 192.168.1.7:/some/path /some/path/that/must/exist

please replace the ip with the ip of your server ... same goes for the paths ...

windsurfer 04-07-2007 04:40 AM

Yes this seems to work for using the mount cmd, how do I add this to my fstab file?

windsurfer 04-09-2007 04:49 AM

Does anyone know the format I have to put in my fstab file? The man page is not clear! or maybe I am just stupid!

Adrian

Walman 04-09-2007 07:34 AM

Windsurfer


I belive your fstab is not properly set You have stated the remote machine name and the device to be mounted , you have also stated the mount point but , you need to add the type of filesystem you are using , for example ext3 or any other you are using , please see below

remote_hostname:/media/music_safe/ /media/music_safe ext3 rw,hard,intr 0 0

Hope this helps


Pedro

jlinkels 04-09-2007 07:54 AM

Well, the file system is definitely not ext3 as you access it over the network. The file system is nfs. This is a line from my own fstab:

Code:

homeserv.megaline.com:/home  /mnt/homeserv/home  nfs  defaults  0  0
You didn't forget to export the file system(s) on the host which shares the drives, did you?

jlinkels

windsurfer 04-10-2007 04:58 AM

nfs and fstab
 
Thanks for the tips, all works ok now.

Adrian


All times are GMT -5. The time now is 03:42 PM.