You are not logged in.

#1 2009-09-26 20:02:52

indiff3rence
Member
From: Portugal
Registered: 2009-07-09
Posts: 6

Ext4 Invalid characters

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

#2 2009-09-26 20:19:47

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Ext4 Invalid characters

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

#3 2009-09-26 20:37:34

indiff3rence
Member
From: Portugal
Registered: 2009-07-09
Posts: 6

Re: Ext4 Invalid characters

Boas, ROOKIE big_smile

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

#4 2009-09-26 21:21:31

Teoulas
Member
From: Athens, Greece
Registered: 2009-03-21
Posts: 70

Re: Ext4 Invalid characters

Try switching to the pt_PT.UTF-8 locale.

Offline

#5 2009-09-26 21:39:16

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Ext4 Invalid characters

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

#6 2009-09-26 22:07:52

indiff3rence
Member
From: Portugal
Registered: 2009-07-09
Posts: 6

Re: Ext4 Invalid characters

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

#7 2009-09-27 02:46:26

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Ext4 Invalid characters

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

#8 2009-09-27 07:44:47

indiff3rence
Member
From: Portugal
Registered: 2009-07-09
Posts: 6

Re: Ext4 Invalid characters

Thanks thisoldman, it worked like a charm cool

Thanks to all the the repliers for their time.

Pedro Saraiva

Offline

Board footer

Powered by FluxBB