Mandriva This Forum is for the discussion of Mandriva (Mandrake) 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
06-21-2008, 12:42 AM
#1
LQ Newbie
Registered: Dec 2006
Posts: 7
Rep:
Mandriva 2008 Spring mount removable disk with UTF-8 encoding.
Hello, everyone
I have been nagged by a problem for a long time. I've asked help from many people
but still cannot solve my problem. I hope someone can help me here.
My problem is how to mount removable disk with UTF-8 encoding? Because I'm a
Chinese user, there are many Chinese file names in my removable disk. In Mandriva
2008 Spring, I set the system to UTF-8 encoding, the Chinese file names cannot be
displayed in mounted removable disk. As I know, the Chinese characters are in
UTF-8 encoding when they are in removable disk (the removable disk filesystem is
NTFS formatted by Windows Vista).
In previous Mandriva releases, the system use /etc/fstab to mount removable disk.
So, I can solve the problem with modifying /etc/fstab.
However, In 2008 Spring, it uses HAL to mount removable disks. I have no idea how
to set it use UTF-8 to mount removable disks. By the way, the Windows partitions
in internal hard disk is mounted correctly automatically.
Looking forward for your reply.
Sorry for my poor English.
Thanks!
Jeff
Last edited by Jeff-cao; 06-21-2008 at 12:44 AM .
06-21-2008, 05:57 PM
#2
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
Hi, I can't help with the language characters, I can't check. BUT,
I noticed that /ect/mtab lists my usb flash (thumb) drive with utf8 attributes, so I thought it may be of assistance.
Quote:
fstab entry:
# Entry for /dev/sdc1 :
UUID=D8EF-EB4A /media/GLENNSFLASH vfat defaults,user,nosuid,noauto 0 0
mtab entry:
/dev/sdc1 /media/FLASH vfat rw,nosuid,nodev,noatime,uhelper=hal,flush,uid=500,utf8,shortname=lower 0 0
This fstab line may be written...
/dev/sdc1 /media/GLENNSFLASH vfat defaults,user,nosuid,noauto 0 0
You may add the fstab line to the /etc/fstab file (as root)
the /etc/mtab file may not be edited, it is generated to reflect the mounted file systems, current.
But is where you may find these details too.
If your flash drive has not been set before you may have to create a directory where the pointer points to,
eg, /media/GLENNSFLASH, and make it write-able for user, not just root.
a reboot may be required, and keep the usb drive plugged in during the reboot.
My drive auto mounts when plugged in during a session, now.
I would also suggest format fat32. for crossing between m$win and linux systems.
Cheers, Glenn.
Last edited by GlennsPref; 06-21-2008 at 06:00 PM .
06-21-2008, 06:14 PM
#3
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
Hi, once the drive is mounted...(to mount manually type mount /media/FLASH, as root)
You can configure it further by using the "configure your computer" icon in tools menu.
Go to local disks, here once you've made changes the entry will be updated in fstab.
BTW, my flash drive name has been changed, it was GLENNSFLASH, now it is just FLASH. Uppercase to conform with windows naming conventions.
For reference, this is my mobile phone setting...
fstab entry:
#Entry for /dev/sdd1 :
UUID=19B0-35D4 /media/nokia vfat fat=16,defaults,user,nosuid,noauto 0 0
mtab entry:
/dev/sdd1 /media/NOKIA vfat rw,nosuid,nodev,noatime,uhelper=hal,flush,uid=500,utf8,shortname=lower 0 0
Regards, Glenn
Last edited by GlennsPref; 06-21-2008 at 06:23 PM .
Reason: extra info.
06-21-2008, 07:09 PM
#4
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
After checking my system, because of the name changes I mentioned above...
i found these entries,
current-just modified....
fstab:
# Entry for /dev/sdc1 :
UUID=4851-0C86 /media/FLASH vfat umask=0,user,noatime,flush 0 0
# Entry for /dev/sdd1 :
UUID=19B0-35D4 /media/NOKIA vfat umask=0,user,noatime,flush 0 0
mtab:
/dev/sdd1 /media/NOKIA vfat rw,check=relaxed 0 0
/dev/sdc1 /media/FLASH vfat rw,check=relaxed 0 0
06-21-2008, 10:05 PM
#5
LQ Newbie
Registered: Dec 2006
Posts: 7
Original Poster
Rep:
Thanks Glenn.
I will try to motify /etc/mtab.
Thanks.
06-21-2008, 10:22 PM
#6
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
Hi, in my last post... the settings automount but unreadable to me as user.
sorry abut that.
Also, fstab is editable, mtab will have no effect.
Also, I think udev takes care of the device once it has been detected.
I say this because after a few days, the lines dissapear from fstab, but the drives still automount.
06-22-2008, 03:42 AM
#7
LQ Newbie
Registered: Dec 2006
Posts: 7
Original Poster
Rep:
Thanks for your warmheart.
I intalled GNOME Desktop, it can mount my removable disk correctly. So, I guess there is someting wrong with KDE. IS there any way to set a parameter to the application which KDE uses to mount disks?
06-22-2008, 05:42 AM
#8
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
No. not really. digikam for multimedia.
06-23-2008, 12:06 AM
#9
LQ Newbie
Registered: Dec 2006
Posts: 7
Original Poster
Rep:
Quote:
Originally Posted by
GlennsPref
No. not really. digikam for multimedia.
sorry, what does this mean? Anyting wrong with digikam?
06-23-2008, 01:42 AM
#10
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
Quote:
Because I'm a Chinese user, there are many Chinese file names in my removable disk.
Only because the author does not mention (or my interpretation) the file types, and my inexperience with digikam, seems to be sound and video app.
regards, Glenn
06-23-2008, 11:08 AM
#11
LQ Newbie
Registered: Dec 2006
Posts: 7
Original Poster
Rep:
File types include file folder, mp3, avi and txt. IF you need more information. please let me know.
06-23-2008, 07:01 PM
#12
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
This file ...
/etc/sysconfig/i18n
has this info...
LC_TELEPHONE=en_AU.UTF-8
LC_CTYPE=en_AU.UTF-8
LANGUAGE=en_AU:en_GB:en
LC_MONETARY=en_AU.UTF-8
LC_ADDRESS=en_AU.UTF-8
LC_COLLATE=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
SYSFONT=lat1-16
LC_MEASUREMENT=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LANG=en_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_MESSAGES=en_AU.UTF-8
But I'm not sure what package changes it...
locale(?) and locale-en(?)
06-26-2008, 03:42 AM
#13
LQ Newbie
Registered: Dec 2006
Posts: 7
Original Poster
Rep:
Thanks for your help. Thank you very much.
Forget it. I have switched to OpenSuse 11.0, everything works well.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 02:08 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News