LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2009, 12:13 PM   #1
Renan_S2
Member
 
Registered: Jul 2007
Location: Santa Maria, Brazil
Distribution: Arch Linux
Posts: 66

Rep: Reputation: 16
How to force HAL to mount USB drive as UTF-8?


Hello,

I have a problem with non-English characters on filenames of files stored on my USB drive, which is automatically mounted by HAL. They're replaced by '?' (e.g. 'música' becomes 'm?sica') and the files are not accessible.

When I mount manually my USB drive, however, passing the 'utf8' argument for mount, the filenames are OK! So I think I just need to get HAL into mounting my drive (and any other USB drives formatted as FAT32) with 'utf8' parameter.

I, however, don't know how to do that on the HAL configurations files.

Any suggestions?

I'm using Arch Linux, and I use Thunar running as daemon (thunar --daemon).

Thanks!
 
Old 11-29-2009, 09:06 AM   #2
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
I think you can simply add an entry for your usb into /etc/fstab with the options you want. Use the UUID instead of /dev/sdxn, if you don't want it to apply to all devices you connect.
 
Old 11-30-2009, 04:23 PM   #3
Renan_S2
Member
 
Registered: Jul 2007
Location: Santa Maria, Brazil
Distribution: Arch Linux
Posts: 66

Original Poster
Rep: Reputation: 16
Fixed it.

Actually, it's not the duty of HAL to send parameters to mount, instead it is from the application (in this case, Thunar).

I edited /etc/xdg/xfce4/mount.rc and added iocharset=utf8 to the [vfat] category. Now it works.
 
1 members found this post helpful.
Old 12-01-2009, 08:48 AM   #4
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Interesting. I thought that since the application is run by user, and root is required by mount, the application wouldn't be able to invoke mount by itself.

So I thought maybe the call to mount went via HAL or something. Does it not work to do the changes to /etc/fstab?
 
1 members found this post helpful.
Old 06-21-2010, 12:17 PM   #5
jazz13
LQ Newbie
 
Registered: Aug 2009
Location: Ukraine
Distribution: Archlinux
Posts: 6

Rep: Reputation: 2
Talking

Quote:
Originally Posted by Renan_S2 View Post
Fixed it.

Actually, it's not the duty of HAL to send parameters to mount, instead it is from the application (in this case, Thunar).

I edited /etc/xdg/xfce4/mount.rc and added iocharset=utf8 to the [vfat] category. Now it works.
Thank, you! That is awesome. Now it works for me too.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot mount internal hard drive: .hal-mtab and .hal-mtab-lock messed up extremewaffles Linux - Newbie 3 07-01-2009 05:15 PM
OpenSuse 11.1 do not mount CDrom or USB pen drive Hal daemon problem reported cstomaci Linux - Newbie 3 03-27-2009 08:58 AM
Flash drive won’t mount after hibernate (HAL problem?) tux_addict Debian 1 05-13-2008 08:34 PM
HAL wont mount dvd drive... r3b0rn Linux - Hardware 1 09-24-2007 02:59 PM
HAL wont let me mount usb device in Slackware 12 herbietheferret Linux - Hardware 3 07-27-2007 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration