Bug 699538

Summary: Mounted media shows all file names in upper case, mount in lowercase
Product: [Fedora] Fedora Reporter: markm <marek78uk>
Component: util-linux-ngAssignee: Orphan Owner <extras-orphan>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dmitry, extras-orphan, gansalmon, itamar, jnovy, jonathan, kernel-maint, kzak, madhu.chinakonda, rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-29 15:31:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description markm 2011-04-25 21:29:28 UTC
Description of problem:

since Fedora 13 mounted cameras show all file names in UPPER CASE rather than in lower case. it's very annoying, after every download I need to rename all downloaded files.

Version-Release number of selected component (if applicable):

$ rpm -qa | grep gphoto2
libgphoto2-devel-2.4.10-2.fc14.i686
libgphoto2-2.4.10-2.fc14.i686
gvfs-gphoto2-1.6.6-1.fc14.i686

How reproducible:

always

Steps to Reproduce:
1. take some photos using camera
2. attach your camera to the computer
3. browse images
  
Actual results:

all folder names / file names are in upper case

Expected results:

all folder names / file names in lower case

Additional info:

I think that may be related to the way Fedora handles FAT/FAT32 file systems.

Comment 1 markm 2011-04-25 21:49:56 UTC
changing product from gphoto2 to libgphoto2

Comment 2 Dmitry Butskoy 2012-03-26 12:48:57 UTC
It is not gphoto2 related.

If you just mount from cmdline (mount /dev/sdXX /mnt), then all the names uppear as upper case.

Looks like "utili-linux-ng" or "kernel" related issue.

Comment 3 Dmitry Butskoy 2012-03-26 13:09:30 UTC
> since Fedora 13
Well, actually at least since Fedora 12. 

The last version without this issue for me was Fedora 10 .


The problem is since F12 (or F11?) the kernel defaults for vfat was chagned from "shortname=lower" to "shortname=mixed". But it is not mentioned in manuals (at least for Fedora 14).

Please, mention it in the mount(8) manual.

Comment 4 markm 2012-04-30 23:37:45 UTC
(In reply to comment #3)
> > since Fedora 13
> Well, actually at least since Fedora 12. 
> 
> The last version without this issue for me was Fedora 10 .
> 
> 
> The problem is since F12 (or F11?) the kernel defaults for vfat was chagned
> from "shortname=lower" to "shortname=mixed". But it is not mentioned in manuals
> (at least for Fedora 14).
> 
> Please, mention it in the mount(8) manual.

ok, maybe you know - is there a way to change this setting permanently without having to recompile the kernel? that would be nice :)

Comment 5 Dmitry Butskoy 2012-05-02 15:18:57 UTC
Try to specify "shortname=lower" in /etc/fstab

Comment 6 markm 2012-05-04 12:09:51 UTC
(In reply to comment #5)
> Try to specify "shortname=lower" in /etc/fstab

how can I specify it for all vfat devices I am going to attach to my laptop?

Comment 7 Dmitry Butskoy 2012-05-04 12:25:39 UTC
Well, maybe

/dev/sdb1  /fat   vfat    noauto,owner,shortname=lower   0 0

assuming all attached devices appear as /dev/sdb .

Then "mount /fat" will check /etc/fstab (due to this is not complete mount(8) form), and the option should take effect.

When mount something different, either use another dir for mount, or just full mount way: "mount  dev  dir"

Comment 8 Karel Zak 2012-10-29 15:31:33 UTC
(In reply to comment #3)
> Please, mention it in the mount(8) manual.

Already fixed, since Fedora 15.