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