Linux如何顯示FAT等分區上的漢字檔案名稱

來源:互聯網
上載者:User

我從redhat發布至今無論哪個版本當你掛接上windows分區,都不能正確的顯示中文檔案名稱,這給大多數使用redhat的朋友帶來了麻煩。mandrake就做的很不錯,安裝後不僅自動掛接widows分區,而且可以正確的顯示中文檔案名稱,我就為大家介紹兩種解決方案!

1:安裝 linuxconf的Rpm包

你可以找一個linuxconf的rpm包,redhat已經在預設情況下已經不裝它了.你可以在你的光碟片中或網上找到,一般不會存在版本問題,比如我用的是redhat8.0,linxuconf確是7.2版的。

找到linuxconf,然後執行

rpm -ivh linuxconf****.rpm

(1)在終端運行

linuxconf

(2)找到File systems樹型菜單中的 Access local drive 進入

(3)先掛載 windows ,選擇add,接下來例如:

Partition–/dev/hda1 Type–vfat mount–/mnt/c

(4)就是顯示中文檔案名稱的參數

在掛接完一個分區,接著游標下移,Dump frequency輸入0;Fsck priority輸入0;default permission輸入0;

Other options輸入iocharset=gb2312,codepage=936。完成,最後一直確定,從啟動機子。

2:你也可以在/etc/fstab中修改設定檔。

vi /etc/fstab

加入:

/dev/hda1 /mnt/c vfat exec,dev,suid,rw,umask=0,iocharset=gb2312,codepage=936 0 0
/dev/hda5 /mnt/d vfat exec,dev,suid,rw,umask=0,iocharset=gb2312,codepage=936 0 0
/dev/hda6 /mnt/e vfat exec,dev,suid,rw,umask=0,iocharset=gb2312,codepage=936 0 0/dev/hda7 /mnt/f vfat
exec,dev,suid,rw,umask=0,iocharset=gb2312,codepage=936 0 0
/dev/hda8 /mnt/g vfat exec,dev,suid,rw,umask=0,iocharset=gb2312,codepage=936 0 0

如果你已經mount過了,那就主意把參數加入,就行了。

記好,最好在你想掛接的地方現把檔案夾建立好!

我的系統已經可以正常顯示了,在xmms中開啟帶有中文名的歌曲方便多了。

相關文章】

  • Linux中文環境(專題)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.