This is a discussion on Mount problems within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Hello folks, After mounting a fat32 partition, the directory listing shows everything in capital letters. This is very annoying. ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| On Thu, 07 Jun 2007 08:34:23 +0800, mark <Mark.Voortman@gmail.com> wrote: > After mounting a fat32 partition, the directory listing shows > everything in capital letters. This is very annoying. Does anyone know > how to solve this? I believe there is more than one way to mount an FAT-32 partition. Could you please give us some sample output with which to work? Have you tried using both the msdos FS and the vfat one? -- Aaron Hsu <aaron.hsu@sacrificumdeo.net> "No one could make a greater mistake than he who did nothing because he could do only a little." - Edmund Burke |
| |||
| > I believe there is more than one way to mount an FAT-32 partition. Could > you please give us some sample output with which to work? Have you tried > using both the msdos FS and the vfat one? I tried mount /dev/wd0i /mnt/data, mount -t msdos /dev/wd0i /mnt/data, and mount_msdos /dev/wd0i /mnt/data. I think they all boil down to the same thing. |
| |||
| > I believe there is more than one way to mount an FAT-32 partition. Could > you please give us some sample output with which to work? Have you tried > using both the msdos FS and the vfat one? I tried mount /dev/wd0i /mnt/data, mount -t msdos /dev/wd0i /mnt/data, and mount_msdos /dev/wd0i /mnt/data. I think they all boil down to the same thing. |
| |||
| According to mark <Mark.Voortman@gmail.com>: > Hello folks, > > After mounting a fat32 partition, the directory listing shows > everything in capital letters. This is very annoying. Does anyone know > how to solve this? Look in the man page for "mount" There is an option "-o" for passing options to the actual filesystem-specific mount program. Then look at the man page for "mount_pcfs", and you will find the following: ================================================== ==================== foldcase|nofoldcase Force uppercase characters in filenames to lowercase when reading them from the filesystem. This is for compatibility with the previous behavior of pcfs. The default is nofoldcase. ================================================== ==================== Note that this means that *all* characters will be lower case. The FAT format directories don't handle mixed case filenames, or anything other than the 8.3 format. (And all filenames are all upper case, which is why you are seeing what you are.) There are other tricks which will read some metadata saved invisibly on the filesystem to display in mixed case and with more than one '.' among other things. I'm not sure that FAT-32 supports this, however, the best you can be sure of doing is using the "foldcase" option to render it in lower case. However, I don't know how to specify this for a FAT filesystem mounted on a Sun. (I think that the same trick is used in some other things, like the hsfs (the standard filesystem on a CD-ROM), but I don't know how to get this to apply to a FAT filesystem. Good Luck, DoN. -- Email: <dnichols@d-and-d.com> | Voice (all times): (703) 938-4564 (too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html --- Black Holes are where God is dividing by zero --- |
| |||
| > Note that this means that *all* characters will be lower case. > The FAT format directories don't handle mixed case filenames, or > anything other than the 8.3 format. (And all filenames are all upper > case, which is why you are seeing what you are.) Thanks for your elaborate reply. The problem is that I don't want all characters to be lowercase, but just the ones that really are lowercase. Windows is showing me the directory listings correctly, and that means OpenBSD should be capable of doing the same thing (at least in theory). I noticed something else. If a filename contains a combination of uppercase and lowercase characters or the extension is not 3 characters long, it does show the filename correctly. Anyone? |
| |||
| mark wrote: >> Note that this means that *all* characters will be lower case. >> The FAT format directories don't handle mixed case filenames, or >> anything other than the 8.3 format. (And all filenames are all upper >> case, which is why you are seeing what you are.) > > Thanks for your elaborate reply. The problem is that I don't want all > characters to be lowercase, but just the ones that really are > lowercase. Windows is showing me the directory listings correctly, and > that means OpenBSD should be capable of doing the same thing (at least > in theory). I noticed something else. If a filename contains a > combination of uppercase and lowercase characters or the extension is > not 3 characters long, it does show the filename correctly. Anyone? > FAT32 actually has two places it stores filenames. This was to facilitate going beyond the 8.3 limitation. It sounds like in this case it is deferring to the extended name under some circumstances. -- clvrmnky <mailto:spamtrap@clevermonkey.org> Direct replies will be blacklisted. Replace "spamtrap" with my name to contact me directly. |
| |||
| mark <Mark.Voortman@gmail.com> wrote: >> Note that this means that *all* characters will be lower case. >> The FAT format directories don't handle mixed case filenames, or >> anything other than the 8.3 format. (And all filenames are all upper >> case, which is why you are seeing what you are.) > > Thanks for your elaborate reply. The problem is that I don't want all > characters to be lowercase, but just the ones that really are > lowercase. Windows is showing me the directory listings correctly, and > that means OpenBSD should be capable of doing the same thing (at least > in theory). I noticed something else. If a filename contains a > combination of uppercase and lowercase characters or the extension is > not 3 characters long, it does show the filename correctly. Anyone? This shouldn't matter, but did you try mount_msdos -l? Joachim |
| ||||
| mark <Mark.Voortman@gmail.com> wrote: >> This shouldn't matter, but did you try mount_msdos -l? > > I tried, but it doesn't help. Well, it shouldn't, but that was about my last idea. You might want to retry on misc@openbsd.org. (If you already did, I'm sorry; I'm a bit behind, and did not see any subject that looks like it would relate to this query.) Joachim |