Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
-
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=24
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’ -
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
bookworm 0 -
Kernel version |
uname -a
Linux DietPi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux -
Architecture |
dpkg --print-architecture
armhf -
SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)
RPi 2 Model B (armv7l) -
Power supply used | (EG: 5V 1A RAVpower)
Generic high current supply -
SD card used | (EG: SanDisk ultra)
Samsung (did not power down and remove to check further)
Additional Information (if applicable)
- Software title | (NFS server)
- Was the software title installed freshly or updated/migrated?
Fresh install - Can this issue be replicated on a fresh installation of DietPi?
This is a fresh install
← If you sent a “dietpi-bugreport”, please paste the ID here →
no bug report, probably not a bug
Steps to reproduce
I have a fresh install with only transmission bittorrent and NFS server installed over the basic system. I use the following in my fstab file on the remote system, which worked okay on my previous system:
192.168.0.250:/mnt/usb_1 /home/dad/dietpi_NAS nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=180>
It doesn’t mount so I tried the following command to see if there is a message:
192.168.0.250:/mnt/usb_1 /home/dad/dietpi_NAS nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=180>
It comes back with:
mount.nfs4: timeout set for Fri Dec 15 16:32:46 2023
mount.nfs4: trying text-based options 'proto=tcp,port=2049,vers=4.2,addr=192.168.0.250,clientaddr=192.168.0.164'
mount.nfs4: mount(2): No such file or directory
mount.nfs4: trying text-based options 'proto=tcp,port=2049,addr=192.168.0.250'
mount.nfs4: prog 100005, trying vers=3, prot=6
mount.nfs4: trying 192.168.0.250 prog 100005 vers 3 prot TCP port 40939
mount.nfs4: mount(2): Permission denied
mount.nfs4: access denied by server while mounting 192.168.0.250:/mnt/usb_1
The command ‘showmount -e 192.168.0.250’ replies with:
Export list for 192.168.0.250:
/mnt/dietpi_userdata *
/mnt/usb_1 192.168.0.*
The computer I’m trying to connect from has NFS common package installed, and is running mx linux OS.
On the dietpi system there are two config files for NFS shares, although I presume only one is used. I’ll post both for completeness:
/etc/exports (not used?)
/mnt/usb_1 192.168.0.*(rw,sync,no_subtree_checkure,no_root_squash)
/etc/exports.d/dietpi.exports
/mnt/usb_1 192.168.0.*(rw,async,no_root_squash,fsid=0,crossmnt,no_subtree_check)
I’m probably making a simple mistake, but I don’t know what it is, and I’m not overly conversant with this kind of thing. If anyone could point me in the right direction or let me know what commands to try to shed more light on the issue, that would be very helpful.
Expected behaviour
Serve files to remote system over NFS
Actual behaviour
See error message above.
Extra details
I didn’t post the entry for “/mnt/dietpi_userdata *” in the section for /etc/exports.d/dietpi.exports, for some reason the formatting got messed up by the text entry system