Results 1 to 6 of 6

Thread: How to mount a windows network drive on Ubuntu Server

  1. #1
    Join Date
    Mar 2006
    Location
    Dallas, TX
    Beans
    367
    Distro
    Ubuntu 12.10 Quantal Quetzal

    How to mount a windows network drive on Ubuntu Server

    I just installed and configured a Ubuntu 8.04 Server. I installed LAMP and the Samba File Server. I Know want to be able to access/mount a Windows Shared Network Drive. Is this possible? If so how? Any advice will be appreciated. Thanks.
    Hello..my name is Nono
    Linux User #415998

  2. #2
    Join Date
    Jan 2007
    Beans
    68

    Re: How to mount a windows network drive on Ubuntu Server

    My prefered way is:

    Add this line to /etc/fstab:
    Code:
    //smbserver/sharename /mountpoint cifs credentials=/home/user/.smbpasswd,uid=user,gid=group 0 0
    Create a file called .smbpasswd wich contains:

    Code:
    username=user
    passwod=yourpass
    Now you can mount your share with:

    Code:
    mount /mountpoint

  3. #3
    Join Date
    Apr 2008
    Beans
    73

    Re: How to mount a windows network drive on Ubuntu Server

    Quote Originally Posted by ezacon View Post
    My prefered way is:

    Add this line to /etc/fstab:
    Code:
    //smbserver/sharename /mountpoint cifs credentials=/home/user/.smbpasswd,uid=user,gid=group 0 0
    Create a file called .smbpasswd wich contains:

    Code:
    username=user
    passwod=yourpass
    Now you can mount your share with:

    Code:
    mount /mountpoint
    That works, but it's an old school way. I prefer to use autofs, to automatically mount such network drives on demand, and automatically unmount them after some configurable idle period.

    I find that if windows "shares" are statically mounted for too long, they go stale and start having I/O problems.

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to mount a windows network drive on Ubuntu Server

    Here is a good How-To you should see.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Mar 2006
    Location
    Dallas, TX
    Beans
    367
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to mount a windows network drive on Ubuntu Server

    Thank you very much for the advice. I will try them.
    Hello..my name is Nono
    Linux User #415998

  6. #6
    Join Date
    May 2008
    Location
    my(@HOME, -$NJ)
    Beans
    296
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to mount a windows network drive on Ubuntu Server

    I use pmount to auto mount ntfs drives

    sudo apt-get install pmount

    sudo apt-get install ntfs-3g

    reboot

    If auto-mount failed you can try to mount your drive manually with this command:

    sudo pmount-hal /dev/sda1 (or whatever drive you are trying to mount)

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
  •