LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 01-16-2006, 10:27 AM   #1
shreks
Member
 
Registered: Aug 2004
Posts: 79

Rep: Reputation: 15
How to let hal mount DOS/Win partition with UTF8?


I have this problem for quite a while, but never sought any serious and thorough solution yet. UTF8 is a really good thing because it enable people to use any languages at the same time, esp. when transfering UTF8-named files using USB pen/key drives which usually use FAT/VFAT file system. And also NTFS uses unicode to record file names. So it is critical to have UTF8 support for DOS/Win file systems. My old way is to recompile kernel and explicitly speicify UTF8 as the charset for DOS/Win file systems. However I know that hal (hardware abstract layer) included in FC is used to determine how to mount a hot-plugged drive. So I tried to write a policy file to let hal mount DOS/Win file system using UTF8 (see the following), but my trial was only a half success: after hal auto-mounted to a USB drive, I can see the files and directories in other languages, esp. three Asian languages (they are double-byte coded). However when I clicked such a directory folder, the nautilus file manager was frozen. I guess that hal doesn't like my policies.

Here is my volume-policy-utf8.fdi modified from the original /usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi included in hal-0.5.2-2 (I only want to change the mount option for DOS/Win file systems, not others):

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">

<device>
<match key="volume.partition.msdos_part_table_type" exists="true">
<!-- Mount all MSDOS and Windows partitions with UTF-8 option -->
<!-- FAT12 -->
<match key="volume.partition.msdos_part_table_type" int="0x01">
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
<!-- FAT16 <32M -->
<match key="volume.partition.msdos_part_table_type" int="0x04">
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
<!-- FAT16 -->
<match key="volume.partition.msdos_part_table_type" int="0x06">
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
<!-- HPFS/NTFS -->
<match key="volume.partition.msdos_part_table_type" int="0x07">
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
<!-- W95 FAT32 -->
<match key="volume.partition.msdos_part_table_type" int="0x0b">
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
<!-- W95 FAT32 (LBA) -->
<match key="volume.partition.msdos_part_table_type" int="0x0c">
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
<!-- W95 FAT16 (LBA) -->
<match key="volume.partition.msdos_part_table_type" int="0x0e">
<merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
</match>
</device>

</deviceinfo>

Does anyone know why this policy did not work? Many many thanks!
 
  


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
Can Mandriva mount the utf8 encode reiserfs partition??? homesp Mandriva 0 08-18-2005 08:07 AM
NTFS partition: how to mount with UTF8 charset NullDevice23 Linux - General 0 02-28-2005 09:30 AM
Help:(linux can mount the fat32 correctly,but dos can't recognize the partition.) zhgjerry Red Hat 11 03-30-2004 09:23 AM
Help me:(linux can mount the fat32 correctly,but dos can't recognize the partition.) zhgjerry Arch 2 03-19-2004 07:41 AM
mount dos partition at boot up joesat Linux - Software 1 11-05-2002 08:49 AM


All times are GMT -5. The time now is 09:20 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