LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2007, 05:46 PM   #1
gumb
LQ Newbie
 
Registered: Oct 2005
Distribution: openSUSE
Posts: 27

Rep: Reputation: 15
capitalization of filenames on FAT partition


I'm trying to remaster the contents of a data CD I once produced on Windows. The contents were copied off a couple of defective old discs to make one good replica on my local drive. This drive is a shared FAT32 partition on a dual-boot system. In Konqueror, there is a folder which reads as 'cd2004', though under Windows or when reading it off the original disc in Konqueror it displays capitalized as 'CD2004'. I discovered a problem using this disc when switching to Linux, because some problems with capitalization meant navigating its HTML page contents via links failed, despite it always being fine on Windows machines (and as far as I know, Macs too).

Konqueror refuses to let me change the name of this folder to CD2004. However, on my Linux ext3 home partition, I can easily create a folder with the same name and change the capitalization as I wish. I tried unchecking the read-only status showing under Windows, but back in Linux all folders just show with the default FAT permissions of drwxr-xr-x. The permissions on this partition under Linux show as my username as the owner, and 'root' as the group. I think I tried to change the group to 'users' once a long time ago whilst logged in as root, but it wouldn't let me, claiming that even I as root didn't have access.

I'm a bit baffled here. I want to ensure that when I burn the disc again it will work under any OS. But to do this I need to know for sure whether to link other files to the folder cd2004 or CD2004. I've also noticed that when I create new folders on this partition, named such as 'V1_1_06' Konqueror instantly changed the first V to a v, yet if I rename it by adding a few more digits at the end, (say 'V1_1_060121') it allows the capital V.
 
Old 01-21-2007, 07:50 PM   #2
Sonneteer
Member
 
Registered: May 2006
Location: Canada
Distribution: Slackware 13.37; Ubuntu 12.04
Posts: 81
Blog Entries: 5

Rep: Reputation: 15
Try mounting the partition with the option shortname=mixed, since the default for vfat is shortname=lower ("shortname"s being filenames within 8 characters (plus 3 for the file extension).)
 
Old 01-23-2007, 01:13 PM   #3
gumb
LQ Newbie
 
Registered: Oct 2005
Distribution: openSUSE
Posts: 27

Original Poster
Rep: Reputation: 15
Re: capitalization of filenames on FAT partition

Thanks, I'll give it a go. I presume I can do this in fstab? If so, my current line reads:

/dev/hda9 /data1 vfat defaults,user,uid=<username> 1 2

So is it right to amend it as follows?

/dev/hda9 /data1 vfat defaults,user,uid=<username>,shortname=mixed 1 2

Would doing this have any impact on my existing data on that drive?
 
Old 01-24-2007, 01:17 AM   #4
Sonneteer
Member
 
Registered: May 2006
Location: Canada
Distribution: Slackware 13.37; Ubuntu 12.04
Posts: 81
Blog Entries: 5

Rep: Reputation: 15
Yeah, that looks good!
As far as I know, it won't change what's already in the FAT or not. So, depends on how it was copied over to if that info will already be there or not? (Not sure how that stuff works.) It shouldn't hurt anything anyway.
 
Old 01-25-2007, 10:10 AM   #5
gumb
LQ Newbie
 
Registered: Oct 2005
Distribution: openSUSE
Posts: 27

Original Poster
Rep: Reputation: 15
Problem now solved.

Cheers!
 
  


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
Can't get at FAT partition Boffy Linux - General 5 02-21-2005 12:27 PM
NTFS Partition has documents... need help with corrupted filenames Samppa72 Linux - Software 3 10-01-2004 01:46 PM
locales and foreign filenames with fat partitions alexrait1 Slackware 0 06-11-2004 08:39 AM
Titular capitalization of filenames rose_bud4201 Programming 4 09-13-2003 12:52 AM
Filenames on a vfat partition cav Linux - General 1 02-17-2003 03:15 PM


All times are GMT -5. The time now is 02:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration