Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I don't care which filesystem exactly it will be, I just need the file paths to work in a case-sensitive manner.

Maybe a behavior similar to a samba share on Linux box that has case-sensitivity turned on. That would be perfect, except that I need the disk to be stored locally.

Are there any drivers/tools for that?

I have already tried a couple of ext2 drivers for Windows which didn't work for this purpose :( ( http://www.fs-driver.org/ and http://www.fs-driver.org/)

share|improve this question
    
This is a fallback from DOS where filenames were not case-sensitive, and MS-Windows is built to be compatible with this user-friendly feature. Unfortunately, if NTFS was suddenly switched to being case-sensitive, then a lot of things would fail (and the OS probably wouldn't boot at all) as you'll be able to find case-insensitive variations throughout the Windows Registry (e.g., C:/WINDOWS/, C:/Windows, C:/windows, etc.) and in various configuration files (and probably some hard-coded stuff too). Windows and many applications would need some major work to support this for drive C: at least. –  Randolf Richardson Sep 9 '11 at 17:36
    
Look at this post I think it might help you out. superuser.com/questions/266110/… –  samack Sep 9 '11 at 18:10
    
That's what I was asking actually: How to avoid turning NTFS file handling globally case-sensitive on Windows :) So I would need some sandboxy tools, an installable file system or something like that. Like those ext2 drivers up there. The only requirement is they must respect the letter case when identifying files. –  Ivarpoiss Sep 9 '11 at 19:28

3 Answers 3

The simple answer is no. The long answer is...

NTFS does store filenames in a case-sensitive way (NTFS can have README.txt and readme.txt in the same directory), and even the Windows filemanager can internally manage case-sensitive requests to filenames via the NtOpenFile / NtCreateFile syscalls.

Unfortunately for you, the Win32 function CreateFile (used everywhere including by fopen) will internally call NtCreateFile using the OBJ_CASE_INSENSITIVE flag which will mean that all applications which use CreateFile will see your case-sensitive filesystem case-insensitively. In practise this means that all applications will see your filesystem in a case-insensitive way regardless of whether your filesystem is actually case-sensitive under the hood.

The only way I can think for you to practically force case-sensitivity is to write a filter-driver which will remove the OBJ_CASE_INSENSITIVE flag from the incoming syscall requests which will then allow NTFS, EXT2 or whatever internal filesystem you have to behave in their default, case-sensitive way.

share|improve this answer

From inside Windows, this is possible, but you gotta be able to write C.

NTFS actually stores names as case sensitive (to support the POSIX subsystem). However, NTFS does not actually support case sensitive functions itself. Considering NT was originally written as a direct competitor to UNIX, this comes as no surprise.

http://support.microsoft.com/kb/100108

http://blogs.msdn.com/b/sfu/

http://www.netbsd.org/docs/pkgsrc/platforms.html#interix

share|improve this answer

Looks like the only way is to install a virtualized Linux and share the VM's drive out to Windows.

I've been looking around the Internet for the same solution, primarily to checkout a GIT repository from a Linux system that has files only differing in case (don't preach why they're there -- it's beyond my control). But looks like there isn't a relatively straightforward way to do this short of writing your own subsystem or deeply integrating to the Interix (now Unix services) subsystem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.