Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 04:08 PM.
Reason: Title Changing
excerpt from 'man exportfs';
exportfs - maintain list of NFS exported file systems
/usr/sbin/exportfs [-avi] [-o options,..] [client:/path ..]
/usr/sbin/exportfs -r [-v]
/usr/sbin/exportfs [-av] -u [client:/path ..]
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.
Export or unexport all directories.
Specify a list of export options in the same manner as in exports(5).
Ignore the /etc/exports file, so that only default options and options given on the command line are used.
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.
Unexport one or more directories.
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.
Be verbose. When exporting or unexporting, show what's going on. When displaying the current export list, also display the list of export options.
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.
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
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
just to be sure deamon has started
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.
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.