how manually create an nfs share

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
User avatar
alienheartbeat
Posts: 22
Joined: Fri Feb 15, 2013 6:59 am
Location: Hong Kong
Contact:

how manually create an nfs share

Post by alienheartbeat »

[using 1.5.10 on Netgear wndr3800)

Am trying to workaround the problem of 1Tb disks not mounting,
http://www.gargoyle-router.com/phpbb/vi ... f=6&t=4577

So I am trying to manually create an nfs share.

So I connect the 1Tb hdd, manually mount it to /mnt/mcnfs, no problem:

Code: Select all

mount -v -t ext3 /dev/sda1 /mnt/mcnfs
I update the /etc/exports file to:

Code: Select all

/mnt/mcnfs      192.168.112.114(rw,sync,secure,no_subtree_check,root_squash,anongid=0,anonuid=0,fsid=1890661c-c256-45f9-9a27-b2d4b5f8a659)
Then when I try to /etc/init.d/nfsd start
I get exportfs messages:

Code: Select all

exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 2 (No such file or directory)
exportfs: can't lock /var/lib/nfs/etab for writing
exportfs: could not open /var/lib/nfs/.xtab.lock for locking: errno 2 (No such file or directory)
exportfs: can't lock /var/lib/nfs/xtab for writing
The dir /var/lib does not even exist on gargoyle 1.5.10.

What have I missed here? On a std Lx distribution these should work.

thanks
http://alien-heartbeat.com

User avatar
alienheartbeat
Posts: 22
Joined: Fri Feb 15, 2013 6:59 am
Location: Hong Kong
Contact:

Re: how manually create an nfs share

Post by alienheartbeat »

succeeded in manualy creating the nfs share on a manually mounted disk.

BUT - a gotcha:

On a reboot, the gui overwrites my /etc/exports and /var/lib/nfs/etab settings.

Groan. giving up.
http://alien-heartbeat.com

Post Reply