This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TinkerOS] Mount CIFS on Boot
#1
I've trying without success to mount on Boot a Windows Sharing Folder

I could mount using the comand:


mount -t cifs -o username=user@domain.hn,password=secret,sec=ntlm //repositorio/digifaceapp/faces /opt/digifaceapp/remotefaces

But I could't mount on boot with the /etc/fstab file using this line:

//repositorio/digifaceapp/faces      /opt/digifaceapp/remotefaces    cifs    username=user@domain.hn,password=secret,sec=ntlm,noauto,x-systemd.automount    0    0

I also try, without success, with:
//repositorio/digifaceapp/faces      /opt/digifaceapp/remotefaces    cifs    username=user@domain.hn,password=secret,sec=ntlm,noauto,_netdev    0    0

Any Idea What i'm doing wrong?
Reply
#2
What is the error when you try manually to mount the remote directory ?
Just copy and paste over here Smile
Light blue words might be a link. Have you try to click on them? Big Grin
Reply
#3
(01-28-2019, 11:42 PM)Im4Tinker Wrote: What is the error when you try manually to mount the remote directory ?
Just copy and paste over here Smile

There is no error, I can Mount manually with the command
Code:
mount -t cifs -o username=user@domain.hn,password=secret,sec=ntlm //repositorio/digifaceapp/faces /opt/digifaceapp/remotefaces

But it's not working with the fstab file Sad Huh Huh
Reply
#4
After a lot of research, the solution was very simple, I only create a file:

Code:
sudo nano /etc/network/if-up.d/fstab

And Add this:

Code:
#!/bin/sh
mount -a
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)