Results 1 to 10 of 10

Thread: Mapping network drives

  1. #1
    Join Date
    Feb 2014
    Beans
    5

    Mapping network drives

    I am trying to set up some Linux boxes (13.10) at work.
    I have managed to mount 2 shared drives fairly easily but then I cannot seem to add any more.

    My fstab entries look like this:

    //192.168.1.116/public /media/I_drive cifs credentials=/home/knightmayre/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

    //192.168.1.101/c /media/J_drive cifs credentials=/home/knightmayre/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

    //192.168.56.60/scanner /media/S_drive cifs credentials=/home/knightmayre/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

    I_drive and J_drive have no issues, but the 3rd entry gives me a weird error message:

    mount: only root can mount //192.168.56.60/scanner on /media/S_drive

    I can ping the machine fine, just can't mount it. I have stared and stared at this and can't see anything wrong.
    Any assistance would be greatly appreciated!

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Mapping network drives

    I'd try to mount it manually in a terminal and turn the verbosity WAY UP to see the issue. Could that other box use newer authentication?
    Can you browse to that share using Nautilus?

  3. #3
    Join Date
    Feb 2014
    Beans
    5

    Re: Mapping network drives

    No, I can't get access to that share at all... ******* boxes have no issues, straight in.
    I did a NET USE to get the full path of the shares but no luck, even just using smb://IPAddress/ShareName (don't know how to get that into verbose mode)

    I know I must be doing something wrong but I have no idea what lol

  4. #4
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Mapping network drives

    Could be off the ball but,

    //192.168.56.60/scanner /media/S_drive cifs credentials=/home/knightmayre/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

    There is a space between 'scanner' and '/media'. Should that be there? Also, can you try mounting it manually with:

    sudo mount -a

    ? (or the specific path to the partition/folder).

  5. #5
    Join Date
    Feb 2014
    Beans
    5

    Re: Mapping network drives

    Thanks for the reply but there is also a space before /media on the 1st 2 working entries.

    I run sudo mount -a when I make changes to fstab but now I'm getting a permission denied error which hasn't happened before.

    edit: when I re-add the 3rd line I get a popup saying "S_drive has been connected" but I cannot access it (same error as on first post).
    Last edited by dave93; February 18th, 2014 at 04:34 AM.

  6. #6
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Mapping network drives

    Removed duplicate post.

    I see the spaces now, yes.

  7. #7
    Join Date
    Feb 2014
    Beans
    5

    Re: Mapping network drives

    Thanks, I was trying to remove it myself

    Progress:
    //192.168.56.60/scanner /home/testing cifs username=xxxxx,password=xxxxx,uid=1000 0 0

    That line works, all I do is go into the folder called testing & everything I need is in there.
    All I need to do now is to get it to go to smbcredentials to get my user credentials rather than read it in plain text in fstab.

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Mapping network drives

    They could be using AD+Kerberos for authentication.

    Does smbclient or a manual mount command work provide better diagnostics? Dump the GUI, but we need some log messages. smbtree is another useful cmd for diagnosing stuff like this. RTFM to the detailed options and how to turn up the messages (verbosity).

  9. #9
    Join Date
    Feb 2014
    Beans
    5

    Re: Mapping network drives

    No, we only have 1 server using AD and that's not part of the network that I am trying to access.
    I discovered that it was a permissions issue, think it was trying to use the wrong credentials.

    I amended my fstab file to look like this and it works, although drive Z is incredibly slow when compared to a ******* box accessing the sane folder.

    //192.168.1.116/public /media/I_drive cifs credentials=/home/knightmayre/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

    //192.168.1.101/c /media/J_drive cifs credentials=/home/knightmayre/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

    //192.168.56.60/scanner /media/S_drive cifs username=myusername,password=mypassword,uid=1000 0 0

    //192.168.16.114/Drive_Z/Backup /media/Z_drive cifs username=username,password=password,domain=domainn ame,uid=1000 0 0

    I had to create a new user on the machine that hosts Drive_Z and once I put that info into fstab, it works!

    Any ideas why the Z drive is so slow? It takes minutes to open a large folder.
    But I'm happy I made progress as I didn't have a clue what TheFu was on about. lol

    Cheers

  10. #10
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Mapping network drives

    /etc/fstab is a world readable file. Just sayin'.

    Those tools are used from a terminal.
    Those tools have "verbosity" options that can be enabled.
    The output from those tools when verbosity is enabled will provide information about any failures.
    With the information, it is possible to determine the exact issue. No more trial and error techniques.

    That is all.

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
  •