openSUSE Tumbleweed auto-mount network drives at boot
Have a smaller system with limited drive space; in this case, a mini PC that has zero room for expansion, and is only used for conference room display purposes. Not really much to be gained by upgrading this cheap little box.
In order to have access to our internal server, I've used SSHFS to mount the remote shares. Could easily be NFS, Samba or whatever, but for this example, that's what I've used. This is a two part solution: Step One: In /etc/NetworkManager/dispatcher.d, create a file called "netdrives" (or whatever). In it, put: Code:
#! /bin/sh Step Two: Create the mount script. Can be as simple or complex as you want it; in my case, it's only several lines like this: Code:
sudo -u user sshfs user@10.11.12.13:/some/remote/path /some/local/path -o allow_other Handy for the house, too, if you have a NAS you'd like to mount when you hook up to your home network. |
I apologize for necroing this thread I am just wondering if this would work for mounting from Raspi 3 last year I bought one and was trying to get it to mount drives that had videos on them and I never could get it to work . and of course I dont remember the OS I was using but it had Kodi which booting automatically . I ended up just boxing the raspi 3 .
|
Quote:
|
thanks for replying I will digout my raspi3 and see if I can get this up and running :)
|
All times are GMT -5. The time now is 06:48 AM. |