You are not logged in.

#1 2008-02-04 22:39:58

watsonalgas
Member
Registered: 2007-01-15
Posts: 81

Setting locale before mounting local filesystems

I have this problem when mounting an NTFS partition:

http://www.ntfs-3g.org/support.html#locale

I have figured out that the problem is that the locale is set after mounting the partitions (it is the last reason listed on the support question above).  Is there a way I can have the locale be set before mounting those partitions?  I figured it may be in /etc/rc.sysinit but don't know much about that file, so don't want to mess it up (as I have before).

I know there is an option to set "locale=" in /etc/fstab, but I think the above solution would be better since it would work across the board with all the generated locales.

Offline

#2 2008-02-14 15:27:08

Preacher
Member
From: UK
Registered: 2006-09-26
Posts: 46

Re: Setting locale before mounting local filesystems

Have you tried amending the /etc/locale.gen and then running locale-gen as root?

See http://wiki.archlinux.org/index.php/Locale


To be a preacher requires two apparently contradictory qualities: confidence and humility.

Offline

#3 2008-02-16 03:21:56

watsonalgas
Member
Registered: 2007-01-15
Posts: 81

Re: Setting locale before mounting local filesystems

Yes, I had all the locales set, and that's not the problem.  The problem is that the filesystem is mounted prior to the locale being set during boot (as mentioned in the link I posted).

I  have set the "locale=en_US.utf-8" setting in /etc/fstab and it works, so it isn't really a big problem.  But I originally thought that I would need to set it as de_DE.utf8 to be able to read umlauts and what not, but it works with the en_US locale set under fstab.

I was trying to find a solution without having to set "locale=" in fstab, but since the English worked, I'm OK with that.

Offline

#4 2008-02-16 07:56:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,604

Re: Setting locale before mounting local filesystems

Two other options for you: for a quick fix, mount your ntfs volume in /etc/rc.local. For possibly longer-lasting results, post a feature request detailing the problem.

Offline

Board footer

Powered by FluxBB