PDA

View Full Version : How change codepage for disks, that auto mount in /media?


twobrothers
01-26-2007, 10:55 AM
This devices isn't in my /etc/fstab and i don't know where. How i can change codepage for this devices whisout using fstab?

dracheflieger
01-26-2007, 01:33 PM
I think Apatewna has some experience in this and should be along sometime (hopefully today) and perhaps let you know...or maybe look at his post on how he solved it (http://forums.pcbsd.org/viewtopic.php?t=4684&highlight=codepage)

Apatewna
01-26-2007, 04:08 PM
In the recent 1.3.x versions the locale scheme seems to be changed. The .login_conf file remains untouched and all the changes are done in the .cshrc file.

Although I installed the Greek language PBI from the second cdrom during installation, I still get no greek in console and probably not on other filesystems as well.

I remember fixing this problem by commenting out some of the the following last lines in .cshrc:

setenv MM_CHARSET UTF-8
setenv LANG en_US.UTF-8
setenv LC_TYPE en_US.UTF-8
setenv LC_COLLATE POSIX

I commented out line 2 and 3 which where relevant, whithout even checking google for the meaning of the other lines. Then I proceeded as usual on the .login_conf.

In /etc/fstab whenever I mount some filesystem I use the -CUTF-8 switch. For example for my ntfs partition:
# device mountpoint fstype options dump pass
/dev/ad0s1 /mnt/winxp ntfs ro,-CUTF-8 0 0

I have checked this info and it works well for me. The only place it seems to be tricky is with samba shares.

For the samba server part, I just checked "man smb.conf" and saw the "default charset=UTF8" parameter.

For the mount_smbfs, I just checked "man mount_smbfs" and it says:

-L locale
Use locale for lower/upper case conversion routines. Set the
locale for case conversion. By default, mount_smbfs tries to use
an environment variable LC_* to determine it.

twobrothers
01-29-2007, 04:48 AM
Ok, I make console with my codepage.
It's not a problem to mount disks in my codepage with fstab. But I want that that works from Start->Storage Media, then in Konqueror select disk and mount it. After installing PS-BSD in fstab no strings about my DVD-RW drive and USB-flash and other drives, besides / and swap. But in Storage Media it's presents. I insert USB-flash and it's mount, but I see files like _____.txt. How I can change this without changing /etc/fstab? It is possible?

antik
01-29-2007, 12:00 PM
Ok, I make console with my codepage.
It's not a problem to mount disks in my codepage with fstab. But I want that that works from Start->Storage Media, then in Konqueror select disk and mount it. After installing PS-BSD in fstab no strings about my DVD-RW drive and USB-flash and other drives, besides / and swap. But in Storage Media it's presents. I insert USB-flash and it's mount, but I see files like _____.txt. How I can change this without changing /etc/fstab? It is possible?

HALd got hardcoded mounting options and I think we should ban this beast from future releases- it is compatible with my new computer but I am unable to mount any disk with my notebook that worked perfectly with previous mounting technology.