You are not logged in.
Pages: 1
Hello,
I dual boot Archlinux with Ubuntu. All the partitions have the Ext4 file system.
When I mount the "home" partition of Ubuntu on Arch, it shows invalid characters on the directories that have a accentuation (i.e latin words). On Ubuntu it shows it fine.
I've been searching in the man pages for an ext4 char codification mount option, but I can't find one. How can I solve this?
Thanks,
Pedro Saraiva
Offline
Most probably you need to use the iocharset= option, you need to find out which charset ubuntu uses and set the same for arch.
As a guess I would say utf8 or a localized charset, check the fstab in ubuntu, maybe there is something there.
Edit:
I went to look into the mount options for ext4 and it doesn't seem to support the iocharset one, in that case check your locale, it can cause problems like the one you have too.
Last edited by R00KIE (2009-09-26 20:25:44)
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Boas, ROOKIE
I think my locale is fine:
[pedro@pedro-arch ~]$ locale
LANG=pt_PT
LC_CTYPE="pt_PT"
LC_NUMERIC="pt_PT"
LC_TIME="pt_PT"
LC_COLLATE=C
LC_MONETARY="pt_PT"
LC_MESSAGES="pt_PT"
LC_PAPER="pt_PT"
LC_NAME="pt_PT"
LC_ADDRESS="pt_PT"
LC_TELEPHONE="pt_PT"
LC_MEASUREMENT="pt_PT"
LC_IDENTIFICATION="pt_PT"
LC_ALL=
What do you think?
Thanks,
Pedro Saraiva
Offline
Try switching to the pt_PT.UTF-8 locale.
Offline
Yeah, I'd say pt_PT.UTF-8 too. Check /etc/locale.gen and uncomment the relevant entry (if not uncommented already), after that regenerate the locales with locale-gen (as root) if you uncommented anything.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Thanks for the replies.
I've found that I already have pt_PT.UTF-8 uncommented. This is what I have uncommented now:
pt_PT.UTF-8 UTF-8
pt_PT ISO-8859-1
pt_PT@euro ISO-8859-15
I've tried to just use the pt_PT.UTF-8. The ubuntu partiton paths are now correct, but a odd thing happens when I try to use accentuation on the arch partitions. If I try to make a directory with accentuation it shows an error saying that doesn't support the character codification..
What else can I do?
Thanks,
Pedro Saraiva
Offline
Check the LOCALE setting in /etc/rc.conf. The Configuring locales wiki entry says
the setting for LOCALE here must exactly match the output of 'locale -a'. For me, that means this is wrong:
LOCALE="en_US.UTF8" #Incorrect
The ouput of my locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8
So my rc.conf line should correctly read
LOCALE="en_US.utf8" #Correct
Now I have this output:
$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
I hope this gives you a solution. Please post back with the results.
Edit: I think you could export the correct settings from ~/.bashrc, but I don't know for sure. Ihaven't tried that.
Last edited by thisoldman (2009-09-27 02:57:22)
Offline
Thanks thisoldman, it worked like a charm
Thanks to all the the repliers for their time.
Pedro Saraiva
Offline
Pages: 1