LinuxQuestions.org
Visit Jeremy's Blog.
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 09-12-2006, 11:26 AM   #1
Robeasts
Member
 
Registered: Dec 2005
Distribution: Ubuntu 6.10, Simply MEPIS 6.0
Posts: 35

Rep: Reputation: 15
Trouble mounting files using nfs


I am having trouble mounting a network share from a linux server. Here is what I have done --

I added a line to the /etc/fstab file that looks like this:
192.168.xxx.xxx:/export/home/someuser /home/someuser/folder nfs rw,user,noauto 0 0

Then I went to the terminal and type:
mount /home/someuser/folder
--I didn't switch to root

I then typed:
mount -l

Here is what was displayed:
192.168.xxx.xxx:/export/home/someuser on /home/someuser/folder type nfs (rw,noexec, nosuid,nodev,addr=192.168.xxx.xxx,user=someuser)

I know by the user=someuser part that the correct username is being provided. I thought since it is using the username, that it would provide that user's password, which should give me access. Although when I click on the folder it tells me that I don't have permission.

Thanks in advance for any help.
 
Old 09-13-2006, 05:11 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
what is in your /etc/exports
can you show them here?
 
Old 09-14-2006, 01:59 AM   #3
senthilrjj
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
Steps to mount NFS Share...

Please do the following steps in sequence,

To be done in the machine in which you have created the share.

1. Create a folder in the server (Linux Server) which you want to share with the other linux machine. say it as 'myshare'
2. Include the following entry in the /etc/exports file

/myshare <ip address of the linux machine>(rw,sync)

** rw - read/write
** sync/async -- synchronous / asynchronous communication

3. Execute the following command
exportfs -a
exportfs -v (will list all the share entered in the file)
4. Start the following services
Command to start NFS Service

service nfs start/stop/restart
service portmap start

Configuration to be done in the client machine

1. start the portmap service as said above.
2. Create a folder (sharemnt)and set the appropriate permission (RWX - 777 or 755 etc using chmod command)
3. Type the following command to mount the share to the local folder

mount <IP address of the server>:/myshare /sharemnt/

Now you will be able to access the nfs share.
 
  


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 Mounting Riddick Linux - Networking 2 10-21-2005 02:19 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
nfs mounting vic Linux - Networking 4 11-19-2004 02:27 PM
NFS mounting RH 7.3 suchi Linux - Networking 0 11-18-2003 05:41 AM
nfs mounting chrismiceli Linux - Networking 1 06-07-2003 07:48 PM


All times are GMT -5. The time now is 03:59 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