Results 1 to 9 of 9

Thread: Permanently mount network drive

  1. #1
    Join Date
    Oct 2011
    Beans
    5

    Permanently mount network drive

    Hi I'm a little on the new side when it comes to Linux in general and I just installed Ubuntu a few days ago. There is a shared network drive that my school provides that I would like to have permanently mounted in Ubuntu. When performing this operation on Windows you simply click "map network drive" and enter the credentials. The address for the drive is like this: (where $something represents actual information)

    https://$something.$something.$something/share

    and there are username and password credentials to input as well.

    I've tried many other fixes found on the web and tried to adapt them to my needs but I'm missing something.

    currently i have the following line appended to my fstab file:

    Code:
    //$something.$something.$something/share cifs iocharset=utf8,credentials=/path/to/.smbcredentials,uid=1000 0 0
    when I run the
    Code:
    sudo mount -a
    command i get this as the error:

    Code:
    mount error(115): Operation now in progress
    Any help would be greatly appreciated and I thank you in advance for taking the time to look into this!

  2. #2
    Join Date
    Jul 2011
    Beans
    4

    Re: Permanently mount network drive

    Hi static_recharge

    Once the drive is mounted, drag it onto the bookmarks bar on the left pane of nautilus. That way, when ever you click on it the drive will be mounted automatically.

    Hope this helps

    George

  3. #3
    Join Date
    Oct 2011
    Beans
    5

    Re: Permanently mount network drive

    Quote Originally Posted by georgeaperkins View Post
    Hi static_recharge

    Once the drive is mounted, drag it onto the bookmarks bar on the left pane of nautilus. That way, when ever you click on it the drive will be mounted automatically.

    Hope this helps

    George
    Thank you for your quick reply, unfortunately this is not my issue. The exact issue is that the drive does not mount to begin with so i cannot bookmark it or anything of that nature quite yet. As mentioned above I am getting an error from the sudo mount -a command.

  4. #4
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Permanently mount network drive

    Quote Originally Posted by static_recharge View Post
    Hi I'm a little on the new side when it comes to Linux in general and I just installed Ubuntu a few days ago. There is a shared network drive that my school provides that I would like to have permanently mounted in Ubuntu. When performing this operation on Windows you simply click "map network drive" and enter the credentials. The address for the drive is like this: (where $something represents actual information)

    https://$something.$something.$something/share

    and there are username and password credentials to input as well.

    I've tried many other fixes found on the web and tried to adapt them to my needs but I'm missing something.

    currently i have the following line appended to my fstab file:

    Code:
    //$something.$something.$something/share cifs iocharset=utf8,credentials=/path/to/.smbcredentials,uid=1000 0 0
    when I run the
    Code:
    sudo mount -a
    command i get this as the error:

    Code:
    mount error(115): Operation now in progress
    Any help would be greatly appreciated and I thank you in advance for taking the time to look into this!
    I'll bet this is a WebDav share and not a Samba (CIFS) share. Check out web based sharing here.
    -BAB1

  5. #5
    Join Date
    Oct 2011
    Beans
    5

    Re: Permanently mount network drive

    I'll bet this is a WebDav share and not a Samba (CIFS) share. Check out web based sharing here.
    could you maybe point me to a preferred site? i'm not having much luck on my own.

  6. #6
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Permanently mount network drive

    Quote Originally Posted by static_recharge View Post
    could you maybe point me to a preferred site? i'm not having much luck on my own.
    Be more specific with what you are trying to mount. The site is public facing I assume. Are there any instructions at their site? Do they have any kind of documentation?
    -BAB1

  7. #7
    Join Date
    Oct 2011
    Beans
    5

    Re: Permanently mount network drive

    Quote Originally Posted by bab1 View Post
    Be more specific with what you are trying to mount. The site is public facing I assume. Are there any instructions at their site? Do they have any kind of documentation?
    The only documentation that they have is for windows or mac setups. This is a https share drive that the school uses to pass out and in assignments and required documents for the courses. On windows you just hit "map network drive" and fill in the info.

    Just recently I have been successful when connecting to the drive through "connect to server" but I don't know how to make it connect or mount automatically. Here is the info I filled out to get it to connect:

    Server: [servername] Port: 443
    Type: Secure WebDAV (HTTPS)
    Folder: /share
    Username: [username]
    Password: [password]
    checked "remember password"

    This works for that session but as soon as I log out or restart the computer I have to reenter this information.

    If you need any more information please let me know exactly what you are looking for and I will try my best to get it!

  8. #8
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Permanently mount network drive

    Quote Originally Posted by static_recharge View Post
    The only documentation that they have is for windows or mac setups. This is a https share drive that the school uses to pass out and in assignments and required documents for the courses. On windows you just hit "map network drive" and fill in the info.
    Yes, WebDav is very Windows centric and Windows Explorer has HTTP browsing capabilities. Unfortunately there has never been much interest in the FOSS world regarding this method.

    Just recently I have been successful when connecting to the drive through "connect to server" but I don't know how to make it connect or mount automatically. Here is the info I filled out to get it to connect:

    Server: [servername] Port: 443
    Type: Secure WebDAV (HTTPS)
    Folder: /share
    Username: [username]
    Password: [password]
    checked "remember password"

    This works for that session but as soon as I log out or restart the computer I have to reenter this information.

    If you need any more information please let me know exactly what you are looking for and I will try my best to get it!
    This is as close to the Windows way of accessing a WebDav enabled server as you are going to get using Linux. Once you have mounted the share you can bookmark it for future use. To bookmark the mounted share (in the Nautilus file browser) ou you can either click on Bookmarks>>Add Bookmark or you can just hit CNTL+D.

    There are 2 other ways. You can look in Firefox Plug-ins for a WebDav plug-in but you must use FireFox and not Nautilus. The second way is to install the userland filesystem called davfs and use it to mount the share via fstab. I warn you that this is VERY insecure. You must configure it very carefully. You are on your own there; I've not done this myself.

    So now you have the 3 ways to mount the share. I would do the first one. Nautilus knows how to mount the share securely and now you know how to book mark the share for easy access later on.

    Let me know how it works for you.
    Last edited by bab1; October 21st, 2011 at 07:01 AM.
    -BAB1

  9. #9
    Join Date
    Oct 2011
    Beans
    5

    Re: Permanently mount network drive

    Thank you, using the nautilus bookmark appears to work even after a restart and for my purposes that is perfect. Thanks again!

Tags for this Thread

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
  •