Possible to mount remote drives ?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
echable
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Possible to mount remote drives ?

Post by echable »

Can I use Dietpi-drive-manager (or another command/function) to mount a remote NAS drive (with dynamic IP, so I would be using a DDNS address) on an RPi3 and/or Odroid xu4, then use this remote NAS as the source for media files for the locally installed Logitech Media Server or another media server ?
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: Possible to mount remote drives ?

Post by WarHawk »

yes, fstab can do that...but it can't map a dhcp address (a proper named one should work)...the one it maps to will have to be a static that is there every time

there are numerous links to show how to do that
https://askubuntu.com/questions/157128/ ... re-on-boot
https://wiki.ubuntu.com/MountWindowsSharesPermanently
https://discourse.osmc.tv/t/configuring ... unts/38167
echable
Posts: 30
Joined: Mon May 20, 2019 3:03 pm

Re: Possible to mount remote drives ?

Post by echable »

Thanks for your reply but I'm not sure the info in your links applies to my use case. What I want to do is:

Put an Odroid XU4 at one house

Mount a remote NAS at another house using a www.ddns.com address as a local drive on the XU4 at the other house

Leave the XU4 at the other house, install Logitech Media Server there, and have it use the remote www.ddns.com NAS drive as data source for XU4 media files


I assume this would be a fairly normal thing to do and so would be possible. Any more help would be appreciated! :)
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: Possible to mount remote drives ?

Post by MichaIng »

As long as you don't setup a VPN on the remote NAS, usual network drive mounts like NFS or Samba are not possible, and even with VPN, those protocols are not really made for transfers outside a local network.

Not sure about SFTP mount possibilities, but FTP, since unencrypted, is nothing I would recommend, or only with a VPN connection.
EDIT: sshfs (SFTP) should match best your aims. Here a guide I just found: https://www.debianadmin.com/mount-a-rem ... sshfs.html
Implementing this as server and client/mount into DietPi is long planned but still outstanding


Another approach would be Syncthing (or similar), but that means that all data is stored on the XU4 as well, which is most likely not what you want.

Nextcloud plans to integrate some virtual drive feature with their desktop sync client, but this seems to still take a while to be released.

Basically I would have NAS and XU4 on the same location, respectively the same machine and use a web-based media player to play media on any remote location :?.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Possible to mount remote drives ?

Post by johnvick »

I have Emby running on a device at home and when away from home can view media and play music, not by drive mounting but by port forwarding - you can achieve what you are looking for easily I think?
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: Possible to mount remote drives ?

Post by WarHawk »

did some digging SSHFS
In computing, SSHFS (SSH Filesystem) is a filesystem client to mount and interact with directories and files located on a remote server or workstation over a normal ssh connection.[2] The client interacts with the remote file system via the SSH File Transfer Protocol (SFTP),[3] a network protocol providing file access, file transfer, and file management functionality over any reliable data stream that was designed as an extension of the Secure Shell protocol (SSH) version 2.0.
might try this
https://www.tecmint.com/sshfs-mount-rem ... using-ssh/

Or maybe have the local VPN into the network you want to mount and have it mount that way?

Well that is if DietPi and it's kernel builds support SSHFS

This way...it can connect and mount securely thru SSH...which is a VERY good thing because it's a secure tunnel

This listing shows a pretty nice way to set it up
https://unix.stackexchange.com/a/62682
Post Reply