LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-21-2008, 12:42 AM   #1
Jeff-cao
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Rep: Reputation: 0
Thumbs up 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.
 
Old 06-21-2008, 05:57 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
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.
 
Old 06-21-2008, 06:14 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
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.
 
Old 06-21-2008, 07:09 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
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
 
Old 06-21-2008, 10:05 PM   #5
Jeff-cao
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Glenn.

I will try to motify /etc/mtab.

Thanks.
 
Old 06-21-2008, 10:22 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
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.
 
Old 06-22-2008, 03:42 AM   #7
Jeff-cao
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 06-22-2008, 05:42 AM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
No. not really. digikam for multimedia.
 
Old 06-23-2008, 12:06 AM   #9
Jeff-cao
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
No. not really. digikam for multimedia.
sorry, what does this mean? Anyting wrong with digikam?
 
Old 06-23-2008, 01:42 AM   #10
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
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
 
Old 06-23-2008, 11:08 AM   #11
Jeff-cao
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Original Poster
Rep: Reputation: 0
File types include file folder, mp3, avi and txt. IF you need more information. please let me know.
 
Old 06-23-2008, 07:01 PM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Blog Entries: 33

Rep: Reputation: 143Reputation: 143
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(?)
 
Old 06-26-2008, 03:42 AM   #13
Jeff-cao
LQ Newbie
 
Registered: Dec 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for your help. Thank you very much.

Forget it. I have switched to OpenSuse 11.0, everything works well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandriva 2008 spring ronlau9 Mandriva 10 05-24-2008 07:49 AM
Mandriva 2008 spring ronlau9 Mandriva 7 05-07-2008 10:33 PM
LXer: The Perfect Server - Mandriva 2008 Spring Free (Mandriva 2008.1) LXer Syndicated Linux News 0 04-10-2008 04:10 PM
Way to not auto mount HD partitions; Mandriva One 2008 Spring Live CD RHTopics Mandriva 9 03-28-2008 02:00 AM
Mandriva 2008 Fails To Update Mandriva 2007 Spring Free max53000 Mandriva 1 10-20-2007 04:53 AM


All times are GMT -5. The time now is 02:08 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration