LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-09-2010, 09:06 AM   #1
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167
Blog Entries: 4

Rep: Reputation: 16
Talking /etc/exports


I want to make an NFS share between my 2 PC's
One is slackware 32 current as server/client
The other is ubuntu 10.04 as client/server

Slackware can see the shared folder of ubuntu
But I can't mount the shared folder of slackware in ubuntu.
The error message is :
mount-nfs : an incorrect mount option was specified

Also when I run a 'showmount -e IP_Server' in the ubuntu PC
I have this message :
'clnt_create : RPC : Program not registred'.

NjB
 
Old 08-09-2010, 09:22 AM   #2
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
On 10.0.0.1, you need to put:

/whatever/directory 10.0.0.2(rw,no_root_squash)

in /etc/exports - this says 10.0.0.2 is allowed to mount /whatever/directory as an nfs filesystem with full rights. Then, on 10.0.0.2, you can add a line in /etc/fstab:

10.0.0.1:/whatever/directory /mnt/mountfolder nfs rw,suid,soft 0 0

or simply issue a mount command at the command line:

mount -t nfs //10.0.0.1/whatever/diretory /mnt/mountfolder
 
Old 08-09-2010, 10:13 AM   #3
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
are you sure the nfs server is running? what about portmap? you should get portmap up and running before nfs-server. what says rpcinfo?
 
Old 08-09-2010, 03:48 PM   #4
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167

Original Poster
Blog Entries: 4

Rep: Reputation: 16
Unhappy

Quote:
Originally Posted by suprstar View Post
On 10.0.0.1, you need to put:

/whatever/directory 10.0.0.2(rw,no_root_squash)

in /etc/exports - this says 10.0.0.2 is allowed to mount /whatever/directory as an nfs filesystem with full rights. Then, on 10.0.0.2, you can add a line in /etc/fstab:

10.0.0.1:/whatever/directory /mnt/mountfolder nfs rw,suid,soft 0 0

or simply issue a mount command at the command line:

mount -t nfs //10.0.0.1/whatever/diretory /mnt/mountfolder
J'ai fait ēa mais toujours pas de montage possible sur poste client.

NjB
 
Old 08-09-2010, 03:49 PM   #5
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167

Original Poster
Blog Entries: 4

Rep: Reputation: 16
Red face

Quote:
Originally Posted by HasC View Post
are you sure the nfs server is running? what about portmap? you should get portmap up and running before nfs-server. what says rpcinfo?
voilą pour le rpcinfo sur serveur :

# rpcinfo -p 192.168.1.29
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 52059 status
100024 1 tcp 35597 status
100021 1 udp 50959 nlockmgr
100021 3 udp 50959 nlockmgr
100021 4 udp 50959 nlockmgr
100021 1 tcp 35739 nlockmgr
100021 3 tcp 35739 nlockmgr
100021 4 tcp 35739 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 59832 mountd
100005 1 tcp 57671 mountd
100005 2 udp 59832 mountd
100005 2 tcp 57671 mountd
100005 3 udp 59832 mountd
100005 3 tcp 57671 mountd
 
Old 08-09-2010, 03:54 PM   #6
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
https://bugzilla.redhat.com/show_bug.cgi?id=27772

You got a

127.0.0.1 localhost

in your /etc/hosts ?
 
Old 08-10-2010, 07:19 AM   #7
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167

Original Poster
Blog Entries: 4

Rep: Reputation: 16
Wink /etc/hosts

Yes I've got one
127.0.0.1 localhost

in my /etc/hosts

NjB
 
Old 08-10-2010, 07:32 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Linux NFS

Other NFS Links;

Linux NFS-HOWTO
NFS-related kernel patches supported by Trond Myklebust
NFS-related kernel patches supported by Neil Brown
CITI's NFSv4 project
SourceForge NFS Project Page
The nfs-utils tarballs
Quote:
You should be able to garnish some useful information from some of the above links.

 
1 members found this post helpful.
Old 08-10-2010, 07:44 AM   #9
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167

Original Poster
Blog Entries: 4

Rep: Reputation: 16
Wink Network, LAN access, NFS

I'm going to read all this.
NFS and Network in general are part of my favorites themes.

But, I'm wondering if the problem is not coming from a bug in my Client PC, as far as I can't even see my slackware server in the neighbourhood of my client PC when I can see other servers as for exemple my NAS (Synology).

;-)
NjB
 
Old 08-10-2010, 07:59 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Not knowing your '/etc/exports' file nor any of the 'hosts' files it is hard to aid you.
All the necessary services are running?

 
Old 08-10-2010, 09:10 AM   #11
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167

Original Poster
Blog Entries: 4

Rep: Reputation: 16
Red face incorrect mount option was specified

Hello,

Surely the services are running!!

I can see all remote servers/client (NAS,and my other PC (ubuntu)) in my slackware PC.
But I can't see the slackware PC in my other PC (ubuntu).

Here are the exports and fstab files in both PC.

I want to share a folder (ASRock) of my slackware PC in my other PC (ubuntu)
So here is the /etc/exports file in the slackware PC
/home/njb/ASRock/ 192.168.1.29(rw,all_squash,anonuid=5000,anongid=5000,sync)

I want to mount this folder (ASRock) of my slackware PC in my other PC (ubuntu)
So here is the /etc/fstab file in my other PC (ubuntu)
192.168.1.30:/home/njb/ASRock /media/ASRock nfs suid,dev,exec,auto,user,async,rsize=8192,wsize=8192,soft,timeo=14,intr 0 0

I always get an error message in the other PC (ubuntu)
'incorrect mount option was specified'
And what seems strange is that I can make other NFS mounts in this other PC (ubuntu)

NjB
 
Old 08-10-2010, 09:16 AM   #12
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,183

Rep: Reputation: 237Reputation: 237Reputation: 237
Mount it from the command line. Give less and less options until you have no such error. Then you know which option is invalid.
 
  


Reply



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
/etc/exports ajeetraina Linux - Newbie 1 01-30-2008 11:24 AM
/etc/exports ajeetraina Linux - Newbie 1 01-30-2008 03:59 AM
FSTAB and exports... tiger.woods Ubuntu 6 02-15-2007 11:46 PM
X exports to server, never out Doc Hodges Linux - General 1 02-19-2005 09:02 PM
Exports Walter Sobchek AIX 13 06-16-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:30 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
Open Source Consulting | Domain Registration