Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-01-2004, 02:12 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 20

Rep: Reputation: 0
NTFS Partition has documents... need help with corrupted filenames


I have all my University-related ms-documents and files (over 100 of them) on my Windows xp partition, which is of course NTFS.
Now I'd really need all of those files moved to my linux-partition. I succeeded in mounting the windows partition np....... but the filenames are not correct! I presume its because ntfs uses utf-16 convention and linux ext3 uses utf-8, and my locales are in finnish, with alot of special characters that do not show up right in filenames.

Notice that there is no use for such tools as iconv... I dont need to mess with the filecontents, I only need the names right!

I tried different windows part. mounting options (like iocharset), with no luck.

I thought, that if I'd use something like winzip or winace to make a package of all those files and open it in linux, would that help?? Now the names are so corrupt (unregnized letters) that I cant even open them in openoffice....
Old 10-01-2004, 04:07 AM   #2
Registered: Sep 2003
Location: Manchester UK
Posts: 264

Rep: Reputation: 30
I know this is probably not what you are looking for, but if you have mounted the NTFS drive as read-only, the originals should still be intact? Can you not rename the originals to use UTF-8 and then copy them over? That way you can sort out the character problem when you have some free time, and not 2 days before that next paper is due in
Old 10-01-2004, 10:29 AM   #3
LQ Newbie
Registered: Sep 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Yes, I had the sense to mount it only with reading rights, so I haven't done any damage as of yet.

Still I'd hope there would be some simple thing to make things right... naming hundreds of documents by hand doesnt sound right to me.

How do u tell windows xp to use utf-8 instead of utf-16 in filenames?
Old 10-01-2004, 12:46 PM   #4
Not now, John!
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
What's your $LANG variable?
In my case it's $LANG=en_US.utf8 ("utf8" makes the difference).
If your locale is not set to utf8, set it.
Then mount your NTFS partition with:
mount -t ntfs -o iocharset=utf8 /dev/hdxx /mnt/ntfs
File names should be displayed correctly.
NTFS uses utf8 charset.


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
View NTFS Partition with Greek Filenames corectly (UBUNTU) thothoneos Linux - Newbie 2 10-29-2005 09:18 AM
Mount Corrupted NTFS Partition Under Linux omega71122 Linux - General 3 05-22-2005 08:55 PM
ntfs corrupted file recovery? evilop Linux - Newbie 5 09-21-2004 02:50 PM
Filenames on a vfat partition cav Linux - General 1 02-17-2003 02:15 PM
My Documents and ~/ sharing a partition Sakura_Samurai Linux - Newbie 1 06-05-2001 01:01 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:33 AM.

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