LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-06-2007, 05:03 PM   #1
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
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?
 
Old 04-06-2007, 09:00 PM   #2
thecarpy
Member
 
Registered: Apr 2005
Location: France
Distribution: Debian Squeeeeze
Posts: 117

Rep: Reputation: 19
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 ...
 
Old 04-07-2007, 05:40 AM   #3
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Yes this seems to work for using the mount cmd, how do I add this to my fstab file?
 
Old 04-09-2007, 05:49 AM   #4
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
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
 
Old 04-09-2007, 08:34 AM   #5
Walman
Member
 
Registered: Jun 2004
Location: Venezuela
Distribution: RHEL ,Centos,Debian,Slax , Solaris
Posts: 94

Rep: Reputation: 15
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
 
Old 04-09-2007, 08:54 AM   #6
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,187

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
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
 
Old 04-10-2007, 05:58 AM   #7
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
nfs and fstab

Thanks for the tips, all works ok now.

Adrian
 
  


Reply

Tags
nfs, share


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS shares automounting mjuhannus Linux - Networking 1 03-06-2005 07:15 AM
NFS client loses shares tomanthony Linux - Networking 0 09-16-2004 12:33 PM
NFS and Samba shares not working on MDK10, kernel 2.6.6 server DaneM Linux - Software 1 05-29-2004 09:42 PM
How do you mount NFS shares? Thaidog Linux - Newbie 1 04-04-2004 10:48 PM
seeing nfs shares problem (firewall) rosscopeeko Linux - General 3 03-17-2004 04:46 PM


All times are GMT -5. The time now is 12:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration