View previous topic :: View next topic |
Author |
Message |
luigi.malago Apprentice
Joined: 31 May 2005 Posts: 292 Location: Mantova (Italy)
|
Posted: Mon Jul 24, 2006 3:34 am Post subject: FAT32: Acceted charaters VS case insensitive VS cvs update |
|
|
Hello to everybody,
i have a strange problem mounting my fat32 partition (i use it with both gentoo and windows).
Right now I mount it using:
Code: | mount -t vfat /dev/hda3 /mnt/h -o iocharset=utf8,codepage=850
|
Since if i dont use uft8 charset i'm not able to see the accented characters in the file name and in the directory names.
The problem is that right now the file system is case insensitive when i create files or directories with all capital letters.
I'll show you what i mean:
Code: |
luigi@tux /mnt/h/prova $ ls
luigi@tux /mnt/h/prova $ mkdir PROVA
luigi@tux /mnt/h/prova $ ls
prova
luigi@tux /mnt/h/prova $ mkdir Prova2
luigi@tux /mnt/h/prova $ ls
prova Prova2
luigi@tux /mnt/h/prova $
|
I found another person with the same problem here:
http://lkml.org/lkml/2004/4/4/90
but he wasnt able to solve the problem.
Do you have any idea what i can do?
This some info about my system:
Code: |
luigi@tux ~ $ locale
LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=it_IT.UTF-8
|
Hope you can help me, i need both accented letters and directories with capital letters
Luigi
Last edited by luigi.malago on Sun Jul 30, 2006 10:07 pm; edited 2 times in total |
|
Back to top |
|
|
PiRmD n00b
Joined: 22 Apr 2005 Posts: 49 Location: Daya Bay NPS-Shenzhen-China
|
Posted: Mon Jul 24, 2006 11:34 am Post subject: |
|
|
Hi luigi,
I don't know if it can solve your problem but I usually mount my vfat file system like this:
Code: | mount -t vfat /dev/sda10 /media/bazar -o iocharset=iso8859-15, codepage=850, utf8=true |
Using iocharset=utf8 makes my system complains (some warning in dmesg outputs) and sometimes gives some strange results.
HTH |
|
Back to top |
|
|
luigi.malago Apprentice
Joined: 31 May 2005 Posts: 292 Location: Mantova (Italy)
|
Posted: Mon Jul 24, 2006 3:41 pm Post subject: |
|
|
Hi PiRmD,
using your setting are you able to both see accented charaters and create directoriy with all capital letters names, such as "TEST"?
I tried your settings, but in this way i can see accented charcters but i cannot create directories with only capital letters:
Take a look:
Code: |
tux luigi # mount -t vfat /dev/hda3 /mnt/h -o iocharset=iso8859-15,codepage=850,utf8=true
tux luigi # ls /mnt/h/Dc++/F
Fabrizio De Andrè - 1966 - Tutto Fabrizio De André/ F.De André - In direzione ostinata e contraria - 2005/
tux luigi # cd /mnt/h/prova/
tux prova # ls
aaa apio gi gigi gio ppp proavaaa prova PROVA£ Prova2 provaaa PROVAAAAA prova.txt si
tux prova # mkdir A
tux prova # ls
a aaa apio gi gigi gio ppp proavaaa prova PROVA£ Prova2 provaaa PROVAAAAA prova.txt si
|
|
|
Back to top |
|
|
PiRmD n00b
Joined: 22 Apr 2005 Posts: 49 Location: Daya Bay NPS-Shenzhen-China
|
Posted: Tue Jul 25, 2006 1:17 am Post subject: |
|
|
Hi luigi,
I have to admit that I don't know the answer to your question... but I'll give it a try as soon as I'm home and send you some feedback |
|
Back to top |
|
|
PiRmD n00b
Joined: 22 Apr 2005 Posts: 49 Location: Daya Bay NPS-Shenzhen-China
|
Posted: Tue Jul 25, 2006 10:53 am Post subject: |
|
|
OK I make some further tests. I experience the same behaviour athn you: I cannot create files/directory with all capital letters but I can include both capital and small letter in the same name (e.g; TEsT is working while TEST reults in test).
But when I mount it wit th edefault hal/pmount options (i.e. iocharset=utf8 only) I can obtain teh behaviour yo want (i.e. accent and directory with all capital letters). As a side note, when changing the mount option to iocharset=utf8, it appears that my directory I created just before (TEST) is seen as fully capitalized, even if it was reported as "test" just before (I did nothing just changing the mount options...). |
|
Back to top |
|
|
luigi.malago Apprentice
Joined: 31 May 2005 Posts: 292 Location: Mantova (Italy)
|
Posted: Wed Jul 26, 2006 9:00 am Post subject: |
|
|
Quote: |
But when I mount it wit th edefault hal/pmount options (i.e. iocharset=utf8 only) I can obtain teh behaviour yo want (i.e. accent and directory with all capital letters).
|
Can you tell me exactly the mount options you are using to get both accents and directory with all capital letters, so i can try to see if it works on my system too?
thanks a lot,
Luigi |
|
Back to top |
|
|
UncleTom Apprentice
Joined: 20 Aug 2003 Posts: 194 Location: Bern, Switzerland
|
Posted: Wed Jul 26, 2006 10:29 am Post subject: |
|
|
You can use the shortname mount option to change the way upper/lowercase filenames are treated on a vfat file system. That should solve your problem. _________________ bug, n: A son of a glitch. |
|
Back to top |
|
|
luigi.malago Apprentice
Joined: 31 May 2005 Posts: 292 Location: Mantova (Italy)
|
Posted: Wed Jul 26, 2006 12:35 pm Post subject: |
|
|
Dear UncleTom,
looks like you solved my problem!
Code: |
tux luigi # umount /mnt/h
tux luigi # mount -t vfat /dev/hda3 /mnt/h -o iocharset=iso8859-15,codepage=850,utf8=true,shortname=mixed
tux luigi # ls /mnt/h/Dc++/F
Fabrizio De Andrè - 1966 - Tutto Fabrizio De André/ F.De André - In direzione ostinata e contraria - 2005/
tux luigi # cd /mnt/h/prova/
tux prova # ls
A AAA APIO GI GIGI GIO PPP PROAVAAA PROVA PROVA£ Prova2 PROVAAA PROVAAAAA PROVA.TXT SI
tux prova # mkdir b
tux prova # ls
A AAA APIO b GI GIGI GIO PPP PROAVAAA PROVA PROVA£ Prova2 PROVAAA PROVAAAAA PROVA.TXT SI
tux prova # mkdir BB
tux prova # ls
A AAA APIO b BB GI GIGI GIO PPP PROAVAAA PROVA PROVA£ Prova2 PROVAAA PROVAAAAA PROVA.TXT SI
|
the only thiks that i cannot understand is why in my man page for mount i do not have the shortname option!
i think i have to update my man pages, even if i thought they already were..
Code: |
* app-i18n/man-pages-it
Latest version available: 0.3.4
Latest version installed: 0.3.4
Size of files: 635 kB
Homepage: http://it.tldp.org/man/
Description: A somewhat comprehensive collection of Italian Linux man pages
License: LDP-1a
* sys-apps/man-pages
Latest version available: 2.33
Latest version installed: 2.33
Size of files: 1,749 kB
Homepage: http://www.win.tue.nl/~aeb/linux/man/
Description: A somewhat comprehensive collection of Linux man pages
License: freedist
|
thanks a lot.
Luigi |
|
Back to top |
|
|
UncleTom Apprentice
Joined: 20 Aug 2003 Posts: 194 Location: Bern, Switzerland
|
Posted: Wed Jul 26, 2006 12:57 pm Post subject: |
|
|
I don't understand why you don't have the shortname option in your man page. On my machines, the man page for the mount command ("man 8 mount") comes from sys-apps/util-linux, not from sys-apps/man-pages, which only provides the page for the mount function ("man 2 mount"). Perhaps the app-i18n/man-pages-it overwrites the page from sys-apps/util-linux?
Anyway, glad I could help you with the option you needed. _________________ bug, n: A son of a glitch. |
|
Back to top |
|
|
luigi.malago Apprentice
Joined: 31 May 2005 Posts: 292 Location: Mantova (Italy)
|
Posted: Sun Jul 30, 2006 10:00 pm Post subject: |
|
|
I have no idea about the man pages, I'm trying to solve it out... I'll let you know.
Right now another problem arised using the new options:
when i update cvs repository, i get the following error:
Code: |
.......
cvs checkout: Updating mrt/dcdt/examples/ale4
U mrt/dcdt/examples/ale4/Makefile
U mrt/dcdt/examples/ale4/const.h
U mrt/dcdt/examples/ale4/main4.cpp
U mrt/dcdt/examples/ale4/member_four.cpp
U mrt/dcdt/examples/ale4/member_four.h
cvs checkout: Updating mrt/dcdt/examples/alfonsito
U mrt/dcdt/examples/alfonsito/Makefile
U mrt/dcdt/examples/alfonsito/const.h
U mrt/dcdt/examples/alfonsito/main.cpp
U mrt/dcdt/examples/alfonsito/makefile
cvs [checkout aborted]: cannot rename file .new.makefile to makefile: File exists
|
If i sync the repository in a NON fat32 partition, everything seems to work.
I guess the problem is fat32, but before using the new option shortname, everything seemed OK...
Right now I'm starting to hate fat32.... but this is the only way i can my work updated when i have to start windows..
thanks again,
Luigi |
|
Back to top |
|
|
UncleTom Apprentice
Joined: 20 Aug 2003 Posts: 194 Location: Bern, Switzerland
|
Posted: Mon Jul 31, 2006 8:48 am Post subject: |
|
|
I'm not sure I understand the cvs output correctly. Do you have two makefiles in cvs, one starting with an uppercase letter and the other one with a lowercase letter? And if so, does this work under windows?
Anyway, I have played around with all the possible values for the shortname option and I can find no way to make two distinct files on fat32 that differ in only the case of the first character. _________________ bug, n: A son of a glitch. |
|
Back to top |
|
|
|