Jump to content


Photo

How to make manual CIFS mounts permanent (7.1) ?


  • Please log in to reply
8 replies to this topic

#1 OpenTel

  • Member
  • 12 posts

0
Neutral

Posted 19 July 2019 - 20:43

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

 



Re: How to make manual CIFS mounts permanent (7.1) ? #2 WanWizard

  • Forum Moderator
    PLi® Core member
  • 47,929 posts

+804
Excellent

Posted 19 July 2019 - 21:08

Using the mount manager: menu - setup - system - expert settings - network - <select interface> - MountManager.


Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2), SAB Alpha Triple HD (S2+T2), Zgemma H3.T2C (T/C), Zgemma H6 (fallback), VU+Zero (fallback)

Many answers to your question can be found in our new and improved wiki.

note: I do not provide support via PM !

 


Re: How to make manual CIFS mounts permanent (7.1) ? #3 OpenTel

  • Member
  • 12 posts

0
Neutral

Posted 19 July 2019 - 21:21

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.


Re: How to make manual CIFS mounts permanent (7.1) ? #4 WanWizard

  • Forum Moderator
    PLi® Core member
  • 47,929 posts

+804
Excellent

Posted 19 July 2019 - 21:35

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?


Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2), SAB Alpha Triple HD (S2+T2), Zgemma H3.T2C (T/C), Zgemma H6 (fallback), VU+Zero (fallback)

Many answers to your question can be found in our new and improved wiki.

note: I do not provide support via PM !

 


Re: How to make manual CIFS mounts permanent (7.1) ? #5 OpenTel

  • Member
  • 12 posts

0
Neutral

Posted 19 July 2019 - 22:59

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. :(



Re: How to make manual CIFS mounts permanent (7.1) ? #6 Pike_Bishop

  • Senior Member
  • 815 posts

+29
Good

Posted 19 July 2019 - 23:41

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.

Receiver: Mutant HD 2400, VU Ultimo 4k

Image: PLI 6.0


Re: How to make manual CIFS mounts permanent (7.1) ? #7 OpenTel

  • Member
  • 12 posts

0
Neutral

Posted 20 July 2019 - 20:22

Hello,

 

Thanks for that ..

 

Do I have to create /etc/auto.net ?

That file does not exists at the moment ..



Re: How to make manual CIFS mounts permanent (7.1) ? #8 Pike_Bishop

  • Senior Member
  • 815 posts

+29
Good

Posted 20 July 2019 - 21:02

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.

Receiver: Mutant HD 2400, VU Ultimo 4k

Image: PLI 6.0


Re: How to make manual CIFS mounts permanent (7.1) ? #9 Pike_Bishop

  • Senior Member
  • 815 posts

+29
Good

Posted 20 July 2019 - 21:30

 

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


Receiver: Mutant HD 2400, VU Ultimo 4k

Image: PLI 6.0





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users