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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've managed to get myself a little more up to speed with nfs.
I've now installed the nfs-kernel-server and the nfs-common packages.
Here's what's happening now.
Code:
pi@berry ~ $ sudo /etc/init.d/nfs-kernel-server start
[....] Exporting directories for NFS kernel daemon...exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.50:/".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
exportfs: / does not support NFS export
. ok
[....] Starting NFS kernel daemon: nfsdrpc.nfsd: address family inet6 not supported by protocol TCP
mountdrpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
. ok
Here's the output of /etc/exports on the server..
Code:
cat: exports: No such file or directory
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/ 192.168.1.50(rw,async)
When I try mount -a on the VM I get..
Code:
deb@debian:~$ sudo mount -a
mount.nfs: access denied by server while mounting 192.168.1.32:/
Here's the output from /etc/fstab on the VM.
Code:
deb@debian:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=47fcdba3-caed-4fc2-88c3-e3aadbe7dcbb / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=4019a1da-86c6-46a3-8558-61e8c33a9dae none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
192.168.1.32:/ /mnt/pi nfs rsize=8192,wsize=8192,timeo=14,intr 0 0
I should point out that I am now trying to mount the root directory of the raspberry pi but the results are the same when I try to mount any folder. I have given each machine a static IP.
Also, Raspbian was installed using BerryBoot (It's a bootloading program that grabs distro's from the net on the fly during installation allowing multiple OS's to exist on the SD card simultaniously)
EDIT/
Just thought I'd try mounting the VM on the pi's file system out of interest. It works flawlessly :/ ??
Last edited by CrinkElite; 11-06-2014 at 09:59 AM.
This may be possible for ext4 - assuming the kernel was configured to allow it.
Exporting root is most insecure, and may be why exportfs is refusing to do it.
BTW, one of the security problems is that it can be used to subvert both systems - you can create devices on the server that bypass the security of the client... The client can mess with system locking as the client doesn't have to enforce locks...
thank you, I will try...
"You also need to have the nfsd server running on the pi and run exportfs -a "
Code:
exportfs -a
By default, access control lists (ACLs) are supported by NFS under Red Hat Enterprise Linux. To disable this feature, specify the no_acl option when exporting the file system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.