LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 12: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, 01:22 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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, 01: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 01:31 PM.
 
Old 06-17-2007, 02: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, 02: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, 03:21 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Please show us the export file on that server.
 
Old 06-17-2007, 03: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, 04:02 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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, 04: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, 04:51 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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 04:55 PM.
 
Old 06-18-2007, 03: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:20 PM.

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
Open Source Consulting | Domain Registration