LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2014, 07:05 PM   #1
C5 Hardtop
LQ Newbie
 
Registered: Jul 2013
Location: At Home
Distribution: Debian
Posts: 6

Rep: Reputation: Disabled
Need help with file sharing issue (nfs)


Would you help me with file sharing? I'll start with what I need to do, an overview of the configuration, what I did and close with where I'm at.

I need to copy files from my laptop to my desktop(name:evroute) over an ethernet patch cable. The desktop is running jessie, the laptop is running OS X Mavericks->Virtual Box->jessie (name:debian). Both linux installs are within the last week of the latest testing amd64 at that time.

Try #1 was a tutorial using smb and samba (I'm converting from Windows). I couldn't get this to work and gave up after 3-4 hours.

Try #2 a tutorial linked from debian.org->wiki->networking->file sharing->NFS and a link from that page.. After 4 hrs this morning I gave up. It wouldn't work. Following the troubleshooting for given Permission Denied error when mounting the share on the laptop didn't resolve the issue.

Try #3 nfs4 tutorial (3rd party). This failed after 2 hours of futzing this afternoon. The error is mount.nfs: mount(2): Operation not permitted.

I want to share /hd on the PC with read and write permissions for root and/or joel on the laptop. /hd is a RAID volume mount point.

The PC configuration:
/etc/defaults/nfs-common
NEED_IDMAPD=YES

/etc/exports
/hd 10.0.2.15(rw,no_root_squash,no_subtree_check,sync)
/hd 192.168.2.1(rw,no_root_squash,no_subtree_check,sync)

/proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
no lines here (empty)

root@evroute:/# exportfs -rav
exporting 10.0.2.15:/hd
exporting 192.168.2.1:/hd

when I try to mount on the laptop, I get:
root@debian:/# mount.nfs4 -v 192.168.2.2:/hd /evroute
mount.nfs4: timeout set for Tue Jun 3 14:41:10 2014
mount.nfs4: trying text-based options 'addr=192.168.2.2,clientaddr=10.0.2.15'
mount.nfs4: mount(2): Operation not permitted
mount.nfs4: Operation not permitted
root@debian:/# mount -v 192.168.2.2:/hd /evroute
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Tue Jun 3 14:41:41 2014
mount.nfs: trying text-based options 'vers=4,addr=192.168.2.2,clientaddr=10.0.2.15'
mount.nfs: mount(2): Operation not permitted
mount.nfs: trying text-based options 'addr=192.168.2.2'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: portmap query retrying: RPC: Program not registered
mount.nfs: prog 100003, trying vers=3, prot=17
mount.nfs: portmap query failed: RPC: Program not registered
mount.nfs: requested NFS version or transport protocol is not supported
root@debian:/#


I have rebooted after running exportfs and the content of /proc/fs/nfs/exports is blank. Is that a problem?

when I type who in an ssh terminal from jessie (vm) to the pc (192.168.2.2) it shows my laptop IP as 192.168.2.1
 
Old 06-04-2014, 07:38 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
as you have OSx in the mix you need to add the insecure flag to your exports. do a search on these forums for NFS with my user name. i have both my exports and mount commands for how to deal with it out there someplace.

also keep in mind that OSx can not mount NFSv4, it still uses NFSv3
 
  


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
Windows 2k8 NFS sharing issue with linux ganesh24pal@gmail.com Linux - Server 11 11-08-2013 02:58 AM
NFS - File Sharing Muneerulla Linux - Software 1 05-12-2013 01:40 PM
File sharing (NFS) - how ? moljac024 Linux - Networking 4 11-24-2007 05:57 PM
File Sharing Through NFS stfusonxxxx Linux - Newbie 7 11-08-2007 08:34 AM
File Sharing with NFS graystarr Linux - Networking 1 01-14-2002 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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