Unix Technical Forum

Mount problems

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. ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 08:03 AM
mark
 
Posts: n/a
Default Mount problems

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?

Thanks,
Mark

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 08:03 AM
Aaron Hsu
 
Posts: n/a
Default Re: Mount problems

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 08:03 AM
mark
 
Posts: n/a
Default Re: Mount problems

> 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 08:03 AM
mark
 
Posts: n/a
Default Re: Mount problems

> 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 08:03 AM
DoN. Nichols
 
Posts: n/a
Default Re: Mount problems

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 ---
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 08:04 AM
mark
 
Posts: n/a
Default Re: Mount problems

> 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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-16-2008, 08:04 AM
Clever Monkey
 
Posts: n/a
Default Re: Mount problems

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-16-2008, 08:04 AM
Joachim Schipper
 
Posts: n/a
Default Re: Mount problems

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-16-2008, 08:04 AM
mark
 
Posts: n/a
Default Re: Mount problems

> This shouldn't matter, but did you try mount_msdos -l?

I tried, but it doesn't help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-16-2008, 08:04 AM
Joachim Schipper
 
Posts: n/a
Default Re: Mount problems

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com