LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Set NTFS (fuseblk) external media to mount with UTF-8 filesystem (https://www.linuxquestions.org/questions/linux-newbie-8/set-ntfs-fuseblk-external-media-to-mount-with-utf-8-filesystem-852252/)

dotancohen 12-24-2010 03:15 PM

Set NTFS (fuseblk) external media to mount with UTF-8 filesystem
 
Kubuntu 10.10 nicely mounts vfat external media as UTF-8, see for
example my disk-on-key:
Code:

/dev/sdd1 on /media/DOTANCOHEN type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1002,gid=1002,shortname=mixed,dmask=0077,utf8=1,showexec)
However, NTFS external media is not UTF-8, and it is giving this user
a hassle as her native language cannot be represented in ASCII:
Code:

/dev/sdc1 on /media/Expansion Drive type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
How does one configure the mounting of such external media? There is
little sense in editing fstab as there could be any arbitrary device
attached to the system which needs this. So how is it done?

Thanks!

markush 12-24-2010 06:07 PM

Hello dotancohen,
Quote:

Originally Posted by dotancohen (Post 4202309)
... How does one configure the mounting of such external media? There is little sense in editing fstab as there could be any arbitrary device
attached to the system which needs this. So how is it done?...

you may take a look at "udev-rules", here's a tutorial: http://reactivated.net/writing_udev_rules.html
As you know udev manages the devices in Linux. One can create udev-rules in order to bind actions to a specific device (recognized for example by vendor and/or serial-number). These actions are then achieved by the udev-daemon when it recognizes the device, for example your external harddrive.

Markus

dotancohen 12-25-2010 11:21 AM

Thanks, Markush. I had heard of udev in the past but forgot about it. The page that you link to is terrific, that should solve this issue.

Thanks!


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