You are not logged in.

#1 2010-06-16 15:51:45

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

[SOLVED]Unable to mount cifs shares at startup

My /etc/ftab entry for the share is :

//10.100.56.21/Academic /mnt/Academic/  cifs    username=user,password=pass,_netdev 0   0

And at startup, I get the error :
Error 101, Network is unreachable....

Its a samba share which is password protected.

In my rc.conf:

DAEMONS=(syslog-ng !network hal networkmanager netfs crond alsa webmin avahi-daemon sshd arch32 samba)

Last edited by shadyabhi (2010-06-17 03:24:07)

Offline

#2 2010-06-16 23:35:13

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,233
Website

Re: [SOLVED]Unable to mount cifs shares at startup

At a guess, networkmanager isn't establishing the Network connection before netfs attempts to mount the share.... I assume after boot you can run `mount -a` and it all goes OK?

Offline

#3 2010-06-17 02:37:16

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [SOLVED]Unable to mount cifs shares at startup

exactly as you said, I did mount -a and the shares were mounted.

So, whats the solution. Do I mount share at the end of networkmanager script instead of /etc/fstab?

Offline

#4 2010-06-17 03:14:20

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,233
Website

Re: [SOLVED]Unable to mount cifs shares at startup

I don't think there is an 'elegant' solution to this. Add `mount -a` to your rc.local file

Offline

#5 2010-06-17 08:08:01

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: [SOLVED]Unable to mount cifs shares at startup

You can use the following in your /etc/rc.local
( until ping -q -W4 -c1 google.com &>/dev/null; do
    sleep 5
  done
  mount /mnt/Academic
) &

Last edited by demian (2010-06-17 08:08:48)


no place like /home
github

Offline

#6 2011-12-02 21:51:45

nicoulaj
Member
From: France
Registered: 2011-10-10
Posts: 34

Re: [SOLVED]Unable to mount cifs shares at startup

I just stumbled on this too... Anyone knows if a better solution has been found in the meanwhile ?


AUR | github | IRC:nicoulaj

Offline

#7 2011-12-02 22:35:01

defears
Member
Registered: 2010-07-26
Posts: 218

Re: [SOLVED]Unable to mount cifs shares at startup

Offline

#8 2012-01-07 16:09:30

nicoulaj
Member
From: France
Registered: 2011-10-10
Posts: 34

Re: [SOLVED]Unable to mount cifs shares at startup

Perfect, thanks.


AUR | github | IRC:nicoulaj

Offline

Board footer

Powered by FluxBB