Page 106 of 137 FirstFirst ... 65696104105106107108116 ... LastLast
Results 1,051 to 1,060 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

  1. #1051
    Join Date
    Jan 2008
    Beans
    186

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    What is the exact command you're using to mount the share?



    Sorry, I've been out on a business trip and have only had sporadic internet connections.

    I think you should probably mount the share as danny's numeric uid (if you want to use it as danny) and gid 12345. I think that will give you the results you're after.

    Edit:
    Also, regarding the space in the mount line, you should always use [code] bbc markup because the code tags retain original formating. If you just post a single block of text, the forum will wrap the text to retain the CSS style.
    Hi (this will answers danny,s comment about not seeing anything in my fstab as well)
    I figured trying to mount manually 1st as per the 1st page in your post before embarking on editing my fstab. Here's the command I'm running and the resulting output

    HTML Code:
    cem@m3n78:~$ sudo mount -t cifs //LAN-DISK1/store1 /media/store1 -o guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777
    mount error(5): Input/output error
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    cem@m3n78:~$

  2. #1052
    Join Date
    Dec 2005
    Location
    Sweden
    Beans
    14
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Mount samba shares with utf8 encoding using cifs

    dmizer: thank you! if i recall correctly what your guide does was default in earlier versions of ubuntu, been bugging me since i installed jaunty a week ago, now everything's back to normal.

    //danny

  3. #1053
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    What is the exact command you're using to mount the share?



    Sorry, I've been out on a business trip and have only had sporadic internet connections.

    I think you should probably mount the share as danny's numeric uid (if you want to use it as danny) and gid 12345. I think that will give you the results you're after.

    Edit:
    Also, regarding the space in the mount line, you should always use [code] bbc markup because the code tags retain original formating. If you just post a single block of text, the forum will wrap the text to retain the CSS style.
    ok, prior to mounting either of the 2 shares: winxp_shared and winxp_pictures, the shared folder is owned by daniel and group daniel and is rwx for all. the pictures folder is owned by mythtv and group mythtv and is rwx by all. BUT after I mount them they become unwritable. so I have done what you suggested and made them uid daniel (1000) and gid mythtv (12345) BUT that still doesn't work.

    before mounting:
    drwxrwxrwx 2 daniel mythtv 4096 2009-08-06 19:44 winxp_pictures
    drwxrwxrwx 2 daniel daniel 4096 2009-08-01 12:53 winxp_shared

    after mounting:
    dr-xr-xr-x 1 daniel mythtv 0 2009-08-07 08:57 winxp_pictures
    dr-xr-xr-x 1 daniel mythtv 0 2009-07-29 13:05 winxp_shared

    and here's the fstab lines:
    Code:
    //192.168.0.4/My\040Pictures       /mnt/winxp_pictures     cifs    auto,noperm,noexec,users,nounix,uid=1000,gid=12345,credentials=/etc/samba/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777	0	0
    Code:
    //192.168.0.4/SharedDocs	/mnt/winxp_shared	cifs	auto,noperm,noexec,users,nounix,uid=1000,gid=12345,credentials=/etc/samba/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777	0	0

    what am i doing wrong?? I have checked the permissions on the windows side a million times and they are full control, what is weird though is that there is no write entry when I go into sharing for these 2 folders. see picture:

    i for some reason can't get to imageshack.com right now so I am posting to my mobileme public folder, you can download and view them from there. i would really appreciate it.

    http://idisk.mac.com/enterprise6-Public?view=web
    Attached Images Attached Images
    Last edited by dmizer; August 8th, 2009 at 10:05 PM.

  4. #1054
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Try adding the rw option.
    Code:
    //192.168.0.4/My\040Pictures       /mnt/winxp_pictures     cifs    rw,auto,noperm,noexec,users,nounix,uid=1000,gid=12345,credentials=/etc/samba/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777	0	0

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

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by corkscrew View Post
    Hi (this will answers danny,s comment about not seeing anything in my fstab as well)
    I figured trying to mount manually 1st as per the 1st page in your post before embarking on editing my fstab. Here's the command I'm running and the resulting output

    Code:
    cem@m3n78:~$ sudo mount -t cifs //LAN-DISK1/store1 /media/store1 -o guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777
    mount error(5): Input/output error
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    cem@m3n78:~$
    Add the nounix option to your mount command like so:
    Code:
    sudo mount -t cifs //LAN-DISK1/store1 /media/store1 -o guest,nounix,rw,iocharset=utf8,file_mode=0777,dir_mode=0777

  6. #1056
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    Try adding the rw option.
    Code:
    //192.168.0.4/My\040Pictures       /mnt/winxp_pictures     cifs    rw,auto,noperm,noexec,users,nounix,uid=1000,gid=12345,credentials=/etc/samba/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777	0	0
    nope, that didn't do it either. do you use simple file sharing in winxp or is it in vista? i am not using simple file sharing. i just can't believe i have a total of 5 or 6 shares from winxp and all of them but the pictures and the shared folder just will NOT mount writable. i don't knaw what elsse to do. i have covered every base I can think of.

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

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dannyboy79 View Post
    nope, that didn't do it either. do you use simple file sharing in winxp or is it in vista? i am not using simple file sharing. i just can't believe i have a total of 5 or 6 shares from winxp and all of them but the pictures and the shared folder just will NOT mount writable. i don't knaw what elsse to do. i have covered every base I can think of.
    Would you believe ...

    I haven't used Windows file sharing at all for the past 3 years. I only have one Windows network I administer. The server is Ubuntu Dapper, and I've disabled file sharing on all the clients, so everything I know about Samba and CIFS, I've gleaned from supporting this thread.

    Are all the Windows computers able to read and write to one another? Do I recall correctly that you said you are able to read and write correctly when using smbclient? What is the output of:
    Code:
    smbtree

  8. #1058
    Join Date
    Jan 2008
    Beans
    186

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    Add the nounix option to your mount command like so:
    Code:
    sudo mount -t cifs //LAN-DISK1/store1 /media/store1 -o guest,nounix,rw,iocharset=utf8,file_mode=0777,dir_mode=0777
    Success!!! thank you very much for your patience dmizer, i've been struggling with this for weeks.

    The nounix edit did the trick I managed to mount both NAS drives using this, further more I then edited my fstab including the same edit again perfect. My next steps are too putmy passwords back on the drives and try again.

    One niggle is there is quite a delay when I shut the machine down, the screen goes black and 2 messages appear I will need to scribble them down and post, one starts cifs vfs....

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

    Re: Mount samba shares with utf8 encoding using cifs

    That would be "CIFS VFS: Server not responding". There's a fix for that listed in the tutorial under the "Troubleshooting" section.

  10. #1060
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,282
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    Would you believe ...

    I haven't used Windows file sharing at all for the past 3 years. I only have one Windows network I administer. The server is Ubuntu Dapper, and I've disabled file sharing on all the clients, so everything I know about Samba and CIFS, I've gleaned from supporting this thread.

    Are all the Windows computers able to read and write to one another? Do I recall correctly that you said you are able to read and write correctly when using smbclient? What is the output of:
    Code:
    smbtree
    well, smbclient appears to work. i was able to mkdir as well as mput a text.txt file on the share. see below:

    Code:
    daniel@dell:~$ smbclient \\\\WINXP\\SharedDocs
    Enter daniel's password:
    Domain=[WINXP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
    smb: \> mput test.txt
    Put file test.txt? Y
    putting file test.txt as \test.txt (0.0 kb/s) (average 0.0 kb/s)
    smb: \> ls
      .                                  DR        0  Mon Aug 10 10:46:14 2009
      ..                                 DR        0  Mon Aug 10 10:46:14 2009
      .Trash-root                         D        0  Mon Nov 26 20:47:11 2007
      Adobe PDF 6.0                       D        0  Fri Sep 28 18:58:26 2007
      ballys_renewal_4-21-2009.pdf        A   107253  Tue Jun  2 08:32:06 2009
      current_benefit_costs               A   121940  Wed Apr 15 19:32:33 2009
      desktop.ini                       AHS      128  Mon Aug 13 01:13:46 2007
      dvd                                 D        0  Wed Jul 29 12:01:32 2009
      fesity-fstab.txt                    A     1776  Fri Jun 12 23:39:47 2009
      InstallUtil.exe                     A    28672  Wed Oct 24 01:47:40 2007
      InstallUtil.InstallLog              A      736  Tue Jun  2 20:26:43 2009
      InstallUtilLib.dll                  A    65032  Wed Oct 24 01:47:40 2007
      iphone                              D        0  Fri Jul  3 14:18:12 2009
      linux-distros                       D        0  Wed Jul 29 09:37:46 2009
      My Music                           DR        0  Thu Jul  9 12:32:19 2009
      My Pictures                        DR        0  Sun Apr 19 17:14:51 2009
      My Videos                          DR        0  Mon May  4 12:34:51 2009
      mythtv frontend universal           D        0  Fri Jun 26 18:59:48 2009
      pet warehouse.pdf                   A  1036315  Sun Jun  7 07:31:14 2009
      printer                             D        0  Sun Jun  7 07:31:53 2009
      send to printer link.txt            A       55  Tue Jun  2 20:03:55 2009
      SendToPrinter.exe                   A    20480  Mon Mar 30 15:45:46 2009
      SendToPrinter.InstallLog            A      810  Tue Jun  2 20:26:43 2009
      SendToPrinter.InstallState          A     5012  Tue Jun  2 20:26:43 2009
      SendToPrinterConfig.xml             A      201  Tue Jun  2 20:08:27 2009
      test                                D        0  Mon Aug 10 10:45:06 2009
      test.txt                            A        0  Mon Aug 10 10:46:14 2009
      xbox_suff                           D        0  Wed Jul 29 13:58:15 2009
      zek_kit.jpg                         A   231130  Thu Jun 11 21:48:16 2009
    
                    38142 blocks of size 2097152. 20980 blocks available
    smb: \> exit
    when I issue smbtree and enter the password for the windows machine shares (all usernames and password are the same. this is what it returns:
    Code:
    daniel@dell:~$ smbtree
    Password:
    LINUX
            \\WINXP                         dans windows computer
                    \\WINXP\LexmarkX        Lexmark X5400 Series
                    \\WINXP\Printer         Microsoft XPS Document Writer
                    \\WINXP\C$              Default share
                    \\WINXP\ADMIN$          Remote Admin
                    \\WINXP\My Pictures     WINXP Pictures
                    \\WINXP\WINXP My Videos
                    \\WINXP\I$              Default share
                    \\WINXP\print$          Printer Drivers
                    \\WINXP\SharedDocs      WINXP Shared docs
                    \\WINXP\D$              500gb on winxp
                    \\WINXP\IPC$            Remote IPC
                    \\WINXP\daniel
                    \\WINXP\xbox_games
            \\DELL                          dell
                    \\DELL\IPC$             IPC Service (dell)
                    \\DELL\music            Mythtv music on dell
                    \\DELL\videos           Mythtv videos on dell
                    \\DELL\recordings       TV Recordings on dell
                    \\DELL\mythtv           Mythtv folder on dell
                    \\DELL\music2           Music2 folder on dell
                    \\DELL\fat32            Movies on dell
                    \\DELL\fat32_movies     Movies on dell
                    \\DELL\500gb1           500gb1 storage on dell
                    \\DELL\500gb            500gb storage on dell
                    \\DELL\recordings2      MythTV secondary folder on dell
                    \\DELL\print$           Printer Drivers
            \\CORE2DUO                      core2duo
                    \\CORE2DUO\pdf
                    \\CORE2DUO\print$               Printer Drivers
                    \\CORE2DUO\daniel               Home Directories
                    \\CORE2DUO\danielvideos         Daniel Videos folder on core2duo
                    \\CORE2DUO\IPC$                 IPC Service (core2duo)
    so why does smbclient work but mounting it with fstab doesn't? i ahev ensured that /etc/samba/.smbcredentials does contain this:

    username=daniel
    password=mazDA@01!

    and yes, there is a empty line after the password line. isn't there suppose to be? is it maybe a problem with cifs? I did try smbfs as well. it just won't mount writable. i thought this would be an easy problem but it's being just the opposite. i believe i have documented all the pertinent info, let me know if there's more you need to see and I'll be happy to post as I really need to solve this issue. all my pictures are on the windows machine, I am just about to move them over to ext3 on linux if I can't figure this out. what weird is that the other windows shares are writable and I am using the same exact fstab entries and i have verified that all permissions on the 2 windows shares are the same as the shares that are writable. folder permissions on the linux folders prior to mounting are all rwx by all. WEIRD hey?
    Last edited by dannyboy79; August 10th, 2009 at 04:52 PM.

Page 106 of 137 FirstFirst ... 65696104105106107108116 ... 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
  •