Springen naar inhoud


Foto

How to make manual CIFS mounts permanent (7.1) ?


  • Please log in to reply
Er zijn 8 reacties in dit onderwerp

#1 OpenTel

  • Senior Member
  • 63 berichten

0
Neutral

Geplaatst op 19 juli 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

  • PLi® Core member
  • 68312 berichten

+1719
Excellent

Geplaatst op 19 juli 2019 - 21:08

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


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

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


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

  • Senior Member
  • 63 berichten

0
Neutral

Geplaatst op 19 juli 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?


Veranderd door OpenTel, 19 juli 2019 - 21:24


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

  • PLi® Core member
  • 68312 berichten

+1719
Excellent

Geplaatst op 19 juli 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), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

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


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

  • Senior Member
  • 63 berichten

0
Neutral

Geplaatst op 19 juli 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
  • 1120 berichten

+72
Good

Geplaatst op 19 juli 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


Veranderd door Pike_Bishop, 19 juli 2019 - 23:42

Receiver: VU Ultimo 4K, Octagon SF8008 4K, Gigablue Quad 4K

Image: OpenPLI-8.3


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

  • Senior Member
  • 63 berichten

0
Neutral

Geplaatst op 20 juli 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
  • 1120 berichten

+72
Good

Geplaatst op 20 juli 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.


Veranderd door Pike_Bishop, 20 juli 2019 - 21:03

Receiver: VU Ultimo 4K, Octagon SF8008 4K, Gigablue Quad 4K

Image: OpenPLI-8.3


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

  • Senior Member
  • 1120 berichten

+72
Good

Geplaatst op 20 juli 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: VU Ultimo 4K, Octagon SF8008 4K, Gigablue Quad 4K

Image: OpenPLI-8.3



1 gebruiker(s) lezen dit onderwerp

0 leden, 1 bezoekers, 0 anonieme gebruikers