blkid does not read non-ASCII characters from NTFS labels
Nominated for Karmic by Zen Shaolin
Nominated for Lucid by Zen Shaolin
Binary package hint: hal
When plugging in an external harddrive with an NTFS filesystem with a label set to contain UTF-8 characters, the mounted path as well as the label displayed in nautilus are incorrect. The label reported by ntfs-3g are always correct. The labels are set with the command ntfslabel.
Some different examples follows:
NTFS label # HAL label discovered # Label used in Nautilus / Filesystem path (/media/...)
dong # dong # dong
東西 # 55 # ??
Å # % # 4A12287F1228725D
dong西 # dong% # dong?
dongÅ # dong% # dong
dong西xi # dong%xi # dong?xi
dongÅxi # dong%xi # dong
Examining the above table shows that depending on what Unicode character the file system path and label shown in nautilus differ. The behaviour of hal is also a bit odd. When a chinese character is used together with a ASCII character, hal with read it as '%', while nautilus and the path as '?'. When the swedish character 'Å' is used together with ASCII characters, hal with do the same as with chinese characters, but nautilus and the path will simply truncate everything including and after the swedish character.
If only chinese characters are used, hal with read them as the number '5'. '東西' is translated into '55'. ‘東西南北’ translates to '5555'. When only swedish characters are used, hal will read them in as '%', while the path as well as the label presented in nautilus will be something looking like a large random identifier number.
In Ubuntu 9.04, these issues did not exist. A NTFS partition with label 東西 would automatically mount into /media/東西/, and would be presented correctly in nautilus. The issue occurred immediately after upgrading to Ubuntu 9.10.
Setting the label is done with the command ntfslabel. Reading hal values is done with the command hal-devices.
|affects:||hal (Ubuntu) → autofs (Ubuntu)|
- Automounted NTFS disks with Unicode in label results in invalid path
+ Automounted NTFS disks with Unicode in label results in incorrect path
after upgrading to 9.10
|affects:||autofs (Ubuntu) → nautilus (Ubuntu)|
|affects:||nautilus (Ubuntu) → devicekit-disks (Ubuntu)|
|Martin Pitt (pitti) wrote : Re: Automounted NTFS disks with Unicode in label results in incorrect path after upgrading to 9.10||#1|
|Changed in util-linux (Ubuntu):|
|importance:||Undecided → Medium|