Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

in old times of smbfs I use codepage and iocharset options, but cifs does not support codepage. What I can do?

share|improve this question
    
You can upgrade the server to support Unicode. –  grawity Nov 2 '10 at 14:11
    
Comments for the bounty: I have essentially the same problem, in windows the file names show as expected, but in linux they show with a lot of weird characters. I tried various iocharset settings, to no avail. I don't control the server. –  Peltier Jun 17 '11 at 8:24
    
@harrymc: I'm using a rather old version of linux: Ubuntu Hardy Heron. Is there a way I can find out what OS the server is running? The windows client that works is an XP virtual machine running on the linux box. –  Peltier Jun 19 '11 at 19:04
    
@harrymc: smbclient -L fails with the following error:session setup failed: NT_STATUS_LOGON_FAILURE –  Peltier Jun 20 '11 at 9:17
1  
This maybe me being thick, but if mounting with SMBFS used to work, and CIFS does not work, then why not just keep using SMBFS? –  Kirk Jun 22 '11 at 3:45

1 Answer 1

I suppose your problem is with the file-names showing up with funny characters for an NTFS share.

According to the NTFS FAQ, the mount command supports the iocharset parameter for NTFS. You should pay particular attention to section 4 and try the mount commands given there.

In another article : smbfs & cifs; accentuated characters; solved, the author proposes three possibilities for mounting such shares :

mount //192.168.15.123/a /home/b/c -t cifs -o username=d,password=e,uid=f,gid=g,iocharset=utf8
mount //192.168.15.123/a /home/b/c -t cifs -o username=d,password=e,uid=f,gid=g,iocharset=utf8,codepage=cp437
mount //192.168.15.123/a /home/b/c -t cifs -o username=d,password=e,uid=f,gid=g,iocharset=utf8,codepage=cp850

For more info, the above article describes the author's consecutive tries and logic, until he got this working for him.

share|improve this answer
    
@Peltier: Please also mark this as the answer. I have deleted all my useless comments above. You should maybe do the same. –  harrymc Jun 23 '11 at 15:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.