Author Topic: Samba Vs Usb-cf Mounting (fixed!)  (Read 2174 times)

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Samba Vs Usb-cf Mounting (fixed!)
« on: June 20, 2006, 07:32:07 am »
When I use PC-link in storage mode, I can browse and copy files (english and chinese filenames) back and forth from WindowsXP to my Akita running Cacko1.23 without a glitch.

But when I link my Akita and WindowsXP with network and use samba to share out directories ... chinese filenames on my Z do *not* appear on my explorer in WindowsXP at all. When I create a folder or file with chinese file name onto the samba share via WindowsXP (PC->Z), it appears ok on my PC, but on the Z, it appears corrupted, the filename ie.

I read another thread about someone having similar problems with japanese filenames ... and thought of finding the codepage files for my Z.

Question:
1. Which codepage should I use? 850 codepage files already exist. They are the only ones I found for samba. Any other ones I should download?
2. smb.conf has three settings:

coding system = UTF8
character set = 850
client code page = 850

I currently have this setting.

2.1 Who's character set is it?
2.2 Client here I presume refers to the PC, since samba is running on Z as server. yes?
3. Should I be using codepage 1252 which is the default that Windows uses? or 8859-1?

Thanks for any help and suggestion.

PS: I read on another thread that Cacko 1.23 already have samba installed and uses inetd commands ... but I hope not to tear down an otherwise perfectly working samba setup.
« Last Edit: June 20, 2006, 08:32:58 am by Snappy »
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Samba Vs Usb-cf Mounting (fixed!)
« Reply #1 on: June 20, 2006, 08:41:34 am »
ok, I finally got it fixed ... :D

For those who uses Cacko 1.23 English locale but need to display Chinese filenames via samba, and could not read on. For those who could, ... why didn't you reply earlier??

I downloaded http://zaurus.spy.org/feeds/cacko/pdaXrom/....9_armv5tel.ipk

which contains the codepage for Big5. I believe the two files codepage.950 and unicode_map.950 are platform independent, unicode_map probably contains a mapping between DBCS->UNICODE mapping for Big5.

Anyway, I installed it into Cacko 1.23 and had to link these two files.
1. From /home/root/usr/share/samba/codepages/codepage.950 to
/home/root/usr/lib/samba/codepages/codepage.950 and
/home/root/usr/local/samba/lib/codepages/codepage.950

2. From /home/root/usr/share/samba/codepages/unicode_map.950 to
/home/root/usr/lib/samba/codepages/unicode_map.950 and
/home/root/usr/local/samba/lib/codepages/unicode_map.950

3. modify /etc/samba/smb.conf

coding system = UTF8
character set = 850 <---- for the filenames on Z
client code page = 950 <---- WindowsXP

EDIT: One of the above is right ...

4. I also modified fstab to include 'iochars=utf8' in the options for CF and SD. Not sure if they mattered, since it didn't work until I installed the codepage file.

restart samba if its running. Done. Enjoi!
« Last Edit: June 20, 2006, 08:59:16 am by Snappy »
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>