Skip to content

Mounting NFS Shares in HiFiBerryOS

mmcc-xx edited this page Oct 27, 2023 · 2 revisions

So you have some music on a server shared with NFS and are dismayed that HiFiBerryOS only supports SMB shares? Have you also discovered that the OS doesn't have a package manager installed? Docker to the rescue!

  1. ssh into your hifiberry machine
  2. Create a mount point in /data/library/music/ - I called mine NFS
  3. Run this command:
docker run -itd --privileged=true --net=host --name nfs -e SERVER="YourServerIPAddress" -e SHARE="/your/share/path" -v /data/library/music/NFS:/mnt/nfs-1:shared d3fk/nfs-client:v4

This should result in your share being accessible at /data/library/music/NFS. Note that this uses NFS v4. If you need V3, remove the :v4 from the end of the command above.

  1. Run this command:
/opt/hifiberry/bin/update-mpd-db

This will update your music database with the content from your share.

Clone this wiki locally