PDA

View Full Version : NTFS filename mangling



foobar13
08-29-2003, 09:15 PM
Hi --

Is there a way to make unprintable characters into 3 letter sequences when you mount an NTFS partition? "-o uni_xlate " does not work (i guess the man page is lying about it).

Thanks
foo

Dave_Bechtel
08-29-2003, 09:53 PM
--Read the man page again:

uni_xlate=[0|1|2]
For 0 (or `no' or `false'), do not use escape sequences for
unknown Unicode characters. For 1 (or `yes' or `true') or 2,
use vfat-style 4-byte escape sequences starting with ":". Here 2
give a little-endian encoding and 1 a byteswapped bigendian
encoding.

--You have to do something like -ouni_xlate=1. However, I have had good luck with -o utf8. Try it and see which works best for you.


Hi --

Is there a way to make unprintable characters into 3 letter sequences when you mount an NTFS partition? "-o uni_xlate " does not work (i guess the man page is lying about it).

Thanks
foo

foobar13
08-29-2003, 10:34 PM
Here is what I type:

# mount -r -t ntfs -ouni_xlate=1 /dev/sda2 /mnt/sda2

Here is what I get:

NTFS: unkown option 'uni_xlate'
mount: wrong fs type <etc, etc>

I have read the man page a number of times--this doesn't work.

When I less a directory after utf8, I get some weird characters in the output in brackets.

Thanks for your attention.
W

Dave_Bechtel
08-30-2003, 11:14 PM
--Well, I had quite a long post here explaining various things, and accidentally closed the browser window. :oops: :roll:

--This is one reason why I hate NTFS, and still use Win98se. There are plenty of utilities in Linux to help you rename files, but we can't write the changes back to an NTFS file system!!

--Basically, I don't allow weird chars (yes, that includes spaces) in my filenames (except for system-default stuff like Program Files, that can't be changed.) If it's not a-z, a dash or a number, it ain't in my filename. (That's right, I don't even like _UNDERSCORES_. Why type one of those when you can have a dash instead?) Moreover, my filenames are lower-case wherever possible. It's just faster to type all lower-case and dashes, when you don't have to hit Shift.

--My suggestion is to take note of which filenames are coming up weird, and rename them to something simpler in Windows. Google is your friend - here are some links that I hope will help. PLEASE let the board know if one of them helps!!

http://dmoz.org/Computers/Software/File_Management/File_Managers/Windows/
http://www.techalchemy.net/
http://mfr.queryweb.com/
http://www.renwiz.com/
http://www.powerrenamer.com/

--To make things simpler in the future, I recommend doing what I do: If you click on "Save As" in your browser and the filename looks goofy, change it RIGHT THERE before it hits the hard drive. Just my $2.02.


Here is what I type:

# mount -r -t ntfs -ouni_xlate=1 /dev/sda2 /mnt/sda2

Here is what I get:

NTFS: unkown option 'uni_xlate'
mount: wrong fs type <etc, etc>

I have read the man page a number of times--this doesn't work.

When I less a directory after utf8, I get some weird characters in the output in brackets.

Thanks for your attention.
W