Page 83 of 137 FirstFirst ... 3373818283848593133 ... LastLast
Results 821 to 830 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

  1. #821
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mounting the DFS root for a perticular server not implemented yet

    Quote Originally Posted by nargis.himani View Post
    I want linux command/shell script similar to ‘net use’ (windows)
    I feel mount is one of the ways to get access of network drives on linux.
    I need help regarding the mounting network device with ubuntu. The scenario is as follow.
    I am using mount.cifs. It is working when I give some shared dir with servername but what we want is mounting with only host name
    i.e.:
    mount.cifs //servername/shared /mydir/mountpoint -o user=username password=mypassword domain=mydomain
    is working fine ,but
    mount.cifs //servername /mydir/mountpoint -o user=username password=mypassword domain=mydomain
    is not working.
    If any other way or approach can help to achieve the same than plz let me know.
    The method outlined in this tutorial is mounting. You cannot mount a server, you can only mount a directory. This is equivalent to Windows "map network drive" functionality.

  2. #822
    Join Date
    Jan 2009
    Beans
    2

    Re: Mounting the DFS root for a perticular server not implemented yet

    Quote Originally Posted by dmizer View Post
    The method outlined in this tutorial is mounting. You cannot mount a server, you can only mount a directory. This is equivalent to Windows "map network drive" functionality.
    than what can be the similer to 'net use' with windows

  3. #823
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mounting the DFS root for a perticular server not implemented yet

    Quote Originally Posted by nargis.himani View Post
    than what can be the similer to 'net use' with windows
    Click "Places" > "Connect to server"
    Change the service type to "Windows share" and type in the server name.

    Notes:
    1) Performance is bad
    2) Connections are sometimes finicky.
    3) You'll have to setup a Samba server on Ubuntu so you can specify the netbios name and workgroup.
    4) Correctly configure winbind (as outlined in this tutorial)
    Last edited by dmizer; January 7th, 2009 at 03:17 PM.

  4. #824
    Join Date
    Oct 2008
    Location
    New Zealand
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mount samba shares with utf8 encoding using cifs

    hi there dmizer

    I'm trying to connect to a NAS server. my fstab file reads:

    Code:
    //backup2/backup    /media/backup2/        cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
    However I'm getting this error when running sudo mount -a

    Code:
    mount error 5 = Input/output error
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    Any suggestions?

    thanks

    Scoopy

  5. #825
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by scoopy View Post
    hi there dmizer

    I'm trying to connect to a NAS server. my fstab file reads:

    Code:
    //backup2/backup    /media/backup2/        cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
    However I'm getting this error when running sudo mount -a

    Code:
    mount error 5 = Input/output error
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    Any suggestions?

    thanks

    Scoopy
    According to this post: http://ubuntuforums.org/showpost.php...&postcount=203 rebooting fixed the problem. Have you rebooted since editing fstab?

  6. #826
    Join Date
    Oct 2008
    Location
    New Zealand
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    According to this post: http://ubuntuforums.org/showpost.php...&postcount=203 rebooting fixed the problem. Have you rebooted since editing fstab?
    Sorry, that didn't work.

    any other thoughts?

    Scoopy

  7. #827
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by scoopy View Post
    Sorry, that didn't work.

    any other thoughts?

    Scoopy
    Please post the output of:
    Code:
    cat /etc/nsswitch.conf | grep hosts

  8. #828
    Join Date
    Oct 2008
    Location
    New Zealand
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    Please post the output of:
    Code:
    cat /etc/nsswitch.conf | grep hosts
    #hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
    hosts: files wins dns

    Thanks for your help

    Scoopy

  9. #829
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Try changing "backup2" to backup2's IP address:
    Code:
    //IP.address.here/backup    /media/backup2/        cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

  10. #830
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Just noticed this. You should not end your server or mount path with a "/". So you should change this: "/media/backup2/" to this "/media/backup2"

Page 83 of 137 FirstFirst ... 3373818283848593133 ... LastLast

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
  •