41
votes
Accepted
nfs error 'no locks available' after update to 16.10
Someone in systemd land decided that starting nfs shouldn't start the statd service which nfs uses to provide locks. So, your fix should be simple, on the host machine:
sudo systemctl enable rpc-...
- 8,037
41
votes
How to configure a NFS mounting in fstab?
A typical /etc/fstab entry for a NFS mount looks like as follows:
192.168.0.216:/mnt/HDD1 /media/freenas/ nfs defaults 0 0
The options you supply looks pretty much default, but you can ...
- 6,053
23
votes
Permission denied error when running apps installed as snap packages - Ubuntu 17.04
Same happens in Ubuntu 18.04.
If the user home directory is not under the /home (or /) mount, it not possible to work with snap. My HOMEDIR was on another local SSD disk, but since it was not mounted ...
- 1,214
22
votes
Permission denied error when running apps installed as snap packages - Ubuntu 17.04
I ran into this because my home directory is symlinked from /home/$USER to another mount point. I fixed it with the suggestion from when /home is somewhere else, snaps don't work.
In short, you need ...
15
votes
How do I mount a CIFS share?
It's as map7 said, but if you don't want to use root permissions every time you change a file on the drive, then you'll have to mount to a user folder, and make sure the gid and uid are set to your ...
- 183
15
votes
Accepted
How can I get read/write access to NFS share of Synology NAS?
NFSv2/3 handles permissions solely based on UID and GID. File permissions on the server are matched against user- and group ids on client. That is why NFSv<4 is by design insecure in environments ...
- 5,425
14
votes
One NFS server to multiple clients
In your /etc/exports file, you can either use a wildcard:
/path/to/share *(rw,sync,etc)
Or you can use CIDR notation
/path/to/share 10.0.0.0/24(rw,sync)
Or you can put multiple IPs in ...
- 3,136
10
votes
auto mount NFS via autonfs
To mount NFS shares we need to install nfs-common:
sudo apt-get install nfs-common
To save us from retyping this after every reboot we add the following line to /etc/fstab:
<nfs-server-IP>:/ ...
- 924
10
votes
How can I make the nfs server support protocol version 2 in Ubuntu 17.10?
You need to modify /etc/default/nfs-kernel-server to have these lines:
RPCNFSDOPTS="--nfs-version 2,3,4 --debug --syslog"
# To confirm above mods are in effect after service restart use
# cat /...
- 101
10
votes
Is it safe to do symlinks for the entire machine?
No. That would render your virtual machine unbootable. The NFS system is loaded at a certain point in the booting process. Before this point, no files on the NFS will be accessible. This means that ...
- 96.9k
10
votes
Accepted
Is it safe to do symlinks for the entire machine?
You cannot make / a symbolic link. It just isn't possible. / has to be a directory. If / was a symbolic link, it would point to some path — and to resolve that path, the system would go through /, ...
9
votes
How do I mount NFS through nautilus?
** Interim Answer **
I'm still trying to get the dialog to work properly but, as a temporary workaround, I thought I should share this:
Tested in 15.10, 16.04, and 16.10, if you create a mount point ...
- 7,008
9
votes
Permission denied error when running apps installed as snap packages - Ubuntu 17.04
You can set the permissions of the Snap Application from the Software Store.
The following steps are tested on Ubuntu 20.04 LTS:
Open Software
Select the Installed tab. A list of installed software ...
8
votes
How to mount a NFS share in Ubuntu 16.04?
I found the following solution here. Apparrently, you have to use specific systemd options in fstab.
servername:/home /mountpoint/on/client nfs noauto,x-systemd.automount,x-systemd.device-timeout=...
- 81
7
votes
Configure mounting timeout at boot
Now it is 2020 and this question can be updated to represent current status. In a nutshell, the timeout can be set by using x-systemd.mount-timeout parameter:
From manpages:
Mount units may either be ...
- 635
7
votes
In Ubuntu 16.04 not start rpcbind on boot
It's bug systemd config rpcbind unit in Ubuntu 16.
https://bugs.launchpad.net/ubuntu/+source/rpcbind/+bug/1558196
Solution:
systemctl add-wants multi-user.target rpcbind.service
- 151
7
votes
Accepted
FSTAB not loading properly
I think that the problem is the relative paths used. If you run in console:
mount -t nfs 10.0.0.5:/volume1/video ~/Videos
Works because the ~ refers to the user's home folder. When you restart the ...
- 1,969
6
votes
How to unmount NFS when server is gone?
In my case where umount -f did not work, umount -fr worked.
-r argument remounts as read-only and then unmounts the folder.
- 343
6
votes
Permission denied error when running apps installed as snap packages - Ubuntu 17.04
Snap apps are confined to a sandbox by default, for security. If you want snap applications to be able to read/write data in your home directory, you should install them in classic mode. Try:
rclone ...
- 224
6
votes
Accepted
ls files in directory where a mount is above it
You can do so using a bind-mount. First you need to create a directory which we use as mount point for the bind-mount:
sudo mkdir /mnt/mymountpoint
(We cannot use /mnt here as suggested in the links ...
- 14.3k
5
votes
Why do I get "wrong fs type, bad option, bad superblock" error?
I solved it by installing virtualbox.
Do
sudo apt-get install virtualbox-guest-utils
It installs the mount.vboxsf
- 81
5
votes
How do I mount a CIFS share?
1) My samba share shows in Caja (the ubuntu 16.04 „explorer“) as
smb://thinkpad/ddrive/
This is a good lithmus test, there are no connection/path issues.
(caveat: If you get asked by caja about ...
- 1,210
5
votes
nfs is blocked by ufw even though ports are opened
You don't have to do complex operations with new versions of Ubuntu. Ubuntu 18.04 ufw and nfs-kernel-server.
Just use this command to allow nfs on your host
sudo ufw allow from your_client_ip to any ...
5
votes
How to use NFS to share a mounted drive?
This can be achieved by enabling cross mounting. Just add crossmnt to your exported entry in /etc/exports
/srv *(rw,fsid=0,no_subtree_check,crossmnt)
And don't forget to issue the appropriate ...
- 152
5
votes
Accepted
How to mount from an IP address using NFS?
You are missing a colon (:) after the remote server IP:
sudo mount 192.168.1.126:/exports /local/ubuntu
Assuming the remote server (192.168.1.126) has exported /exports and you are mounting it on /...
- 89.3k
5
votes
How to set up a shared HDD
Okay, your question asks several things so I will try and address them individually.
1. Do I need to format the HDD as NFS (or other type?? - and how do I do that)
No - you can format the hard drive ...
- 551
5
votes
Accepted
Ubuntu 18 NFS Change
Apparently you have to force the pi to ask for NFSv3 otherwise the server defaults to NFSv4. The fix is done on the pi itself in /boot/cmdline.txt. Just append ",tcp,v3" to your nfsroot= parameter ...
- 66
4
votes
How to prevent duplicate bind mounts?
You are simply not supposed to call mount -a unless you are init script or some other system program. Why do you need this?
but yes, you can test it in shell script
mountpoint -q /home/benubird/...
- 41
4
votes
Accepted
Wine doesn't run 90% of my games correctly, display is hugely magnified
The only working methods for gaming with Linux is Steam or with native games (like Baldur's gate and Neverwinter Nights). Gaming with wine will be not as good as gaming it natively on Windows. Your ...
- 289k
4
votes
Accepted
Why am I getting "permission denied" when connecting to my NFS share?
In order to connect to the NFS share with MacOS, the share must be defined with the insecure flag. All that means is its allowing a connection from a non standard port (which macOS uses). So your ...
- 426
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
nfs × 629mount × 234
server × 118
networking × 89
permissions × 61
fstab × 56
boot × 38
pxe × 37
nas × 33
samba × 30
16.04 × 28
automount × 26
14.04 × 25
18.04 × 23
12.04 × 21
20.04 × 20
kernel × 15
nautilus × 14
systemd × 14
ldap × 14
autofs × 14
cifs × 12
file-sharing × 11
virtualbox × 10
kerberos × 10