Results 1 to 4 of 4

Thread: Connecting To Shared Network Drive

  1. #1
    Join Date
    Jul 2005
    Location
    Baltimore, MD
    Beans
    461
    Distro
    Ubuntu 12.04 Precise Pangolin

    Connecting To Shared Network Drive

    https://help.ubuntu.com/9.10/interne...ng-shares.html

    The instructions in the preceding link were used to share an external hard drive on my network. I'm having trouble connecting to it from another Ubuntu PC on the network. (Just for clarification: Both PC's are running Ubuntu 9.10.) When I go to the network folder, I see it, but I get the error, "Unable to mount Windows drive." Both computers have Samba installed. Any suggestions?

  2. #2
    Join Date
    Jul 2005
    Location
    Baltimore, MD
    Beans
    461
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Connecting To Shared Network Drive

    Bump.

  3. #3
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: Connecting To Shared Network Drive

    You don`t need samba to share from Ubuntu to Ubuntu.

    On both machines -
    Code:
     sudo apt-get install openssh-server openssh-client
    One of them is installed by default but I can`t remember which one.

    Then in your menu go Places > Connect to server

    In the top box choose ssh

    In the next one put user@ipaddress of the remote machine.

    Put a check in the bookmark box and chooser a name for the bookmark.

    Your other computers entire file system will now be accessible from your Places menu.

    If you just want to mount a folder you can use sshfs

    Code:
    sudo apt-get install sshfs
    On the machine you want to mount the network folder on
    Code:
    sshfs -o idmap=user $USER@192.168.2.10:/media/music/ ~/music
    This assumes you have the same username on both computers, if not change $USER for the other username

    obviously change the paths and ipaddress to your ones.

  4. #4
    Join Date
    Dec 2009
    Beans
    6,772

    Re: Connecting To Shared Network Drive

    If the external drive is formatted in ntfs or fat32 then it's likely this isn't a samba problem but a linux permissions problem. There are a couple of ways to fix this problem. The easiest is to add the following line to the smb.conf file:

    Code:
    force user = your_ububntu_login_user_name
    Depending on which method you used to share the drive it will either be in the [global] section if you used Nautilus-share or in the share definition section if you used Classic samba. If you post the output of the following commands I can give you a better idea where to put it:

    Open Terminal
    Type net usershare info
    Type testparm -s

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
  •