how to get utf8 support for auto mount by hal(udev)?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
My Slackware linux can auto mount or unmount USB-disk by udev, but when USB-disk mounted by udev, there is a bad interface, all chinese word display "???", I think should mount -o iocharset=zh_CN.utf8 , but auto mount by udev , I dont' know how to edit mount rules.
Don't understand that solution. Is there another way? To cause HAL mount vfat with exact flags, such as iocharset=utf-8.
Why should i edit my fstab? I don't want to. Wanna mount any vfat filesystem with correct options. Example:
today i connect my flashdrive, ok, an entry for it /dev/sda1 in fstab is suitable for me
tomorrow i connect flashdrive with reiserfs, which doesn't understand iocharset option
day after tomorrow i connect two flashdrives, so i should create two entries in my fstab and so on.
There should be away to make HAL mount the filesystem with the option. And not using any third-party like http://slackwareart.blogspot.com/200...slackware.html when a program EDITS(imagine that) my fstab every time i insert my flashdrive into usb port. fstab is something static, not dynamic
I hope this will help:
gconftool -g /system/storage/default_options/vfat/mount_options
#set options
gconftool -s /system/storage/default_options/vfat/mount_options --list-type=string -t list [shortname=lower,uid=,flush,utf8]
THANK YOU!
I've been trying for days to fix this and is so simple!(i am on debian testing now.) in ubuntu it's set by default.
THANK YOU AGAIN!
# which gconf
which: no gconf in (/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/qt/bin:/root/scripts)
Actually neither gconf, nor gnome-mount is available on standard Slackware distribution.
Do you compile a custom kernel? I, myself solved it by setting the default charset to utf-8
Code:
Location:
│ -> File systems
│ -> Native language support
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.