You are not logged in.

#1 2013-06-24 06:03:06

fledermann
Member
From: Bielefeld, Germany
Registered: 2013-06-24
Posts: 49

[solved] Mount samba shares automatically after wifi connection

Hi everyone,

just installed Arch on my laptop for the first time after 6 years of Ubuntu and Debian - and it works like a charm. Even the installation was not nearly as complicated as I imagined (install on tty1 and elinks on tty2 did the trick).

But theres one thing where I've no idea how to do that: I'm using wicd to manage my wireless connection. The home server has some shared samba folders. When the connection is established, I can mount the folders manually and access them with pacman pcmanfm, works fine. But I want the samba folders to mount automatically (preferrably only when im connected to my home-network) after the connection is established, that's why I can't use fstab.

Any hints?

Cheers,
Fledermann

Last edited by fledermann (2013-06-24 07:12:23)

Offline

#2 2013-06-24 06:10:53

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [solved] Mount samba shares automatically after wifi connection

I cannot help you with wicd, but i'm quite sure that if you switch to netctl, you will be able to mount network share through fstab.

Last edited by GloW_on_dub (2013-06-24 06:11:34)

Offline

#3 2013-06-24 06:32:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] Mount samba shares automatically after wifi connection

Instead of changing network management software, just use systemd's automount feature.  It will not attempt to mount the filesystem until it is accessed.  So assuming you don't try to go peeking into that mountpoint before the network is up, is should be fine.  Just add "noauto,x-systemd.automount" to the options in your fstab.  This functionality is very similar to autofs, but not quite as feature rich.

Offline

#4 2013-06-24 07:11:42

fledermann
Member
From: Bielefeld, Germany
Registered: 2013-06-24
Posts: 49

Re: [solved] Mount samba shares automatically after wifi connection

Whoa, I didn't even know of automount. Tried it out and it works perfectly!

Thanks

Offline

Board footer

Powered by FluxBB