LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-18-2006, 10:41 AM   #1
StevenO
Member
 
Registered: Jan 2006
Distribution: Slackware 10.2
Posts: 45

Rep: Reputation: 15
VFAT partition in Linux is weird.


Hi,

Let's say I have a vfat partition and I did the following command:
#mkdir UPPERCASE

Yet, the folder created is "uppercase" instead.

Is it just me? Or is that some vfat behaviour?
 
Old 02-18-2006, 11:06 AM   #2
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
FAT32 (vfat) is not case sensitive.

http://en.wikipedia.org/wiki/Compari...stems#Features
 
Old 02-18-2006, 11:12 AM   #3
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
I can confirm this behaviour in Debian.

However, if you do the same in a shell from KDE then the case you use is retained. Strange....
 
Old 02-18-2006, 12:25 PM   #4
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Case is always conserved for me: console, Konsole, Konqueror, and stuff created in Windows. My /etc/fstab looks like this:

/dev/hda7 /vfat vfat auto,rw,umask=000 1 2

Edit: it only conserves case when there's a mix of upper and lowercase.

Last edited by drumz; 02-18-2006 at 12:26 PM.
 
Old 02-18-2006, 01:01 PM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 147Reputation: 147
I recently had to deal with this, too. It seems you can use upper and lower letters. So a "cd UPPERCASE" should have the same effect as "cd uppercase" or similar commands.
 
Old 02-18-2006, 05:30 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
FAT32 (vfat) is not case sensitive.
http://en.wikipedia.org/wiki/Compari...stems#Features
I think this table criterion is misleading. I suspect the meaning of that table is that commands from the command line are case insensitive. For example, as mentioned above, a cd UPPERCASE and cd uppercase command will function exactly the same. With respect to file names and directories, I use mixed case on my shared FAT32 partition with no issues.

Working with the FAT32 file system from with GNU/Linux is a challenge and some oddball fstab settings have helped me. Here is my shared FAT32 entry in my fstab:

# # # Shared FAT32 Partition # # #
/dev/hda10 /mnt/nt_o vfat uid=username,gid=users,umask=0000,noatime,check=s,shortname=winnt 0 0

Please be sure to modify the previous example with a correct user name for your box. I can't recall at the moment why I had to add the uid parameter, but I think the reason had to do with certain errors I would experience if root possessed ownership and as mortal user I tried any kind of file operation dealing with modifications of permissions or meta data, such as an embedded chmod operation.

The check=s parameter forces the kernel to use strict file naming conventions. The shortname parameter modifies how long names and short names will be created.

There are other fat and vfat options listed in the mount man page that might help you further.
 
Old 02-18-2006, 08:38 PM   #7
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quote:
Originally Posted by Woodsman
I think this table criterion is misleading. I suspect the meaning of that table is that commands from the command line are case insensitive.
I would've thought that'd be more up to the OS, shell, or whatever is interpreting the typed command. Either way, I have no FAT32 disks to test this with. I was probably thinking of the FAT16 on my camera's SD cards (still "vfat") that's definately case-insensitive. D'oh.

Quote:
Originally Posted by Woodsman
# # # Shared FAT32 Partition # # #
/dev/hda10 /mnt/nt_o vfat uid=username,gid=users,umask=0000,noatime,check=s,shortname=winnt 0 0
Thanks for the useful info.
 
  


Reply



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
Does linux really writes to vfat partition? dodgethis Linux - General 14 09-16-2004 06:34 AM
Create bootable VFAT partition from Linux ugenn Linux - Software 2 04-29-2004 12:27 PM
Windows can't see vfat partition on Linux box bankfishin Linux - Networking 4 04-19-2004 10:51 PM
Format a vfat partition with Linux... possible? lazlow69 Linux - Newbie 2 03-03-2004 11:50 PM
getting linux to see my vfat partition apoc013 Linux - Newbie 8 01-22-2004 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration