You are not logged in.

#1 2011-12-03 20:31:06

Y3k
Member
From: Brescia,Italy
Registered: 2011-10-03
Posts: 13

Automounting smb share without network daemon

Hello everyone, I have an issue. I'm using networkmanager to manage wireless connections. While installing networkmanger, the wiki told you must remove network daemon from rc.conf, and use networkmanager instead: that's exactly what I did, and networkmanager does the job just well. I told you that because I think that it is the reason why i'm failing to auto mount smb share through editing fstab. If i put in fstab the command described on the wiki (cisf mounting) I get a FAIL at booting, it says it can't find the share. Otherwise am I wrong and the reason must be related to something else, like syntax errors? Thank you.

Offline

#2 2011-12-03 21:06:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Automounting smb share without network daemon

Put the share in fstab with the 'noauto' option and use the netfs init script to mount it after networkmanager has established the connection.

Offline

#3 2011-12-03 21:55:16

Y3k
Member
From: Brescia,Italy
Registered: 2011-10-03
Posts: 13

Re: Automounting smb share without network daemon

Trying to follow your advice, I did the following: I put into /etc/fstab

//server/Videos$ /mnt/video cifs noauto,noatime,username=Y3KNET/Arch,password=Ilove69,ip=192.168.1.1 0 0
//server/Public$ /mnt/public cifs noauto,noatime,username=Y3KNET/Arch,password=Ilove69,ip=192.168.1.1 0 0

then, in /etc/rc.local:

mount /mnt/video
mount /mnt/public

and, as a second try,

sudo mount /mnt/video
sudo mount /mnt/public

but without luck: no mount actually takes place. Anyway, if i type the above code after logon into kde, everything works flawlessly. Where am I mistaken?

Last edited by Y3k (2011-12-03 23:06:36)

Offline

#4 2011-12-04 08:24:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Automounting smb share without network daemon

Ah right - your network connection is not established until you login to KDE, so you should do the mounting after that.

Alternatively,  connect to your net during system init, before user login.

Offline

#5 2011-12-04 13:54:28

Y3k
Member
From: Brescia,Italy
Registered: 2011-10-03
Posts: 13

Re: Automounting smb share without network daemon

tomk wrote:

Ah right - your network connection is not established until you login to KDE, so you should do the mounting after that.

Alternatively,  connect to your net during system init, before user login.


Ok, so you suggested 2 possible solutions:

1) Mount after KDE login

2)Enable network (wireless connection) before login

I can do what you say but I don't know how to do that AUTOMATICALLY. Any advice?

Offline

#6 2011-12-04 17:33:42

Y3k
Member
From: Brescia,Italy
Registered: 2011-10-03
Posts: 13

Re: Automounting smb share without network daemon

sorry guys I'm really stuck with this issue. I really have no idea how to fix this, and it doesn't seem to be an hard problem to solve...

Offline

#7 2011-12-04 22:12:17

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Automounting smb share without network daemon

I don't use either KDE or networkmanager, but I suspect both of them have what you need:
- for KDE, the ability to run commands automatically when it starts up.
- for networkmanager, the ability to run commands when the network connection is established.

Try the wiki for a start, if that doesn't help, google will.

Offline

Board footer

Powered by FluxBB