PDA

View Full Version : Upper case and lower case, NTFS and FAT32



fergus
11-13-2007, 02:48 PM
On my NTFS filesystem I have a directory called Windows, not WINDOWS. If I
mount -t ntfs -o rw /dev/hda1 /c
then
ls /c/Windows
lists files as required and
ls /c/WINDOWS
returns an error message, no such directory.

But: on my FAT32 filesystem I have a directory called WINDOWS, not Windows. If I
mount -t vfat -o posix,shortname=winnt /dev/hda1 /c
then
ls /c/Windows
lists all the files under /c/WINDOWS, as does
ls /c/WINDOWS

This is very annoying. I have played with every possible variation on options to -t vfat including shortname=mixed, etc. Can anybody tell me what options to -t vfat provide a foolproof distinction between lower case and upper case? (ie. will return an error message when any attempt is made to address a directory or file with casename errors)?

Thank you

Jorpho
11-21-2007, 07:16 PM
I suspect that since "Windows" is less than eight characters, there is no long file name associated with it on the FAT32 drive and therefore no case information associated with it.

hal8000
11-29-2007, 12:32 AM
The first thing to note is that your mount point is /c

mount -t ntfs -o rw /dev/hda1 /c


You should therefore just list /c
i.e.

ls /c

this will give you all drive contents then you can do
cd /c/Windows

However why not open your home folder and in the location bar type /c this why you
have a graphical why to manipulate your files without having to type upper or lower
case names.

For permanent mounting create an entry in /etc/fstab
Example

/dev/hda1 ntfs-3g /mnt/winxp defaults,noauto,users 0 0

uses the ntfs-3g library with write capability to mount your windows NTFS partition.
It is not mounted at boot (noauto) but can be mounted simply by using kwikdisk
(if you use KDE)
HTH