[Req] Mount subdirectories from NFS server

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
bamyasi
Posts: 25
Joined: Tue Jan 29, 2019 2:26 am

[Req] Mount subdirectories from NFS server

Post by bamyasi »

Hi,

Currently, dietpi-drive_manager by default mounts just NFS server root, e.g.:

# cat /etc/fstab | grep nfs
192.168.1.400:/ /mnt/dietpi_userdata/Music nfs auto,_netdev,nofail 0 0

This creates a long confusing extra path under DietPi's client mount directory when the NFS server actually exports a subdirectory from its disk. Would be nice to be able to specify something like the following instead in such case:

192.168.1.400:/disk/noises /mnt/dietpi_userdata/Music nfs auto,_netdev,nofail 0 0

This works as desired if I edit /etc/fstab manually but unfortunately, dietpi-drive_manager apparently does not support "192.168.1.400:/disk/noises" notation. Should be trivial to add?

Thanks,
Bamyasi
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Req] Mount subdirectories from NFS server

Post by MichaIng »

Jep you are right, makes sense to allow that and should be easy to implement, as well for Samba. I opened a GitHub issue for this request: https://github.com/Fourdee/DietPi/issues/2519
Post Reply