misc/128315: ntfs-3g does not work with ru_RU.KOI8-R

Oleg Gawriloff barzog at telecom.by
Thu Oct 23 12:00:06 UTC 2008


>Number:         128315
>Category:       misc
>Synopsis:       ntfs-3g does not work with ru_RU.KOI8-R
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 23 12:00:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Gawriloff
>Release:        6.2
>Organization:
Atlant Telecom
>Environment:
FreeBSD stork.telecom.by 6.2-RELEASE-p10 FreeBSD 6.2-RELEASE-p10 #5: Sun May 25 15:25:26 EEST 2008     root at stork.telecom.by:/usr/obj/usr/src/sys/STORK  amd64

>Description:
We have NTFS disk with some russian filenames. Locale in FreeBSD is KOI8-R. When mounting with:
/dev/da14s1             /usr/jails/torrentjl/mnt/TransferB      ntfs-3g ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.KOI8-R       
In log files:
Oct 23 14:48:54 stork ntfs-3g[37698]: Version 1.2531 external FUSE 27
Oct 23 14:48:54 stork ntfs-3g[37698]: Mounted /dev/da14s1 (Read-Only, label "", NTFS 3.1)
Oct 23 14:48:54 stork ntfs-3g[37698]: Cmdline options: ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.KOI8-R
Oct 23 14:48:54 stork ntfs-3g[37698]: Mount options: ro,noexec,silent,allow_other,nonempty,default_permissions,noatime,fsname=/dev/da14s1

And then doing ls /usr/jails/torrentjl/mnt/TransferB there is no russian filenames. In error log I see following:
Oct 23 14:49:07 stork ntfs-3g[37698]: Skipping unrepresentable filename (inode 793): Illegal byte sequence
for each of russian filenames.

When mounting with:
/dev/da14s1             /usr/jails/torrentjl/mnt/TransferB      ntfs-3g ro,noati
me,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.UTF-8 0       0
Oct 23 14:52:26 stork ntfs-3g[40443]: Version 1.2531 external FUSE 27
Oct 23 14:52:26 stork ntfs-3g[40443]: Mounted /dev/da14s1 (Read-Only, label "", NTFS 3.1)
Oct 23 14:52:26 stork ntfs-3g[40443]: Cmdline options: ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.UTF-8
Oct 23 14:52:26 stork ntfs-3g[40443]: Mount options: ro,noexec,silent,allow_other,nonempty,default_permissions,noatime,fsname=/dev/da14s1
There is no errors in log, but russian filenames are in UTF8 (which is really inconvinient).

When mounting using FreeBSD NTFS driver with:
/dev/da14s1            /usr/jails/torrentjl/mnt/TransferB      ntfs    ro,noati
me,noauto,-u=65534,-g=65533,noexec,-C=KOI8-R    0       0
All russian filenames are in KOI8-R which is good, but reading speed is 3.8Mbytes/sec (in ntfs-3g reading speed is 32 Mbytes/sec).

PS: In /etc/profile we have:
export MM_CHARSET="KOI8-R"
export LANG="ru_RU.KOI8-R"
export LC_TIME=POSIX

>How-To-Repeat:
Mount NTFS partition with russian filenames with locale=ru_RU.KOI8-R
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list