LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2007, 10:02 PM   #1
hazylama
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu DapperDrake
Posts: 9

Rep: Reputation: 0
cannot read cyrillic characters in file names


Hi Everybody,

Does anyone know how to make readable cyrillic characters in file names? I have several CDs, the content of which I'm trying to copy to external HD.. However, the file names contain cyrillic characters and my system can not read them and gives me this error message:

"Error "Invalid parameters" while copying "/media/cdr...? ???????]"

Here are some more details:

I can not rename these files... i can not copy them to external HD.. but i can copy them to my laptop..

I have added Russian Language support awhile ago and I have not had trouble reading cyrillic characters before.. As a matter of fact, I still have some audio files on my laptop that contain cyrillic characters and I can read them just fine.. and i can rename them or copy or do whatever i want to do with them..

So, i don't know if the problem is with my system, or with the CDs.. these are back up CDs I burned.. I can not remember if I've done it from under linux or windows..

Sorry for long description. I was trying to give all related details.
If anybody can help with this, I'll be very greatful and very happy
Thank you
 
Old 04-29-2007, 11:34 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
You say you have added Russian Language support -- How/where did you do this? Like, from the Desktop/GNOME? Have you got the necessary Native Language Support code-page compiled into the kernel? If so, I wonder if you may need to specify the character-set encoding in the mount command or in /etc/fstab for the device you are putting the discs into when mounting them?

If you could previously read such files aithout problems, has anything changed since then? Upgrades, downgrades, new kernel, different OS, that sort of thing?

Last edited by GrapefruiTgirl; 04-29-2007 at 11:42 PM.
 
Old 04-30-2007, 12:42 AM   #3
hazylama
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu DapperDrake
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your reply keeps my hopes up

I am totally new to this, so I don't think I compiled anything..
I have Ubuntu DapperDrake (the easiest one?) and all I did was I went to System>Administration>Language Support.. I marked Russian and it downloaded some packages and installed them.. That was long time ago.. I have added some other programs since then and upgraded whatever synaptic told me needed to be upgraded..
The weird thing is I am still able to see Cyrillic in the names of files I have currently on my computer.. I have a whole bunch of russian music and I read it just fine.. I just can not read these CDs... I think i probably burned them from under windows.. Could it be why? Could it be that my linux just can not see what has been created under windows?

Quote:
I wonder if you may need to specify the character-set encoding in the mount command or in /etc/fstab for the device you are putting the discs into when mounting them?
Could you please give me a little more specific instructions on how to do this? Untill now I've been just putting CDs in CD-ROM..
 
Old 04-30-2007, 10:26 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Ok, firstly, I haven't used Ubuntu for some time, so while this information might be only *partly* accurate, I'll try to point you to the correct HELP pages where necessary.
1 - For information on putting encoding flags in /etc/fstab, go in a console and type 'man fstab' and 'man mount'. These are help pages. The 'mount' halp page has all the possible options you can use when mounting media. Before going crazy editing the fstab file, your best bet will be to use the mount command in a console and experiment with it. A typical mount command is like:
Code:
mount -t iso9660 /dev/hdc /mnt/some-folder -o ro utf8
..that command would try to mount an iso9660-formatted CD in device HDC, on the mountpoint /mnt/some-folder, with options 'read-only' and character-set encoding UTF8.
The UTF8 part is where you would play around and see if another character-set would enable you to mount a CD with different character encodings.

Taking a guess, the method you used to add Cyrillic/Russian support is fine for reading/writing text, webpages, desktop stuff etc., but *might* not be enough for the disk drives and kernel to deal with Russian characters in filenames on mounted media, or perhaps the encoding on that media is not quite the same as that for which you have no trouble reading already.. The fact that the media might have been made with Windoze is relevant, but isn't the final word -- there is likely a way around it.

If this were me, I would look into the kernel compile, and see if/any Native Language Support has been made available for the Disk/IO/Media section. If you are very new to all this, you will want to do some reading about compiling a kernel, before getting into this. There are tonnes of threads around here about compiling the kernel, and also a small readme file inside the kernel source folder. If you can't find the kernel source code on your system in /usr/src/linux/, then it *should* be on the Install CD (not sure with Ubuntu) OR you can download it from a kernel mirror yourself.
The section you specifically want to look into is 'Native Language Support', where you can compile in language code-pages which allow the I/O system to handle media with foreign language filenames.
I have Russian/Cyrillic support built into my system, by several means; here are the codepages I have used in the kernel. This may look a bit cryptic right now, but IF/when you want/need to add Languages to the Kernel, the Descriptions and instructions are quite clear, and will tell you in English what each codepage is for:
Code:
# Kernel Native Language Support
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437
CONFIG_NLS_CODEPAGE_850
CONFIG_NLS_ASCII
CONFIG_NLS_ISO8859_1
CONFIG_NLS_ISO8859_15
CONFIG_NLS_UTF8
Best of success
С. Алехандр
 
Old 05-01-2007, 01:03 AM   #5
hazylama
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu DapperDrake
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks a lot for helping me out here

I've looked into "man fstab" and "man mount".. the last turned out to be 26 pages, so it'll take me awhile to get acquainted with it.. I didn't look into anything about compiling kernel yet.. I'm going to read all this in more detail and play with the mount command and see if I'm making any progress...

May I write you for more help once I have a better understanding of how to compile the kernel and/or add Native Language Support?(might take me a looooong time..)

But thanks for the detailed explanation, I will definitely look into all of this.

Спасибо
 
Old 05-01-2007, 07:31 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
You're welcome for the help! Comes around, goes around - and despite my post count, I am also very new to Linux ( 4 months now ) so I likely don't have all the answers you might need for getting the full Russian support you need. However, as far as going through the steps for compiling a kernel, I'd be happy to help you out. Just remember, while I can help with all the generic/basic kernel building & installing procedure, if there are any Ubuntu-specific differences, you may have to help me fill in the blanks.
My messenger address is in my profile. Feel free to contact me if you want some 'online support', I'll help where I can.

СВА
 
Old 05-01-2007, 07:59 PM   #7
hazylama
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu DapperDrake
Posts: 9

Original Poster
Rep: Reputation: 0
ok, thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with cyrillic file names while browsing FTP - please help! Vlastr Linux - Networking 1 04-29-2007 09:36 PM
I cannot Read Cyrillic Characters.. Ongeboren Slackware 8 05-28-2006 12:22 PM
Replacing characters in file names? yuccabrevifolia Linux - Software 1 04-19-2006 01:31 PM
rename file names with " ? characters fishbonz Linux - Newbie 2 05-31-2005 11:20 AM
I can't read cyrillic names of files on win98 partition, mounted in Slackware9.1 toodr Slackware 2 08-01-2004 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration