LinuxQuestions.org
Help answer threads with 0 replies.
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 06-17-2007, 01:41 PM   #1
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
fstab error nfs problems


Hi

Once again I have got some problems with my fstab file. Every time I try a soluiton I seem to get it wrong, Its driving me crazy !!!

This is my fstab file:-

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=51e87899-2a1f-4458-aeb6-335de5e673a4 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=72b89743-9908-49eb-8e8e-287c113b6c6f none swap sw 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sdb /media/floppy0 auto rw,user,noauto 0 0
geko4:/music_safe/music_store /music_safe/music_store nfs (rw,no_root_squash) 0 0

When I try to test this file by doing a mount -a I get the following error:-

/music_safe$ sudo mount -a
Unsupported nfs mount option: (rw

What I would really like to do is that anyone on that network can edit and read this directory but if I get geko4 working that would be a step in the right direction!!

What am I doing wrong? something stupid!! Can anyone help?

Adrian
 
Old 06-17-2007, 02:22 PM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Code:
geko4://music_safe/music_store /music_safe/music_store nfs rw,users 0 0
Note: users option allows anybody to mount/umount
 
Old 06-17-2007, 02:24 PM   #3
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
nfs

Is it a nfs file system or could it be a ntfs? might also try auto to see if it can autodetect it.

Edit:

Also need to check and see if you have nfs support installed on the system.

Last edited by Hern_28; 06-17-2007 at 02:31 PM.
 
Old 06-17-2007, 03:51 PM   #4
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Well I have tried this as suggested by emerson, however I am still getting an error:-

sudo mount -a# /etc/fstab: static file system information.

fstab is now :-

#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=51e87899-2a1f-4458-aeb6-335de5e673a4 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=72b89743-9908-49eb-8e8e-287c113b6c6f none swap sw 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sdb /media/floppy0 auto rw,user,noauto 0 0
geko4://music_safe/music_store /music_safe/music_store nfs rw,users 0 0
~

mount: geko4://music_safe/music_store failed, reason given by server: Permission denied

Now what does this mean, the paths are all 777 so it can not mean these can it?

Adrian
 
Old 06-17-2007, 03:54 PM   #5
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Root

Are you getting this error trying to mount the partition as root?
 
Old 06-17-2007, 04:21 PM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Please show us the export file on that server.
 
Old 06-17-2007, 04:24 PM   #7
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Yes I am mounting this as root using
sudo mount -a
also

It is a nfs file system not ntfs and the nfs server is installed

any other ideas?
 
Old 06-17-2007, 05:02 PM   #8
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
NFS server is installed, is it started too? What about that exports file I asked in my previous post?
 
Old 06-17-2007, 05:44 PM   #9
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Well here is my exports file:-

# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
#/media/windows/home2/music geko80(rw)
#/media/hdb6/media/music_safe geko80(rw)
#/media/music_safe 192.168.1.0/255.255.255.0 (rw,sync,no_root_squash)
/music_safe/music_store geko4(rw,sync,no_root_squash)

Does this help
 
Old 06-17-2007, 05:51 PM   #10
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
/music_safe/music_store geko4(rw,sync,no_root_squash)

geko4 is the server, right?


/music_safe/music_store client_name_here(rw,sync,no_root_squash)
or, for entire subnet
/music_safe/music_store 192.168.1.0/24(rw,sync,no_root_squash)

Last edited by Emerson; 06-17-2007 at 05:55 PM.
 
Old 06-18-2007, 04:52 AM   #11
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Hooray its working that last change made the difference, thank you. I also found a error in the hosts.allow file so fixed it.
Thanks again

Adrian
 
  


Reply

Tags
fstab, nfs


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 mount in /etc/fstab ? cozye Linux - General 3 09-12-2014 04:48 PM
nfs: fstab will not mount at boot tredegar Linux - Networking 15 08-13-2013 05:24 PM
Fstab does not work in nfs windsurfer Linux - Software 1 04-23-2007 03:33 AM
nfs mount with fstab vs autofs rrich100 Linux - Networking 2 11-13-2003 11:21 PM
how do I mount with nfs in fstab? Falafel Linux - Networking 1 11-13-2003 01:56 PM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
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