LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2010, 02:01 PM   #1
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167
Blog Entries: 4

Rep: Reputation: 16
Talking [SOLVED] : Start NFS Server


Hello,
I've modified my /etc/export file to add a directory I want to share in my LAN.
Have modified too the fstab file in the client PC.
But it still doesn't want to work :
Error message in the client PC
An incorrect mount option was specified.
I thought may be I have to first start the NFS server in my slackware server PC !!

Don't know how ???

:-) NjB )

Last edited by njb; 05-16-2010 at 03:08 PM. Reason: Title Changing
 
Old 05-12-2010, 02:14 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,106

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
does slackware have a redhat like service command:
Code:
sudo service nfs status
sudo service nfs start
 
Old 05-12-2010, 05:10 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,714
Blog Entries: 27

Rep: Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057
Hi,

Since you modified the '/etc/exports' then read;

Quote:
excerpt from 'man exportfs';
NAME
exportfs - maintain list of NFS exported file systems
SYNOPSIS
/usr/sbin/exportfs [-avi] [-o options,..] [client:/path ..]
/usr/sbin/exportfs -r [-v]
/usr/sbin/exportfs [-av] -u [client:/path ..]
/usr/sbin/exportfs [-v]
/usr/sbin/exportfs -f

DESCRIPTION
The exportfs command is used to maintain the current table of exported file systems for NFS. This list is kept in a separate file named /var/lib/nfs/xtab which is read by mountd when a remote host requests access to mount a file tree, and parts of the list which are active are kept in the kernel's export table. Normally this xtab file is initialized with the list of all file systems named in /etc/exports by invoking exportfs -a. However, administrators can choose to add and delete individual file systems without modifying /etc/exports using exportfs. exportfs and it's partner program mountd work in one of two modes, a legacy mode which applies to 2.4 and earlier versions of the Linux kernel, and a new mode which applies to 2.6 and later versions providing the nfsd virtual filesystem has been mounted at /proc/fs/nfsd or /proc/fs/nfs. If this filesystem is not mounted in 2.6, the legacy mode is used. In the new mode, exportfs does not give any information to the kernel but only provides it to mountd through the /var/lib/nfs/xtab file. mountd will listen to requests from the kernel and will provide information as needed. In the legacy mode, any export requests which identify a specific host (rather than a subnet or netgroup etc) are entered directly into the kernel's export table as well as being written to /var/lib/nfs/xtab. Further, any mount points listed in /var/lib/nfs/rmtab which match a non host-specific export request will cause an appropriate export entry for the host given in rmtab to be entered into the kernel's export table.
OPTIONS

-a
Export or unexport all directories.
-o options,...
Specify a list of export options in the same manner as in exports(5).
-i
Ignore the /etc/exports file, so that only default options and options given on the command line are used.
-r
Reexport all directories. It synchronizes /var/lib/nfs/xtab with /etc/exports. It removes entries in /var/lib/nfs/xtab which are deleted from /etc/exports, and remove any entries from the kernel export table which are no longer valid.
-u
Unexport one or more directories.
-f
In 'new' mode, flush everything out of the kernels export table. Any clients that are active will get new entries added by mountd when they make their next request.
-v
Be verbose. When exporting or unexporting, show what's going on. When displaying the current export list, also display the list of export options.


DISCUSSION

Exporting Directories
The first synopsis shows how to invoke the command when adding new entries to the export table. When using exportfs -a, all directories in exports(5) are added to xtab and the resulting list is pushed into the kernel. The host:/path argument specifies the directory to export along with the host or hosts to export it to. All formats described in exports(5) are supported; to export a directory to the world, simply specify :/path. The export options for a particular host/directory pair derive from several sources. There is a set of default options which can be overridden by entries in /etc/exports (unless the -i option is given). In addition, the administrator may overide any options from these sources using the -o argument which takes a comma-separated list of options in the same fashion as one would specify them in exports(5). Thus, exportfs can also be used to modify the export options of an already exported directory. Modifications of the kernel export table used by nfsd(8) take place immediately after parsing the command line and updating the xtab file. The default export options are sync,ro,root_squash,no_delay.
Just a few useful links;

SlackwareŽ Essentials
SlackwareŽ Basics
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

The above links and others can be found at 'Slackware-Links' . More than just SlackwareŽ links!
 
1 members found this post helpful.
Old 05-14-2010, 06:17 AM   #4
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167
Blog Entries: 4

Original Poster
Rep: Reputation: 16
Cool Export directory

Hye,

I'm newbi, sorry for having trouble for such a simple question,
I just want the command line I need to export from my Slackware :

192.168.1.30:/home/njb/ASRock
to my other computer with ubuntu in the LAN
192.168.1.29:/media/ASRock

This is what I put in my /etc/exports file
/home/njb/ASRock

:-) NjB )

Last edited by njb; 05-14-2010 at 06:19 AM.
 
Old 05-14-2010, 06:24 AM   #5
ajeetsinghraina
Member
 
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155

Rep: Reputation: 55
Let me help you with the same:

Code:
just want the command line I need to export from my Slackware :

192.168.1.30:/home/njb/ASRock
to my other computer with ubuntu in the LAN
192.168.1.29:/media/ASRock
On Your NFS Server(192.168.1.30)

Edit the file:
Code:
#cat /etc/exports

/home/njb/ASRock 192.168.1.29(rw,no_root_sync)
Start the NFS Service.

On Your NFS Client (192.168.1.29)

1. Start the portmap service
2. showmount -e 192.168.1.30

and check if directory is shared correctly or not.

Last edited by ajeetsinghraina; 05-14-2010 at 06:28 AM.
 
1 members found this post helpful.
Old 05-14-2010, 06:35 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,714
Blog Entries: 27

Rep: Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057
Hi,

Quote:
Originally Posted by njb View Post
Hye,

I'm newbi, sorry for having trouble for such a simple question,
I just want the command line I need to export from my Slackware :

192.168.1.30:/home/njb/ASRock
to my other computer with ubuntu in the LAN
192.168.1.29:/media/ASRock

This is what I put in my /etc/exports file
/home/njb/ASRock

:-) NjB )
What part of the 'man exportfs' excerpt that you don't understand?

Code:
~# exportfs -a
or
~#exportfs -ra
You already stated that '/etc/exports' had been modified. If you don't want that route then use one of the following formats;
Code:
/usr/sbin/exportfs [-avi] [-o options,..] [client:/path ..]
/usr/sbin/exportfs -r [-v]
/usr/sbin/exportfs [-av] -u [client:/path ..]
/usr/sbin/exportfs [-v]
/usr/sbin/exportfs -f
Look at the options for the command within the 'man exportfs'.


Just a few more useful links;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
1 members found this post helpful.
Old 05-16-2010, 03:07 PM   #7
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167
Blog Entries: 4

Original Poster
Rep: Reputation: 16
Talking NFS and SLACKWARE

Hello,

Finally I succeded.
In other distros it was simpler but with Slack you need to understand Linux, and that I like it.

In my slackware server :
in /etc/exports file
indication about directory to export and destination
/home/njb/ASRock 192.168.1.29(rw)

In my ubuntu client :
in /etc/fstab file
indication about source server directory and destination mount directory.
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

If it doesn't work immediately then

In the Server
start the mount and nfs deamons
type in a terminal
#/user/sbin/rpc.mountd
#/user/sbin/rpc.nfsd
just to be sure deamon has started
#rpcinfo -p

And in the client
eventually mount manually the directory with command
sudo mount 192.168.1.30:/home/njb/ASRock /media/ASRock

I want to thank onebuck for the precious links he gave me.
Also want to thank ajeetsinghraina for the command lines.

THE LINK was definitely the linuxselfhelp.com

:-) NjB )
 
Old 05-21-2010, 12:23 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,106

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
an asrock (atom 330 i presume ?) huh.
how do you like ? (i have the revo-3610)
it works decent for an htpc using xbmc (i connect to it using sshfs)
what do you use yours for ?
 
Old 05-21-2010, 01:46 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,714
Blog Entries: 27

Rep: Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057
Hi,

@OP

Glad to hear things are good to go!
 
Old 05-22-2010, 07:03 AM   #10
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167
Blog Entries: 4

Original Poster
Rep: Reputation: 16
Red face A Client Serveur Home Cinema Network System

Quote:
Originally Posted by schneidz View Post
an asrock (atom 330 i presume ?) huh.
how do you like ? (i have the revo-3610)
it works decent for an htpc using xbmc (i connect to it using sshfs)
what do you use yours for ?
+++

I use it as a home PC with Slackware OS.
Can't support these noisy towers with core2quad not for a home need.
I know the revo 3610, it's an elegant thinclient with HDMI connector.
You know my dream is to aquire a linutop 3, ideal for my needs.

My conception of computing at home is comfort and silence.
The ASRock the Revo or the Linutop 3 is the best for a home need.

But important is the wireless mouse and keyboard
And a very good quality monitor minimum 22"

The data's should be in an external file and web server
Personally I use a Synology DS107 (1 To HDD) wish is very useful home server with HTTP management.
I simply make an NFS mount of the files from the server in my PC as I don't store locally my multimedia files.

The WD TV Live is a linux based HD Box that make the connexion between the file-server an the HD TV. It's a good client for an HD File-server like Synology.And it scan by the way all the LAN.

;-) NjB )

Last edited by njb; 05-22-2010 at 07:05 AM.
 
  


Reply


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 server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 02:08 PM
LXer: Run your NFS server in the user address space with NFS-GANESHA LXer Syndicated Linux News 0 11-27-2008 04:40 AM
SOLVED -- NFS server waits very long time to start jlinkels Linux - Networking 1 08-14-2007 08:04 AM
Very Slow Exporting during NFS Start / Many NFS Problems VorlonInfoTech Linux - Networking 3 06-28-2006 06:48 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM


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