Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th September 2007, 07:18 PM
Wangberg's Avatar
Wangberg Offline
Registered User
 
Join Date: Dec 2006
Location: PRC
Posts: 427
Exclamation FAT32 case insensitive directory names (but trying to preserve case)

okay....short of ripping my hair out, i have a slight grasp of what is going on....i did a google search and found out a lot about FAT32 (which i have concluded is the biggest piece of crap and MS along with it's developers of FAT should be burned at the stake for creating a file system that is not case sensitive).

but moving forward...

I'm trying to create file names with capital letters on a FAT32 external USB hard drive. I understand that ms 8.3 file naming system is used to shorten names and blah blah blah....but also is not case sensitive, BUT does have the ability to preserve capital letters in file and directory names. SO.... the directory on a FAT32 drive named "bob" is the same as "BOB". in a terminal if you create the directory Bob, bOB, BoB, BOB, or boB it's the same as "bob" always, on the fat32 drive. The same if you were to remove it. Any combination of capital or lower case letters all mean the same on FAT32 filesystems (again...kill the fat developers now).

but here is my problem:

Code:
[mike@solo NURACHI]$ mkdir DHT
[mike@solo NURACHI]$ ls
books          maps                      Recycled
centos.backup  music.media               rui's pics & music
dht            My Documents - Backed up  shapefile_geo94.zip
f              ndiswrapper-1.37.tar.gz   System Volume Information
Incoming       new                       websites
[mike@solo NURACHI]$ rm -rf dht
[mike@solo NURACHI]$ mkdir Dht
[mike@solo NURACHI]$ ls
books          maps                      Recycled
centos.backup  music.media               rui's pics & music
Dht            My Documents - Backed up  shapefile_geo94.zip
f              ndiswrapper-1.37.tar.gz   System Volume Information
Incoming       new                       websites
[mike@solo NURACHI]$
as you can see, when i try and create a directory called DHT (all caps) it is not created. It is created as lowercase. HOWEVER, nataulius will see the file as all capped...the term will not. I belieive that natulius is doing it's job in interpreting the preserved capital letters. WHen i create a directory named Dht, the first capital letter IS preserved.

Question 1: why does the terminal not display or "preserve" capital letters in directory names when written to a fat32 filesystem using the mkdir command? There are several directories that were made prior to it's use on a linux system and they all display properly in the term. For Example the My Documents folder you can see listed above.

From my earlier google search i found a post on linuxquestions.org (http://www.linuxquestions.org/questi....php?p=2853760) and i actually was able to replicate the instructions, but later ran into the problem i have stated above. I cannot create a directory name that is all capitalized. See below for example:

Code:
[mike@solo NURACHI]$ mkdir MMMMMMMMM
[mike@solo NURACHI]$ ls
books          MMMMMMMMM                 Recycled
centos.backup  music.media               rui's pics & music
f              My Documents - Backed up  shapefile_geo94.zip
Incoming       ndiswrapper-1.37.tar.gz   System Volume Information
maps           new                       websites
[mike@solo NURACHI]$ mv MMMMMMMMM/ MMM
[mike@solo NURACHI]$ ls
books          mmm                       Recycled
centos.backup  music.media               rui's pics & music
f              My Documents - Backed up  shapefile_geo94.zip
Incoming       ndiswrapper-1.37.tar.gz   System Volume Information
maps           new                       websites
[mike@solo NURACHI]$
Question 2: WITHOUT changing file systems (that is not a feasible solution), how can i get these damn directory names to be 100% capital letters without the filename being over 8 characters long? In addition to that, how can i get the terminal to display or preserve the letters to be all capital?

Please...this is driving me insane...
__________________
focus on everything...
Get Swiftfox
registered linux user #438335
Reply With Quote
  #2  
Old 6th September 2007, 07:34 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
umount your vfat partition and then use gconf-editor
if you don't have it installed use yum
yum install gconf-editor
then launch gconf-editor
/system
/storage
/default_options
/vfat
and right click on the key in the right hand window and select edit and change the shortname=xxxxxx
to
shortname=mixed
exit
remount your vfat drive and you should be good to go

you can then check your /etc/mtab file to see the mount option(s)

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 6th September 2007, 07:43 PM
Wangberg's Avatar
Wangberg Offline
Registered User
 
Join Date: Dec 2006
Location: PRC
Posts: 427
THANK YOU !

Problem Solved
__________________
focus on everything...
Get Swiftfox
registered linux user #438335
Reply With Quote
  #4  
Old 13th October 2007, 11:28 PM
Figment Offline
Registered User
 
Join Date: Jan 2007
Location: New York City
Posts: 109
Is there an equivalent method for KDE? This doesn't seem to fix the problem for me.
__________________
I am a figment of my own imagination.
Smolt Profile
Reply With Quote
  #5  
Old 13th October 2007, 11:38 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
Not sure why it doesn't work for you? I don't think the DE has any effect on it, however, I could be mistaken.

If your vfat partition has an entry in your /etc/fstab file, you can add the mount option
shortname=mixed

Again, first unmount your vfat partition(s) make your changes to your /etc/fstab, save, then
mount -a
and see how it goes.

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
Reply

Tags
case, directory, fat32, insensitive, names, preserve

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ case insensitive string comparison bee Programming & Packaging 4 21st November 2008 01:53 AM
mount iso9660 case insensitive rbroberts Using Fedora 5 28th February 2008 01:50 AM
DVD Burning: Lower case file names ? tfindlay Using Fedora 2 23rd September 2006 11:13 PM
preserve all upper case filenames on vfat? jccheng Using Fedora 2 3rd December 2004 02:34 AM


Current GMT-time: 02:05 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat