Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Auto mounting network drive after wireless conn is established

  1. #11
    Join Date
    Oct 2008
    Beans
    38

    Re: Auto mounting network drive after wireless conn is established

    PowerEngine, you do not need to be connected with ethernet first. If the network is unavaible when the computer reads the fstab it just does not mount them. Then when on the network type:

    sudo mount -a

    And it will either throw an error because something is not specified right or it will mount the network drives properly. I use it with my wireless all the time.

    Anyway not sure if this helps because of your Truecrypt and unfortunely i don't know a lot about truecrypt.

  2. #12
    Join Date
    Nov 2008
    Beans
    9

    Re: Auto mounting network drive after wireless conn is established

    That is correct. sorry I didn't notice that you mentioned the mount -a.
    Thanks a million for your help.
    ------------------------------
    Is there a hint regarding the path of the mounted folders using the graphical interface (ie Places -> connect to server .. ) ?

    Cheers..

  3. #13
    Join Date
    May 2005
    Beans
    335
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Auto mounting network drive after wireless conn is established

    I don't think that folders you access that way are actually mounted.
    If you open the shared drive in Nautilus and press Ctrl+L you should see the path of the folder. I'm pretty sure it will start with smb:// which means it's accessing it via samba and not as a local directory.

  4. #14
    Join Date
    Nov 2008
    Beans
    9

    Re: Auto mounting network drive after wireless conn is established

    aha .. yes it does start with smb://
    so Samba doesn't mount network folders in local disk to access them ?
    Last edited by PowerEngine; November 19th, 2008 at 11:06 PM.

  5. #15
    Join Date
    Jun 2006
    Beans
    174
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Auto mounting network drive after wireless conn is established

    Quote Originally Posted by sauce345 View Post
    PowerEngine, you do not need to be connected with ethernet first. If the network is unavaible when the computer reads the fstab it just does not mount them. Then when on the network type:

    sudo mount -a

    And it will either throw an error because something is not specified right or it will mount the network drives properly. I use it with my wireless all the time.

    Anyway not sure if this helps because of your Truecrypt and unfortunely i don't know a lot about truecrypt.
    Hi, I seem to be having the same problem. I'm running Ubuntu Janty Remix on an Eee PC 701. I have everything set up to the point that after start, up, if I execute
    Code:
    sudo mount -a
    in a terminal, then my network folder is mounted to the local folder, as set up in fstab
    Code:
    //192.168.1.20/Peter-on-Network /home/peter/Peter-on-Network	smbfs	auto,credentials=/root/.smbcredentials,uid=1000,umask=000,user	0 0
    I'm setting this up for my technically illiterate father, so, I need the network folder to mount at start up - without the need to open a terminal and run a command.

    I am assuming the folder is not being mounted automatically because the wireless network connection is not established before fstab is executed?! Any suggestions would be much appreciated...
    "We can never obtain peace in the outer world until we make peace with ourselves." Tenzin Gyatso

  6. #16
    Join Date
    Sep 2009
    Beans
    2

    Re: Auto mounting network drive after wireless conn is established

    Hi all,

    I am having an identical situation to PowerEngine.
    Two questions on using /etc/fstab and mount -a
    1) How does it take the SSID of the network in account? a.k.a. How do i prevent mounting things on the wrong network? (Can the SSID be used in the path for the credentials?)
    2) I which script should i place the mount -a in order for the mounts to be done without any special user action?
    Last edited by DuckSedo; September 9th, 2009 at 08:14 PM.

  7. #17
    Join Date
    Sep 2009
    Beans
    2

    Re: Auto mounting network drive after wireless conn is established

    An ugly solution:
    In the login script start a second script in the background;

    second.sh&


    second .sh contains:

    sleep 1
    mount -a



    increase the sleep time if needed.

  8. #18
    Join Date
    Apr 2008
    Beans
    15
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Wink Re: Auto mounting network drive after wireless conn is established

    Hi,

    I am also looking for a solution to mounting network shares after wireless is connected.

    As noted earlier, entering network shares into /etc/fstab doesn't work because wireless is not connected when mount all happens.

    I happen to be running WICD to do connection because it avoids needing to put in default keychain password every time you boot (I have autologin set). Try it, it is pretty easy to setup. http://wicd.sourceforge.net/download.php

    NOTE: if using WICD and you only have wireless NIC, you should delete wired (eth0?) connection profile in WICD or it will sit there trying to get DHCP on non-existant NIC for 3 minutes or so. And it will wait till that times out before connecting to wireless.

    Now back to my point... On googling, I found that WICD has a function to run script after connect. This may be what you need. Do your mount script and have WICD run it after wireless is connected!

    Regards,
    Feizex.

    PS. please excuse any inaccuracies, I still have my linux training wheels on. =)

  9. #19
    Join Date
    Mar 2006
    Location
    Netherlands
    Beans
    73
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Auto mounting network drive after wireless conn is established


  10. #20
    Join Date
    Oct 2011
    Beans
    1

    Re: Auto mounting network drive after wireless conn is established

    Hi all!

    Since I wanted to accomplish the same thing, but couldn't find any useful information about it, I wrote a small article about how I got it to work on my Ubuntu 11.04:

    Ubuntu: Automatic mounting of Samba share when connected to a wireless network

    Hope it will help somebody

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •