How to make manual CIFS mounts permanent (...
OpenTel 19 Jul 2019
I can add CIFS mounts manually using the 'mount -t cifs ...' command .. (via ssh)
But how do I make them permanent? They also have to be 'soft' mounts so that the box doesn't hang when the mount is not available.
I suppose fstab is not a great option.
Any input appreciated!
Thanks
WanWizard 19 Jul 2019
Using the mount manager: menu - setup - system - expert settings - network - <select interface> - MountManager.
OpenTel 19 Jul 2019
Thanks, but the mount manger hangs and it's awkward to key in my user credentials.
Maybe it's due to that I haveto use vers=2.0 on the cmd line. So would really prefer the cmd line
Also share browser hangs each time I select the W10 server.
As said I can mount fine from a shell
So no way doing it manually?
Edited by OpenTel, 19 July 2019 - 21:24.
WanWizard 19 Jul 2019
You can type "vers=2.0" in the mount options field, that is what it's there for.
And I didn't mean search, but just create the mount manually.
But if you want to use the commandline, what is stopping you?
OpenTel 19 Jul 2019
Hi Yes, I'm using the cmd line and it works well. (to connect to W10 machine)
mount -t cifs -o username=xxx,password=xxx,vers=2.0 //10.70.10.7/INCOMING /media/net/
I just was just wondering how to best set this mount permanently on boot.
I will also have 2nd look at the mount manger, but the network browser definitely looks up when trying to browse W10 shares.
Pike_Bishop 19 Jul 2019
Hi,
try it manually with a linux compatible editor as notepad++ in the file /etc/auto.net.
as example;
WZ-BOX_cifs -fstype=cifs,rw,iocharset=utf8,user=root,pass=xxxxxxxx ://192.168.178.10/Internaldisk
but first you must set a password with telnet with the command passwd, here this works perfect i didn't use the networkbrowser (mountmanager) for that since a long time.
my example is a share to the harddisc from a second enigma2 box.
after you created a mount it's simplest you restart your box complete.
regards
Pike
Edited by Pike_Bishop, 19 July 2019 - 23:42.
OpenTel 20 Jul 2019
Hello,
Thanks for that ..
Do I have to create /etc/auto.net ?
That file does not exists at the moment ..
Pike_Bishop 20 Jul 2019
if it doesn't exists, then yes, create it.
you can do it with telnet if you want;
touch /etc/auto.net
it didn't exists because your networkbrowser make problems if you want to create mounts with him.
Edited by Pike_Bishop, 20 July 2019 - 21:03.
Pike_Bishop 20 Jul 2019
But how do I make them permanent? They also have to be 'soft' mounts so that the box doesn't hang when the mount is not available.
and i forgot if you want not to use fstab so you need also autofs for that mount, but autofs is't on board out of the box.
you can install it with;
opkg update opkg install autofs
i use autofs too since eternities.
regards
Pike