Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

CIFS in fstab Not Mounting

Started by sketchman, February 01, 2016, 01:46:03 AM

Previous topic - Next topic

sketchman

I have the following entry in my fstab to mount a network share at boot. This works in other distros just fine. But in Sparky, no go.

//192.168.1.16/NAS /mnt/nas cifs username=####,password=######## 0 0

What do I do to get it to behave like I'm used to? Or is there some other way I'm supposed to do it?

I'm using Sparky LXQT 64 with recent update. Recent like today. :)

EDIT: Probably should have mentioned I do have cifs utilities installed and this share mounts just fine manually. I can run "mount -a" and it shows up as it should as shown in the fstab entry I pasted in here.

sketchman

#1
So apparently this is a Newbie question, IMHO, with a not so Newbie friendly solution. Again IMHO.

Not really sure why this is still a problem given that the fix is to edit one file by adding one TINY line, but here is the fix if anybody else was curious.

http://lifeisabug.com/fix-debian-wheezy-mounting-cifs-smb-shares-boot-time/

Solution:

Add the following to /etc/default/rcS:

ASYNCMOUNTNFS=no

Again, I don't understand how this is still an issue. That link is from the middle of 2014. ???

But oh well.

EDIT: OK. That didn't work in Sparky. So I'm back to the beginning.

sketchman

Got it. Sort of.

I add the "mount -a" command to a new script in /etc/network/if-up.d folder.

CIFS share now mounts at boot, but this is redundant and dirty, though simple. fstab should be the only edit needed. Not sure what's going on. But it does work now.

sketchman

This is still working great. Just wanted to add. I know pcmanfm-qt can mount the share just fine, BUT when I did that VLC could not find files that I dragged into the playlist. So, this is not a satisfactory method IMO.

But the "mount -a" script does work.

View the most recent posts on the forum