NFS one Dietpi to another.

I have two Dietpis. Identical each with identical 3T Hard Drives. What is the best way to mount the hard drive attached to Dietpi-1 from Dietpi-2?

Thanks!

Hi,

you can use SAMBA or NFS to have a drive shared between both systems.

I understand. On Dietpi-2 I installed: 110 NFS Client: network file system client.

On Dietpi-1 in Dietpi-Drive_Manger I choose: NFS : Setup a connection for a NFS compatible file share

I get:

[FAILED] NFS mount failed with the following error output: │
│ │
│ mount.nfs: mount(2): Connection refused │
│ mount.nfs: portmap query retrying: RPC: Program not registered │
│ mount.nfs: portmap query failed: RPC: Program not registered │
│ mount.nfs: requested NFS version or transport protocol is not supported │
│ mount.nfs: timeout set for Tue Apr 13 17:03:15 2021 │
│ mount.nfs: trying text-based options │
│ ‘port=2049,vers=4.2,addr=192.168.2.4,clientaddr=192.168.2.3’ │
│ mount.nfs: trying text-based options ‘port=2049,addr=192.168.2.4’ │
│ mount.nfs: prog 100003, trying vers=3, prot=6 │
│ mount.nfs: prog 100003, trying vers=3, prot=17

you would need to install the NFS server functionality on the first system and export your share.

On server, install nfs-server. Then edit /etc/exports and add a line:

/mnt/backup/odroid 172.30.30.100(rw,async,no_root_squash,fsid=0,crossmnt,no_subtree_check)

Adjust the path to the desired and the IP to the one of the client.
Restart nfs-server dietpi-services restart nfs-kernel-server

Then on client use dietpi-drive_manager to create a new network drive, select NFS, fill in the IP of the server , and the mountpoint under /mnt

NFS server is available via software ID 109 :slight_smile: