Hello!

I just ran Windows 7 SP1's chkdsk on an NTFS partition that I usually work on 
from Linux using NTFS-3G 2011.4.12.

chkdsk decided to delete a lot of filenames because they were "invalid" (that 
seems to mean they contain characters like : or ? which Windows does not 
like). Now I am in a state where I have a few dozen file1234.chk filenames and 
dir1234.chk directories, have to figure out what they contain and properly 
rename them. (At least it did not entirely delete the files...)

The NTFS-3G manual says about this in the "Windows Filename Compatibility" 
section: "[ntfs-3g] always creates new files in the POSIX namespace for 
maximum portability and interoperability reasons. [...] This is perfectly 
legal on Windows, [...]"

Now my questions/ideas to prevent such mess in the future:
* Is it possible to instruct ntfs-3g to create both, a Windows and a POSIX 
filename?
* Can it map "invalid" characters of the POSIX filename to e.g. underscores _ 
in the Windows filename? Does "windows_names" do this?
* Is it possible to put the whole partition into POSIX mode, so that Windows 
and tools like chkdsk would let those filenames alone?
* Is it possible that there are filenames on my disk, which are not in the 
POSIX namespace, but not conforming to the Windows namespace, either? How 
could I fix this?
* Is there a free (preferably FOSS) chkdsk tool that behaves more sane, e.g. 
by renaming the filenames to such with invalid characters replaced by 
underscores _?
* Is there any other way I can prevent the problem in the future?

Kind regards,
Dennis

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to