NFS only mounting as read-only?
#1
NFS only mounting as read-only?
Hey guys,

I've been trawling the internet to try and find answers but everything I try doesn't work, so I'll ask here! It might be a quirk of Irix. I can mount the folder but it is read only, I just get 'permission denied' when trying to write from my Linux machine.

I am trying to:
* Share /Desktop/Downloads on my Octane via NFS
* Mount the SGI /Desktop/Downloads on my Arch Linux machine
The IP of my Linux: 192.168.0.77
The IP of my SGI: 192.168.0.72

Here is my /etc/exports for Irix:
/Desktop/Downloads -rw=192.168.0.77

Here is my /etc/fstab for Linux:
192.168.0.72:/Desktop/Downloads   /mnt/sgi   nfs   defaults,rw,timeo=900,retrans=5,_netdev    0 0

When accessing /mnt/sgi on my Linux machine, the contents do show up, but I cannot write or make files/folders. When checking permissions they say root/root in the terminal.

showmount -e 192.168.0.72
Export list for 192.168.0.72:
/export/opt/       (everyone)
/Desktop/Downloads (everyone)
^ when checking with the showmount command on Linux


Any ideas out there? Thanks Smile
(This post was last modified: 05-26-2019, 08:43 PM by stormy.)
stormy
Atari expert!

Trade Count: (1)
Posts: 180
Threads: 34
Joined: May 2019
Location: UK
Find Reply
05-26-2019, 06:10 PM
#2
RE: NFS only mounting as read-only?
I went the other way in setting up my linux box (raspi) as the server and my Octane / O2 as the client. The Raspi is always on hence setting it as the server. I can then also push stuff to it from my daily desktop / laptop.

My server /etc/exports is

/mnt/share 192.168.2.0/24(rw,sync,no_root_squash,no_subtree_check)

I simply mount on the Irix side with

mount -t nfs <server> /mnt/<mount location>

No longer active. Please do not contact me.
Jacques
Tezro

Trade Count: (0)
Posts: 565
Threads: 53
Joined: May 2018
Location: UK
Find Reply
05-26-2019, 06:23 PM
#3
RE: NFS only mounting as read-only?
Yeah I guess I will try it the other way around like you, by the way does 192.168.2.0/24 give it an ip range between 0-24 I assume? Thanks
stormy
Atari expert!

Trade Count: (1)
Posts: 180
Threads: 34
Joined: May 2019
Location: UK
Find Reply
05-26-2019, 06:35 PM
#4
RE: NFS only mounting as read-only?
Mounting the other way round works for me. I managed to get a working NFS client on Windows which works well, I then treat my SGI machines as clients - works well (so far)!

Indigo2 R10000/IMPACT  R10000 195MHz, 384MB RAM, MaxIMPACT (1MB), 36GB 15k & 300GB 10k drives, new/quiet fans, 100Mb G160 NIC, IRIX 6.5.22&
[Image: Fuelb.png] R14000 600MHz, 4GB RAM, V10 Graphics, 72GB 15k & 300GB 10k drives, new/quiet fans, 1Gb NIC, IRIX 6.5.30
O2  in storage...
Trippynet
Indigo2 IMPACT

Trade Count: (0)
Posts: 304
Threads: 7
Joined: Dec 2017
Find Reply
05-26-2019, 07:00 PM
#5
RE: NFS only mounting as read-only?
I guess the only annoying issue for this is having to type in that command to enable sharing. Or add it to the sgi fstab - although I did have an incident on my sgi where fstab got stuck when it couldn't access a server. I had to log in as single user mode and vim the fstab which was bloody difficult.
stormy
Atari expert!

Trade Count: (1)
Posts: 180
Threads: 34
Joined: May 2019
Location: UK
Find Reply
05-26-2019, 07:25 PM
#6
RE: NFS only mounting as read-only?
I believe /24 allows anything on that subnet to be accessed? I followed a guide...Hmm...

I've set my Octane to mount the nfs mount point in the fstab.

Code:
EdnaMode.home:/mnt/share /mnt/EdnaMode nfs rw,bg 0 0

I believe 'bg' pushes the mount process into background mode so that if it fails during boot it doesn't bring the machine to a grinding halt.

No longer active. Please do not contact me.
(This post was last modified: 05-26-2019, 07:42 PM by Jacques.)
Jacques
Tezro

Trade Count: (0)
Posts: 565
Threads: 53
Joined: May 2018
Location: UK
Find Reply
05-26-2019, 07:35 PM
#7
RE: NFS only mounting as read-only?
Thanks guys but I'm going to have to give up ;(

I've spent my entire Sunday trying different methods but I can't get the SGI to connect to any NFS share whether it is on my NAS or on my Linux box. I easily enabled v3 NFS on my NAS with its inbuilt menu system then mounted it on my Linux machine no problem... but trying on the SGI it just sits there and retries forever.

Right now I think there must be some issue with my SGI's configuration that I'm not aware of.
stormy
Atari expert!

Trade Count: (1)
Posts: 180
Threads: 34
Joined: May 2019
Location: UK
Find Reply
05-26-2019, 08:40 PM
#8
RE: NFS only mounting as read-only?
(05-26-2019, 06:35 PM)mzry Wrote:  Yeah I guess I will try it the other way around like you, by the way does 192.168.2.0/24 give it an ip range between 0-24 I assume? Thanks
The /24 stands for 24 bits for the net, with remaining 8 bit for the host. 8 bits give us 256 valurs, but we need to subtract broacast and net. So this leaves us with 254 valurs.

Or to make it short: 192.168.2.1 up to 192.168.2.254
So essentially the whole available rnage in this case.

Regarding the mounting on Linux: Try adding vers=3 to your mount options.

I hope that this helped!

Octane2 Dual 400 MHz R12k - 2 GB RAM - Dual 73 GB HDD - vPro v12 - IRIX 6.5.30
O2 400 MHz R12k - 512 MB RAM - 73 GB HDD - Video-In - Flatpanelcard+1600SW - IRIX 6.5.30
O2 180 MHz R5k - 128 MB RAM - 18 GB HDD - IRIX 6.5.30
eudatux23
Octane² and O2

Trade Count: (0)
Posts: 64
Threads: 4
Joined: Aug 2018
Location: Düsseldorf, Germany
Website Find Reply
05-27-2019, 05:22 AM
#9
RE: NFS only mounting as read-only?
(05-26-2019, 06:10 PM)mzry Wrote:  Hey guys,

I've been trawling the internet to try and find answers but everything I try doesn't work, so I'll ask here! It might be a quirk of Irix. I can mount the folder but it is read only, I just get 'permission denied' when trying to write from my Linux machine.

I am trying to:
* Share /Desktop/Downloads on my Octane via NFS
* Mount the SGI /Desktop/Downloads on my Arch Linux machine
The IP of my Linux: 192.168.0.77
The IP of my SGI: 192.168.0.72

Here is my /etc/exports for Irix:
/Desktop/Downloads -rw=192.168.0.77

Here is my /etc/fstab for Linux:
192.168.0.72:/Desktop/Downloads   /mnt/sgi   nfs   defaults,rw,timeo=900,retrans=5,_netdev    0 0

When accessing /mnt/sgi on my Linux machine, the contents do show up, but I cannot write or make files/folders. When checking permissions they say root/root in the terminal.

showmount -e 192.168.0.72
Export list for 192.168.0.72:
/export/opt/       (everyone)
/Desktop/Downloads (everyone)
^ when checking with the showmount command on Linux


Any ideas out there? Thanks Smile

Hi Mzry,
Gratz for the Octane, I love mine too, don't use it lately as I'm renovating part of the home so stored it away.

I noticed something when you try to share NFS from your octane, you mount /Desktop/Download on the linux.
On the Octane who owns the directory /Desktop/Download, is it root ?
On the linux side when you mount it, can you check the mount option from either the mount command or the /proc/mounts, it might give indication on what is the issue.
The last thing that comes to mind is that by default the export is "root_squash", this means that root on the server (octane) is not equivalent (or same user) on the client (linux), you might have to export using a "no_root_squash" flag on the octane but I don't remember the irix syntax and can't really check for it.

Hopefully you found a way.
Personally I use the same home directory on the 3 unix/linux machines, the solaris machine serves it, the other two (including the octane) mount my user home directory using NFS, this way I have the same files whether I'm on irix, solaris or linux.
sancho
O2

Trade Count: (0)
Posts: 6
Threads: 1
Joined: Dec 2018
Find Reply
05-28-2019, 10:04 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)