NFS share doesn't work in Mint 18 [Solved?]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 4
- Posts: 253
- Joined: Mon Jun 08, 2009 12:34 pm
- Location: Near intersection of I-80 and I-57 in US
NFS share doesn't work in Mint 18 [Solved?]
I have an NFS share on an old server. This particular setup worked fine under Mint 17.X, Under 18, it won't work at all.
This is what I did to install NFS on Mint 18:
sudo apt-get install nfs-common
This installed without a hitch.
Added the following line to /etc/fstab:
mediaserver1:/export/Music /home/napravnt/NFS_Music nfs rsize=8192,wsize=8192,timeo=14,intr
And made the /home/napravnt/NFS_Music directory.
Do I have to do anything different because it's Mint 18?
This is what I did to install NFS on Mint 18:
sudo apt-get install nfs-common
This installed without a hitch.
Added the following line to /etc/fstab:
mediaserver1:/export/Music /home/napravnt/NFS_Music nfs rsize=8192,wsize=8192,timeo=14,intr
And made the /home/napravnt/NFS_Music directory.
Do I have to do anything different because it's Mint 18?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Someday, maybe I'll figure out exactly what the hell I'm doing.
Re: NFS share doesn't work in Mint 18
Does mount show your NFS?
(have you mounted it?)
(have you mounted it?)
-
- Level 4
- Posts: 253
- Joined: Mon Jun 08, 2009 12:34 pm
- Location: Near intersection of I-80 and I-57 in US
Re: NFS share doesn't work in Mint 18
Mount show doesn't show it, but the line added to /etc/fstab is supposed to mount it.zanvd wrote:Does mount show your NFS?
(have you mounted it?)
mediaserver1:/export/Music /home/napravnt/NFS_Music nfs rsize=8192,wsize=8192,timeo=14,intr
Someday, maybe I'll figure out exactly what the hell I'm doing.
-
- Level 4
- Posts: 253
- Joined: Mon Jun 08, 2009 12:34 pm
- Location: Near intersection of I-80 and I-57 in US
Re: NFS share doesn't work in Mint 18
One thing that is interesting is that if I click on the Home icon on the Desktop NFS_Music is listed under Network on the lower left side of the window. If I click on it, I get the message "mount: only root can mount mediaserver1:/export/Music on /home/napravnt/NFS_Music"
It's been a while since I set this up, but it was working fine under Mint 17.X, have I forgotten something?
It's been a while since I set this up, but it was working fine under Mint 17.X, have I forgotten something?
Someday, maybe I'll figure out exactly what the hell I'm doing.
Re: NFS share doesn't work in Mint 18
If I recall correctly, you have to execute mount command after adding a line to fstab file.
http://blog.zwiegnet.com/linux-server/m ... inux-mint/
Try executing
http://blog.zwiegnet.com/linux-server/m ... inux-mint/
Try executing
Code: Select all
mount -a
-
- Level 4
- Posts: 253
- Joined: Mon Jun 08, 2009 12:34 pm
- Location: Near intersection of I-80 and I-57 in US
Re: NFS share doesn't work in Mint 18
sudo mount -a works, but the information I have says that it should automount with the line added to /etc/fstab:zanvd wrote:If I recall correctly, you have to execute mount command after adding a line to fstab file.
http://blog.zwiegnet.com/linux-server/m ... inux-mint/
Try executingCode: Select all
mount -a
https://wiki.archlinux.org/index.php/NFSMount using /etc/fstab
Using fstab is useful for a server which is always on, and the NFS shares are available whenever the client boots up. Edit /etc/fstab file, and add an appropriate line reflecting the setup. Again, the server's NFS export root is omitted.
The problem is that this setup works under Mint 17.X
Someday, maybe I'll figure out exactly what the hell I'm doing.
Re: NFS share doesn't work in Mint 18
I haven't used NFS in more than 20 years but what you could try is something that is sometimes used with a cifs ( samba ) fstab mount:sudo mount -a works,
Create a file:
Code: Select all
gksu xed /etc/network/if-up.d/fstab
Code: Select all
#!/bin/sh
mount -a
Code: Select all
sudo chmod +x /etc/network/if-up.d/fstab
systemd ( just like upstart before it ) is supposed to take care of this automatically making this workaround unnecessary but ... erm ... it doesn't seem to always work.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
-
- Level 4
- Posts: 253
- Joined: Mon Jun 08, 2009 12:34 pm
- Location: Near intersection of I-80 and I-57 in US
Re: NFS share doesn't work in Mint 18
Well, that seems to work, but I think maybe I'll reinstall Mint 17.3 until they come out with Mint 18.1 I'm having intermittent boot and shutdown problems also.altair4 wrote:I haven't used NFS in more than 20 years but what you could try is something that is sometimes used with a cifs ( samba ) fstab mount:sudo mount -a works,
Create a file:Add this to it:Code: Select all
gksu xed /etc/network/if-up.d/fstab
Make the file executable:Code: Select all
#!/bin/sh mount -a
It's possible that the line in fstab that tries to connect to the server is executed before the network is "up". Scripts in if-up.d will only run after the network is functional.Code: Select all
sudo chmod +x /etc/network/if-up.d/fstab
systemd ( just like upstart before it ) is supposed to take care of this automatically making this workaround unnecessary but ... erm ... it doesn't seem to always work.
Someday, maybe I'll figure out exactly what the hell I'm doing.
Re: NFS share doesn't work in Mint 18 [Solved?]
The line in /etc/fstab, as you quoted it, is missing the option "users". This option is required to allow 'ordinary' users to mount the share. Without it only root can mount it.
-
- Level 4
- Posts: 253
- Joined: Mon Jun 08, 2009 12:34 pm
- Location: Near intersection of I-80 and I-57 in US
Re: NFS share doesn't work in Mint 18 [Solved?]
I can't find anything about a "users" option, but I have went back to Mint 17.3 and using the same line in /etc/fstab it works just fine. It just doesn't seem to work in Mint 18.mhenatsch wrote:The line in /etc/fstab, as you quoted it, is missing the option "users". This option is required to allow 'ordinary' users to mount the share. Without it only root can mount it.
Someday, maybe I'll figure out exactly what the hell I'm doing.
Re: NFS share doesn't work in Mint 18 [Solved?]
Code: Select all
sudo nano ~/.smbcredentials
- Replace value in quotation marks. Press ctrl + o, hit Enter. Press ctrl + x to exit.
username="username"
password="password" - Change permissions:
Code: Select all
sudo chmod 600 ~/.smbcredentials
- Change ownership for added security:
Code: Select all
sudo chown root .smbcredentials
- Edit fstab:
Code: Select all
sudo nano /etc/fstab
- Replace the values of: IP address, ShareName, ShareDirectory and YourUsername.
Code: Select all
//123.456.7.890/ShareName /media/user/ShareDirectory cifs uid=1000,credentials=/home/YourUsername/.smbcredentials,iocharset=utf8,sec=ntlmssp 0 0
- Mount shares:
Code: Select all
sudo mount -a
nfs-common
. cifs-utils
is already installed.Re: NFS share doesn't work in Mint 18 [Solved?]
** The "users" option does exactly what was described above. It allows every user the ability to mount and unmount the partition. I don't know why you would want to do that in this case since root will mount the share and everything else in fstab anyway. The right to mount something and the right to use something are two different things.timmn1 wrote:I can't find anything about a "users" option, but I have went back to Mint 17.3 and using the same line in /etc/fstab it works just fine. It just doesn't seem to work in Mint 18.mhenatsch wrote:The line in /etc/fstab, as you quoted it, is missing the option "users". This option is required to allow 'ordinary' users to mount the share. Without it only root can mount it.
** The line you have in fstab works in Mint18 it just doesn't work at boot time or else a
sudo mount -a
wouldn't work. There does appear to be some kind of problem with network initialization in Mint18 and maybe Ubuntu 16.04 itself but I can't find the cause.** @matt, There's nothing wrong with your post but the OP is using NFS not CIFS. Unless you are suggesting he replace NFS with CIFS.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: NFS share doesn't work in Mint 18 [Solved?]
timmn1 said that an attempt at manually mounting the share with mount -a failed with "only root can do that" (or to that effect). He was able to sudo mont -a, though. That's why I suggest to include the option "users" in the fstab line. He could just the same include "user" (singular) instead of "users" (plural) if he wants to restrict the right to unmount the share to himself only.I don't know why you would want to do that in this case since root will mount the share and everything else in fstab anyway.
-
- Level 4
- Posts: 253
- Joined: Mon Jun 08, 2009 12:34 pm
- Location: Near intersection of I-80 and I-57 in US
Re: NFS share doesn't work in Mint 18 [Solved?]
There seems to be a lot of problems with Mint 18 and/or Ubuntu 16.04 and that's why I went back to 17.3 On top of the network problems, It had intermittent problems at boot time and also at shutdown. Once it was started, Mint 18 was great, but where I can fix many simple problems, I am far from a Linux guru. I needed this computer to boot and shutdown reliably, and Mint 18 just wasn't doing it.altair4 wrote: ** The line you have in fstab works in Mint18 it just doesn't work at boot time or else asudo mount -a
wouldn't work. There does appear to be some kind of problem with network initialization in Mint18 and maybe Ubuntu 16.04 itself but I can't find the cause.
It could be that all the problems I've been having with Mint 18 are related somehow, but I don't know even where to start.
Someday, maybe I'll figure out exactly what the hell I'm doing.
Re: NFS share doesn't work in Mint 18 [Solved?]
I just experienced this exact problem after my upgrade from 17.3 to 18.
In playing around I discovered two things :
BTW, this spurious bind entry and its related NFS mount entry were:
(the first line wraps, above)
Commenting out this bind entry to a commented got the other network mounts (both cifs and nfs) to work again. Whether the issues is using a bind on an /export mount point or because the bind was on a mount point that wasn't being mounted, I don't know. I rather suspect it might be the former, and this mechanism doesn't seem to be used much anymore. But this is pure, uninformed speculation.
In playing around I discovered two things :
- the swap entries in my fstab still need to appear at the very end of the list - nothing after them mounts - as in Mint 17.x
- a spurious bind entry in my fstab was preventing all network mounts - new to Mint 18
BTW, this spurious bind entry and its related NFS mount entry were:
Code: Select all
#192.168.0.12:/export/dsv /mnt/nfs-x100e nfs rw,_netdev,suid,dev,exec,auto,nouser,noatime,sync,rsize=8192,wsize=8192 0 0
/home/dsv /export/dsv none rw,bind 0 0
Commenting out this bind entry to a commented got the other network mounts (both cifs and nfs) to work again. Whether the issues is using a bind on an /export mount point or because the bind was on a mount point that wasn't being mounted, I don't know. I rather suspect it might be the former, and this mechanism doesn't seem to be used much anymore. But this is pure, uninformed speculation.
Re: NFS share doesn't work in Mint 18 [Solved?]
dsv wrote:the swap entries in my fstab still need to appear at the very end of the list - nothing after them mounts - as in Mint 17.x
That’s interesting. I've never seen that before. I have many entries after the swap entry that mount although none of them are NFS mounts.
Is this unique to NFS mounts? Or unique to Mint perhaps?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: NFS share doesn't work in Mint 18 [Solved?]
Old thread I know, however I wanted to report that I just loaded up a new server with Mint 18 and had the same issue, moving the swap entries to the bottom of /etc/fstab fixed it all up with no other changes to the file I've been using on 16.x/17.x for years...
Re: NFS share doesn't work in Mint 18 [Solved?]
Ive just installed Mint 18 on a laptop and this is the last straw
I cannot believe how buggy the release is.
This doesn't work.
Also I changed window managers and now no matter what I do all the panel apps like the clock and so on keep crashing even though I put the original manager back
secure boot that I never needed to mess with now is a disaster area and prevented me from installing 3rd party drivers and took 3 goes to switch off, and now tells me 'insecure boot' every time I boot.
Reinstalling 17.3...
I cannot believe how buggy the release is.
This doesn't work.
Also I changed window managers and now no matter what I do all the panel apps like the clock and so on keep crashing even though I put the original manager back
secure boot that I never needed to mess with now is a disaster area and prevented me from installing 3rd party drivers and took 3 goes to switch off, and now tells me 'insecure boot' every time I boot.
Reinstalling 17.3...
Re: NFS share doesn't work in Mint 18 [Solved?]
Hi,
During last weekend i ran into a problem which fits into this thread.
Background: i have a total of 5 systems using NFS, 3 are running Mint 17.3
(Intel NUCi3, Lenovo T420 + Fujitsu Lifebook) and 2 are running Mint 18.2
(Lenovo T400 and Lenovo T61). I installed a 6th system (another Lenovo T420)
with Mint 18.2 and prepared the integration into my network by doing the usual
stuff like adding user accounts (for the NFS ) adding nfs-common,
making mount points, etc, etc, Did that dozen times before, we are running
a NFS based "Famlily Network" (thanks god no Windows) since more than 10
years now.
After adding the necessary usual entries to the fstab and rebooting, i discovered
the the boot process takes much longer than usual. First i expected a typo in
the fstab and double checked it after the box comes up but everything was fine
i am using a template for that cause i am a lzy guy
Strange thing: no mounts were there (df and mount) and doing a mount -a brings
up all NFS shares immediately !
Additional info: This happend with a 2,4 or 5 GHz WLAn connection using the
1 GB Ethernet port didnt show that effect. Pls. be aware that the T400 (18.2),
the Lifebook (17.3), the other T420 (17.3 and the T61 (18.2) are working fine.
Their NFS mount via fstab is working stable and all systems are in heavy
daily use by my daughters and my wife and of course ba myself.
Since the new T420 is a new system, there is no problem for me in going back
to V17.3 which will i do this evening and i will report the result here.
Kind regards,
Ralf
During last weekend i ran into a problem which fits into this thread.
Background: i have a total of 5 systems using NFS, 3 are running Mint 17.3
(Intel NUCi3, Lenovo T420 + Fujitsu Lifebook) and 2 are running Mint 18.2
(Lenovo T400 and Lenovo T61). I installed a 6th system (another Lenovo T420)
with Mint 18.2 and prepared the integration into my network by doing the usual
stuff like adding user accounts (for the NFS ) adding nfs-common,
making mount points, etc, etc, Did that dozen times before, we are running
a NFS based "Famlily Network" (thanks god no Windows) since more than 10
years now.
After adding the necessary usual entries to the fstab and rebooting, i discovered
the the boot process takes much longer than usual. First i expected a typo in
the fstab and double checked it after the box comes up but everything was fine
i am using a template for that cause i am a lzy guy
Strange thing: no mounts were there (df and mount) and doing a mount -a brings
up all NFS shares immediately !
Additional info: This happend with a 2,4 or 5 GHz WLAn connection using the
1 GB Ethernet port didnt show that effect. Pls. be aware that the T400 (18.2),
the Lifebook (17.3), the other T420 (17.3 and the T61 (18.2) are working fine.
Their NFS mount via fstab is working stable and all systems are in heavy
daily use by my daughters and my wife and of course ba myself.
Since the new T420 is a new system, there is no problem for me in going back
to V17.3 which will i do this evening and i will report the result here.
Kind regards,
Ralf
Re: NFS share doesn't work in Mint 18 [Solved?]
Will need a few days more time to work with "autofs/automount" if this fits my needs, i will stay with 18.2 on this box. I'll keep you posted.