View previous topic :: View next topic |
Author |
Message |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Wed Jul 13, 2005 10:48 pm Post subject: Cyrillic filenames on NTFS partition |
|
|
This is probably not the best place to ask this question, but if you could point me to where is (which kernel mailing list, etc), I'd appreciate that.
I have connected a hard drive to my laptop through a USB enclosure, and the hard drive has an NTFS partition on it. I can mount it fine, and I can see (and open) all the files whose filenames are in English. However, a large number of files on that partition are named in Russian (so they have Cyrillic characters in their names). None of these files show up. I can see them fine in Windows, but in Linux they are just not there. I would like to get around this problem somehow. I would even opt for renaming them all in Windows if there was a script (in Windows) that would do it automatically (there are a lot of them).
For reference my kernel version is 2.6.7-gentoo-r9.
Thanks for your help. |
|
Back to top |
|
 |
widan Veteran


Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Wed Jul 13, 2005 10:58 pm Post subject: |
|
|
In the filesystem menu in menuconfig, there is a "Native Language Support" section. Select all the items in it and recompile the kernel. They are translation tables for converting characters between the encoding used by Windows and the one used by Linux. |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Wed Jul 13, 2005 11:03 pm Post subject: |
|
|
Thanks a lot for the advice. I'll try it out tonight. |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Thu Jul 14, 2005 4:31 am Post subject: |
|
|
Unfortunately this hasn't solved the problem. /proc/config.gz shows that every NLS codepage is compiled in, but the files are still not shown.
Any other suggestions or advice? |
|
Back to top |
|
 |
ZmiyGorinich Guru


Joined: 27 Feb 2004 Posts: 369 Location: Zaporizhzhe, Ukraine
|
Posted: Thu Jul 14, 2005 7:40 am Post subject: |
|
|
Try:
Code: | mount /dev/hdd1 /mnt/window -o utf8 |
_________________ Home: Athlon XP 2000+, ATI Radeon 9200 64Mb, 512Mb, hda:40Gb, hdb:120Gb, DVD-RW
Work : Duron 1.4, S3 ProSavage8 32Mb, 512Mb, hda:40Gb, CD-RW
Design, programming, hosting |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Thu Jul 14, 2005 3:23 pm Post subject: |
|
|
Ah, thanks a lot for this pointer. utf8 produces gibberish (but at least shows the filenames), but setting iocharset=koi8-r (in options instead of utf8) shows everything correctly. Problem solved! Thanks a lot.
I am posting a related problem under Desktop Environments (konqueror shows Cyrillic filenames fine, but konsole shows them as question marks). |
|
Back to top |
|
 |
ZmiyGorinich Guru


Joined: 27 Feb 2004 Posts: 369 Location: Zaporizhzhe, Ukraine
|
Posted: Thu Jul 14, 2005 3:58 pm Post subject: |
|
|
What is your locale? _________________ Home: Athlon XP 2000+, ATI Radeon 9200 64Mb, 512Mb, hda:40Gb, hdb:120Gb, DVD-RW
Work : Duron 1.4, S3 ProSavage8 32Mb, 512Mb, hda:40Gb, CD-RW
Design, programming, hosting |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Thu Jul 14, 2005 9:47 pm Post subject: |
|
|
Everything but LANG=ru_RU.koi8r, everything else (including LC_ALL) is set to C. |
|
Back to top |
|
 |
widan Veteran


Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Thu Jul 14, 2005 10:01 pm Post subject: |
|
|
Try to set LC_CTYPE=ru_RU.koi8r, it defines what characters are considered alphanumeric. |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Thu Jul 14, 2005 10:11 pm Post subject: |
|
|
Oddly enough it's not letting me set LC_CTYPE directly (at least changing the environment variable has no effect on the output of locale), but setting LC_ALL worked. However, that had no effect on how the filenames are displayed (still question marks). |
|
Back to top |
|
 |
canal Apprentice

Joined: 28 Sep 2004 Posts: 203
|
Posted: Fri Jul 15, 2005 1:50 am Post subject: |
|
|
foxcub wrote: | Oddly enough it's not letting me set LC_CTYPE directly (at least changing the environment variable has no effect on the output of locale), but setting LC_ALL worked. However, that had no effect on how the filenames are displayed (still question marks). |
If you are doing stupid things you deserve stupid results. RTFM, #!^@%#! If you've ever set LC_ALL your other settings must be ignored. Some programs (by mistake) still use LANG or even LC_CTYPE but correct ones will use only LC_ALL - and nothing else. Correct way (for correct programs anyway) is to set only LANG - and nothing else (may be LC_NUMERIC to use decimal dot and not decimal comma - a lot of programs are unhappy with decimal comma).
P.S. I know of one incorrect program from the top of my head: Wine. It only honours LC_ALL! Since I've not used it for almost year I'm not sure - may be it's fixed by now. |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Fri Jul 15, 2005 1:56 am Post subject: |
|
|
What exactly is your point, and how is this relevant to my problem? I've tried setting LC_ALL and LANG, and whatnot (in various combinations) to ru_RU.koi8r, and in some of those combinations it has accepted the changes (as indicated by locale), however, it has had no effect on my problem: the filenames are still question marks. Do you have any suggestions that can help me, or are you just pointing out some minor mistake that is of no use to me right now?
BTW, try to be more careful (read: nicer) in your choice of words next time. |
|
Back to top |
|
 |
ZmiyGorinich Guru


Joined: 27 Feb 2004 Posts: 369 Location: Zaporizhzhe, Ukraine
|
Posted: Fri Jul 15, 2005 6:30 am Post subject: |
|
|
Set your locale to UTF8 and you don't will be have any problems _________________ Home: Athlon XP 2000+, ATI Radeon 9200 64Mb, 512Mb, hda:40Gb, hdb:120Gb, DVD-RW
Work : Duron 1.4, S3 ProSavage8 32Mb, 512Mb, hda:40Gb, CD-RW
Design, programming, hosting |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Fri Jul 15, 2005 6:48 am Post subject: |
|
|
Nope, didn't do the trick. locale is reporting everything UTF8, but the letters are still question marks. |
|
Back to top |
|
 |
ator n00b

Joined: 21 Feb 2004 Posts: 54 Location: Kzn
|
Posted: Fri Jul 15, 2005 6:59 am Post subject: |
|
|
Change your font on something like Georgia or Tahoma (even better) from msfonts. |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Fri Jul 15, 2005 7:05 am Post subject: |
|
|
The only font available from the MS pack to me in konsole is Courier New (I think it only gives me fixed-width fonts), however, switching to it did nothing. |
|
Back to top |
|
 |
ator n00b

Joined: 21 Feb 2004 Posts: 54 Location: Kzn
|
Posted: Fri Jul 15, 2005 7:27 am Post subject: |
|
|
Well, emerge corefonts, put FontPath "/usr/share/fonts/corefonts/" in your xorg.conf. Corefonts is free msfonts pak. And maybe: |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Fri Jul 15, 2005 7:47 am Post subject: |
|
|
I do have corefonts installed. Courier New is from it. Konsole itself is only showing me fixed-width fonts (nothing else in corefonts is fixed-width if I'm not mistaken), so I don't think that's the problem. |
|
Back to top |
|
 |
ator n00b

Joined: 21 Feb 2004 Posts: 54 Location: Kzn
|
Posted: Fri Jul 15, 2005 10:18 am Post subject: |
|
|
Then excuse me and my poor English, i can't write long explanations. Question marks because of lack of Cyrillic glyphs in font or inconsistency between current charset and one with which file system mounted. Try mount with -o codepage=cp866, iocharset=utf8. |
|
Back to top |
|
 |
foxcub Tux's lil' helper

Joined: 25 Jun 2002 Posts: 131 Location: North Carolina
|
Posted: Fri Jul 15, 2005 3:26 pm Post subject: |
|
|
It has rejected the particular options that you have suggested (can't mount with them), however, I think the problem is a bit deeper than mismatch with the glyphs --- I get the same behavior on ext3 filesystem, at the same time everything looks find in konqueror. See my "full" post on the subject on the other forum.
BTW, what's your native language? |
|
Back to top |
|
 |
|