Sparemint, DHCP and Mounting NFS shares

Hardware, coding, music, graphic and various applications

Moderators: Mug UK, moondog/.tSCc., lp, [ProToS], Moderator Team

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Sparemint, DHCP and Mounting NFS shares

Postby mzry » Tue Mar 27, 2018 9:26 am

(edited my original post so it is less confusing)

Hey guys,

I'm trying to mount an NFS share with /etc/fstab on my Easymint Sparemint installation.

But I get this error on boot:

mount request failed with 13
mount_nfs: could not do nfs mount

A quick google search makes me think 13 means 'Permission denied'

My fstab says:

10.1.1.100:/share /nfs/share nfs 1024 10

Any ideas? Thx
Last edited by mzry on Wed Mar 28, 2018 3:44 am, edited 3 times in total.

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12302
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby wongck » Tue Mar 27, 2018 2:37 pm

it's been sometime for me.
Look at your /etc/rc.d folder and see if your rc.net runs rc.nfs. it should.
your rc.net should run dhclient (dhcp) before running rc.nfs.
The entire control logic for mounting nfs at boot time is in rc.nfs.
My Stuff: FB/Falcon CT63/CTPCI+ATI+RTL8139+USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Tue Mar 27, 2018 3:40 pm

Thanks so much, I'll check this straight away!

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Tue Mar 27, 2018 3:51 pm

Okay, it seems you are correct. I am getting:
mount request failed with 13
mount_nfs: could not do nfs mount

I will research this more.

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Tue Mar 27, 2018 3:56 pm

Seems that simonsunnyboy had the same problem, but then he said he solved it by this:

"Yay, it worked now! Seems it was a combination of setting /etc/exports on the Linux host and the right mount_nfs commandline. I simply took the one from wongk and filled in my host IP and a target directory.

I can now browse u:\nfs\share properly - copy files and i could even directly open a shared Degas picture on the nfs shrae itself."

But I don't understand his answer. I am using a Seagate NAS as the nfs server which works for my linux installations.

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Tue Mar 27, 2018 3:57 pm

UPDATE: Almost there!

I found out that on my NAS, the path starts with /shares/. So by adding this allowed the mount to happen successfully. But now If I go into the nfs folder on my Atari, and double click the share I mounted 'sgnaspro' it comes up with 'Access denied. Item is protected or it already exists'. I'll attach a picture. The icon of the folder also does not look like a folder. Looks more like a file.

IMG_20180328_151615.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by mzry on Wed Mar 28, 2018 4:54 am, edited 1 time in total.

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12302
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby wongck » Wed Mar 28, 2018 4:51 am

I think its the Linux side.
Look at the posting from Latz : viewtopic.php?f=27&t=21328&hilit=it+worked+now%21+Seems+it+was+a+combination+of+setting#p189716

You may need to do a proper /etc/export .

Ok, on your NAS, I have no idea how to do that.... may be set anonymous access??
My Stuff: FB/Falcon CT63/CTPCI+ATI+RTL8139+USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Wed Mar 28, 2018 4:57 am

I think the problem is on the Atari / Mint side now, since it seems to have properly mounted it. I just don't know why it won't let me 'inside' the folder.

I found this thread on Atariage, but they never found a solution from what I can see. Oddly this guy could browse the shares, he only got this message when he tried to write something.
http://atariage.com/forums/topic/110892 ... e-in-mint/

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 5001
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby simonsunnyboy » Wed Mar 28, 2018 5:55 am

I can only reiterate from my German blog post (http://www.final-memory.org/?p=2156), no warranty attached.

/etc/exports on PC for sharing into the given local network with special user and group id mapping

Code: Select all

/path/to/share 192.168.1.0/255.255.255.0(rw,sync,no_subtree_check,all_squash,anonuid=1001,anongid=1001)


/etc/hosts.allow on PC (allowing Falcon IP to access the services)

Code: Select all

ALL:192.168.1.200


On the Falcon, mount command:

Code: Select all

mount_nfs -v -o rw,rsize=1024,wsize=1024,retrans=10 <PC-IP>:/<path_to_folder> /nfs/<folder>


And it was so much hazzle that I don't really use NFS anymore. uip-tool is enough for most of my needs by now.
Simon Sunnyboy/Paradize - http://paradize.atari.org/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12302
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby wongck » Wed Mar 28, 2018 3:27 pm

simonsunnyboy wrote:I can only reiterate from my German blog post (http://www.final-memory.org/?p=2156), no warranty attached.


Nice write up. :thumbs:
My Stuff: FB/Falcon CT63/CTPCI+ATI+RTL8139+USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Thu Mar 29, 2018 12:45 am

Right now I'm trying to work out how to edit exports on my Seagate NAS (which is the NFS server) I can manage to SSH into it but for some reason it doesn't have nano or vim for editing files. And I'm not aware of anything else.

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12302
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby wongck » Thu Mar 29, 2018 5:03 am

mzry wrote:Right now I'm trying to work out how to edit exports on my Seagate NAS (which is the NFS server) I can manage to SSH into it but for some reason it doesn't have nano or vim for editing files. And I'm not aware of anything else.


it's probably a minimum installation to save storage space.
you can always create a text file simply by echo and file redirection.
My Stuff: FB/Falcon CT63/CTPCI+ATI+RTL8139+USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

jury
Captain Atari
Captain Atari
Posts: 266
Joined: Tue Sep 21, 2004 11:11 am
Location: Poland

Re: Sparemint, DHCP and Mounting NFS shares

Postby jury » Thu Mar 29, 2018 5:40 am

mzry wrote: it doesn't have nano or vim for editing files. And I'm not aware of anything else.

Maybe vi is available.

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Thu Mar 29, 2018 6:08 am

Okay. Thanks Jury, Vi was there. I added the export exactly as shown above, still the same issue inside Mint. Cannot open, item is protected.

PS - Just for precaution, I also tried doing this in VanillaMint (A whole new install) not using fstab but using an exec line in mint.cnf. Same result :( Oh and I also tried Jinnee instead of Teradesk to eliminate that :(

And yet my Linux systems are having no issues mounting an NFS share from my nas.

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12302
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby wongck » Thu Mar 29, 2018 8:42 am

mzry wrote:And yet my Linux systems are having no issues mounting an NFS share from my nas.

Could be a version issue?
My Stuff: FB/Falcon CT63/CTPCI+ATI+RTL8139+USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
Neurotoxic
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 107
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby Neurotoxic » Thu Mar 29, 2018 9:55 am

mzry wrote:Okay. Thanks Jury, Vi was there. I added the export exactly as shown above, still the same issue inside Mint. Cannot open, item is protected.


I'm not sure if my hint is helpful but take a look at the access rights of the shared folders and the data inside. The user on the Atari side (e. g. "nobody") must have the right to read data or to write data on the nas side. So the access rights must match.

Here is the content of the "exports" file I'm using on my PowerMac G5 (Mac OS 10.5.eight):

Code: Select all

/Volumes/Daten/Music -ro -mapall=nobody -alldirs -network 192.168.2.0 -mask 255.255.255.0
/Volumes/Filme/Filme -ro -mapall=nobody -alldirs -network 192.168.2.0 -mask 255.255.255.0
/Volumes/Daten/Transfer -rw -mapall=nobody -alldirs -network 192.168.2.0 -mask 255.255.255.0


That's working very well with Mint 1.19.x, 1.18.0 and 1.17.0. Here's the content of the "fstab" file I'm using on my Milan:

Code: Select all

c   /   dos   root   wheel   700
d   /   ext2   root   wheel   777
e   /   dos   root   wheel   700
192.168.2.201:/Volumes/Daten/Music /nfs/Musik nfs 2048 10
192.168.2.201:/Volumes/Daten/Transfer /nfs/Transfer nfs 2048 10
192.168.2.201:/Volumes/Filme/Filme /nfs/Filme nfs 2048 10


If it doesn't want to work you might try the Atari as the nfs server. Perhaps it will work in that direction. :)
Last edited by Neurotoxic on Thu Mar 29, 2018 11:42 am, edited 1 time in total.
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 5001
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby simonsunnyboy » Thu Mar 29, 2018 10:21 am

That was why my configuration specifies anonuid=1001,anongid=1001 to select certain logins on the NFS host.
Simon Sunnyboy/Paradize - http://paradize.atari.org/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

mzry
Captain Atari
Captain Atari
Posts: 376
Joined: Tue Jan 26, 2016 12:39 pm

Re: Sparemint, DHCP and Mounting NFS shares

Postby mzry » Thu Mar 29, 2018 11:03 am

Hmmm. My NAS reverted its exports back to normal, even though I DEFINITELY saved the edits last time. I used sudo, I even opened it back up to check. But upon restarting the NAS, it went back.. odd.

Anyways I'll paste my exports from my NAS:
/shares/atari *(rw,hide,no_subtree_check,insecure,hide,async,root_squash,secure_locks,no_wdelay,anonuid=65534,anongid=65534)

I wonder if these settings are 'anti atari'. I don't understand most of this jargon.

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12302
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: Sparemint, DHCP and Mounting NFS shares

Postby wongck » Thu Mar 29, 2018 12:07 pm

Not sure if your SSH can go to the actual folder where the folders/files are.
If it is possible, try running

Code: Select all

chmod -R go+rx *

This will give world access on all file and folders.
My Stuff: FB/Falcon CT63/CTPCI+ATI+RTL8139+USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list


Social Media

     

Return to “Professionals”

Who is online

Users browsing this forum: No registered users and 2 guests