LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-21-2004, 11:05 PM   #1
saravkrish
Member
 
Registered: Mar 2004
Location: KY, USA
Distribution: Fedora Core 1
Posts: 190

Rep: Reputation: 30
weird problem with FAT32 in FC1


Hi all,

I have been using FC1 for a long time now and I could say I'm not a newbie. Below is an exact copy-paste from a terminal window

Code:
[sarav@r2d2 images]$ ls
FC1-CDs
[sarav@r2d2 images]$ mkdir FC2-DVD
[sarav@r2d2 images]$ ls
FC1-CDs  fc2-dvd
[sarav@r2d2 images]$
I don't know why the FC2-DVD dir is getting created as a all lowercase dir. It's not that I haven't stored uppercase or mixed case filenames in the FAT32 partition before. Infact the ls shows an example for a mixed case filename. Anyone know what is happening here! I'm totally lost.... have never seen such an unexplainable problem before.

The _only_ thing I could call as unusual today was me trying to copy a > 2GB file to FAT32 and FC1 doesn't seem to allow that. Had something to do with using signed file pointers inside the kernel. The actual file size limit on FAT32 is 4GB. I have some 2.3 GB files in the same partition, so I know it can store > 2GB. But thats not the main problem now...

Some one please tell me whats happening with the weird filename behavior. I even tried unmounting and mounting the FAT32 partition - didn't work!

Thanks,
Sarav
 
Old 11-22-2004, 08:13 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
FAT32 still uses Microsoft's case-insensitive 8.3 filenames; only lower-case letters are allowed.

The only way you can store capital letters in filenames is to associate a “long filename” with the file (or directory); the Linux driver only does this if it can't render the filename in less than 8.3 (eight characters or fewer with an extension of three characters or fewer). This actually names the file something like “fc2-dv~1.” and then creates a seperate entry in the directory's contents for the proper filename. (The reason for this is efficiency; it takes longer to look up a long name than to look up the 8.3 name, because it's not stored with the file properly).

The easiest way around this problem would be to rename the directory to something longer than 8 characters (to create a long filename), then rename it back with the correct name.
 
Old 11-22-2004, 09:16 AM   #3
saravkrish
Member
 
Registered: Mar 2004
Location: KY, USA
Distribution: Fedora Core 1
Posts: 190

Original Poster
Rep: Reputation: 30
Then how do you explain FC1-CDs

Hi,

Then how do you explain FC1-CDs ? Its 7 characters long and still is mixed case!

Thanks,
Sarav
 
Old 11-27-2004, 04:10 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
It has a long filename associated with the file, in which the capitalisation is stored.

However, if you try and create a directory with this name using vfat, I think that it will not associate a long filename with it, and you will get a lower-case (or uppercase) directory name.

There's more information about vfat and FAT32 in /usr/src/linux/Documentation/filesystems/vfat.txt
 
Old 08-09-2007, 03:27 PM   #5
ibex
Member
 
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Rep: Reputation: 15
Same problem

I tried renaming a directory named matlab to VERYLONGNAME and it successfully appeared in capital letters (all this in my FAT32 partition). Then when I renamed it to MATLAB it appeared again as matlab. Is there a way to use short file names in capital letters under Linux in a FAT32 partition ?

Thank you very much for checking this.
Dorian

Last edited by ibex; 08-09-2007 at 03:29 PM.
 
Old 09-06-2007, 09:38 AM   #6
wangberg
LQ Newbie
 
Registered: Jan 2007
Location: PRC
Distribution: Ubuntu 9.04
Posts: 24

Rep: Reputation: 15
It worked for me:

Code:
[wangberg@solo NURACHI]$ mkdir MMMMMMMMM
[wangberg@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
[wangberg@solo NURACHI]$ mv MMMMMMMMM Mmmm
[wangberg@solo NURACHI]$ ls
books          Mmmm                      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
[wangberg@solo NURACHI]$
how are you renaming the file ? try the mv command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Problem with FC1 eParliament.org Fedora 1 09-26-2004 09:27 PM
Weird, weird apache2 problem atheist Debian 1 09-17-2004 08:26 PM
problem on installing fc1 roozbeh Fedora 5 08-03-2004 03:29 AM
Fat32 and NTFS drives on FC1 Vectrox Fedora 11 05-04-2004 01:40 PM
Mount Fat32 Drive in FC1 Pauli Fedora 9 03-05-2004 08:59 PM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration