LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-21-2010, 10:10 PM   #1
chenokay
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
the problem of mounting NTFS


HI:
The kernel version of slackware is 2.6.33.4,and I mount a NTFS partition like this:
mount -o iocharset=gb2312 /dev/sda5 /media/win_d
/dev/sda5 is NTFS partition used in the vista system.
it can mount the sda5 successflly,but the chinese file/folder name is random character when I use the "ls" command or acess them with the GUI file manager.
The chinese character can be showed right when I open a chinese character file with kwrite or openoffice, and the chinese file/folder name are also right when I use TAB key in bash window.

thank you for helping me.

大家好:
我使用的Slackware的内核版本是2.6.33.4,我挂载了一个ntfs分区,命令如下:
mount -o iocharset=gb2312 /dev/sda5 /media/win_d
/dev/sda5 是ntfs分区
命令能成功挂载这个分区,但是在bash窗口下用ls命令显示的中文文件名为乱码,在用图形界面的文件管理器也是显示乱码。
但是,把文件打开后,中文字符又能正常显示,而且我在bash命令窗口中按tab键进行自动补全,又能正确显示中文文件或者文件夹。
希望帮助我一下。

Last edited by chenokay; 07-29-2010 at 11:02 AM.
 
Old 07-22-2010, 02:35 PM   #2
x-alien
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 39

Rep: Reputation: 21
Did you try NTFS-3G and UTF-8?

Code:
mount -t ntfs-3g -o silent,umask=0,no_def_opts,allow_other,locale=zh_CN.UTF-8 /dev/sda5 /media/win_d
 
Old 07-29-2010, 10:56 AM   #3
chenokay
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by x-alien View Post
Did you try NTFS-3G and UTF-8?

Code:
mount -t ntfs-3g -o silent,umask=0,no_def_opts,allow_other,locale=zh_CN.UTF-8 /dev/sda5 /media/win_d
I mount the partition with the command you had given,but the problem always exist. Thank you all the same, I am looking forward new advices.
 
Old 07-29-2010, 04:33 PM   #4
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Set up you environment to use UTF8. For example zh_CN.UTF-8 instead of zh_CN.GB2312. The ntfs-3g no longer supports non-utf locales.
If your linux partitions have filenames in other encodings, use convmv to convert them to utf8.
 
Old 07-29-2010, 06:32 PM   #5
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
you need multichar_enconding console font.
 
  


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
Problem mounting NTFS. skaynum Linux - Newbie 2 11-04-2008 09:53 AM
NTFS mounting problem Phase_Accurate Fedora 5 01-13-2006 09:38 PM
NTFS Mounting problem, please help... k0rupt Linux - Hardware 2 08-01-2004 05:46 PM
Yet another NTFS mounting problem david_annable Linux - Newbie 4 05-22-2004 03:16 PM
Problem Mounting NTFS sname Linux - General 2 08-16-2002 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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