Beaglebone NFS mount

hello folks. veteran developer, new to BeagleBone and Linux internals.

I'm trying to configure my BeagleBone so that I can mount it on my
Ubuntu development system via NFS. So far I've had no luck. I found
some 4 year old info on how to do this but it no longer works.

A quick instruction or a pointer to an article would be most appreciated.

Thanks
John

_______________________________________
From: beagleboard@googlegroups.com [beagleboard@googlegroups.com] on behalf of NeonJohn [jgd@neon-john.com]
Sent: Saturday, February 02, 2013 6:24 PM
To: beagleboard@googlegroups.com
Subject: [beagleboard] Beaglebone NFS mount

hello folks. veteran developer, new to BeagleBone and Linux internals.

I'm trying to configure my BeagleBone so that I can mount it on my
Ubuntu development system via NFS. So far I've had no luck. I found
some 4 year old info on how to do this but it no longer works.

A quick instruction or a pointer to an article would be most appreciated.

Thanks
John

--
John DeArmond
Tellico Plains, Occupied TN
http://www.fluxeon.com <-- THE source for induction heaters
http://www.neon-john.com <-- email from here
http://www.johndearmond.com <-- Best damned Blog on the net
PGP key: wwwkeys.pgp.net: BCB68D77

I think Andrey Nech is the author of this. For the BeagleBoard but it should work for the BeagleBone as well:

Thanks Gregory. I found that in my searching and it works fine but it's
the wrong direction. I want to mount the BeagleBoard on my desktop so I
can use my normal desktop tools including the quad core processor to run
the cross-compiler. IOW I wan the server to be running on the BB.

I found some instructions from 2009 that involved installing a package
called nfs-tools or something like that. The package no longer exists.
I can't find anything modern on setting up a server on the Angstrom
distribution that came with the board.

I looked at Arch Linux for the BB. It has the server but it had so many
problem with dependencies (couldn't even install gcc) that I gave up.

Any further help would be most appreciated.

John

________________________________________
From: beagleboard@googlegroups.com [beagleboard@googlegroups.com] on behalf of NeonJohn [jgd@neon-john.com]
Sent: Sunday, February 03, 2013 2:32 PM
To: beagleboard@googlegroups.com
Subject: Re: [beagleboard] Beaglebone NFS mount

[snip]

Thanks Gregory. I found that in my searching and it works fine but it's
the wrong direction. I want to mount the BeagleBoard on my desktop so I
can use my normal desktop tools including the quad core processor to run
the cross-compiler. IOW I wan the server to be running on the BB.

I found some instructions from 2009 that involved installing a package
called nfs-tools or something like that. The package no longer exists.
I can't find anything modern on setting up a server on the Angstrom
distribution that came with the board.

I looked at Arch Linux for the BB. It has the server but it had so many
problem with dependencies (couldn't even install gcc) that I gave up.

Any further help would be most appreciated.

John

--
John DeArmond
Tellico Plains, Occupied TN

root@beaglebone:~# opkg install nfs-utils
Installing nfs-utils (1.2.3-r3) to root...
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/nfs-utils_1.2.3-r3_armv7a.ipk.
Installing libnfsidmap0 (0.24-r0) to root...
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/libnfsidmap0_0.24-r0_armv7a.ipk.
Installing portmap (6.0-r7) to root...
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/portmap_6.0-r7_armv7a.ipk.
Configuring portmap.
Adding system startup for /etc/init.d/portmap.
Configuring libnfsidmap0.
Configuring nfs-utils.
Adding system startup for /etc/init.d/nfsserver.
root@beaglebone:~# echo "/mnt 192.168.0.0/255.255.255.0(rw)" > /etc/exports
root@beaglebone:~# /etc/init.d/portmap start
Starting portmap daemon...
root@beaglebone:~# /etc/init.d/nfsserver start
creating NFS state directory: done
starting 8 nfsd kernel threads: done
starting mountd: done
starting statd: done
root@beaglebone:~# showmount -e localhost
Export list for localhost:
/mnt 192.168.51.0/255.255.255.0

That didn't work again.

Then it dawned on me. Duh. I hadn't updated my package list from what
came with the distribution.

A quick

# opkg update

And all was well.

So a note to all you other BeagleBone noobs. Do an "opkg update" first
thing right out of the box.

Gregory, can't thank you enough.

John

I followed Gregory’s instructions (with the opkg update), and can’t seem to access the /mnt drive on my BBB from my ubuntu machine (12.04 running on VMWare). I installed nfs-common on ubuntu and am have messed around with the mount command, but am always getting the same output:

$ sudo mount -v -t nfs 172.16.2.50:/mnt /nfs
mount.nfs: timeout set for Wed Sep 18 11:40:49 2013
mount.nfs: trying text-based options ‘vers=4,addr=172.16.2.50,clientaddr=172.16.2.56’
mount.nfs: mount(2): Connection refused

My /etc/exports file is:
/mnt 172.16.2.0/255.255.255.0(rw)

I have also tried connecting beaglebone to beaglebone and haven’t had any luck there either. The command I’m using there is:
busybox mount -t nfs 172.16.2.50:/mnt /mnt

and it comes back with:

mount: 172.16.2.50:/home/admin failed, reason given by server: Permission denied

Any help you could offer would be greatly appreciated!
Thanks!