[Linux]如何掛載Big5中文FAT檔案系統

| | 迴響 (22) | 引用 (0)


正體中文的使用者在 Linux 下掛載 FAT/VFAT 的時候,要注意這樣下 mount 參數:

user,rw,fmask=133,dmask=022,codepage=950,iocharset=utf8

我想紀錄的是關於中文 Big5 字碼和 Linux 下 UTF-8 locale 的轉換。我目前的 Linux 測試環境使用 en_US.UTF-8 locale,FAT 側則有一些經過 Unicode 補完計畫補正的亂七八糟 Big5 (先聲明,對字碼和字碼轉換我是外行人)

codepage 指定 FAT 檔案系統內使用的 codepage。雖然 manpage 說它是


          Sets the codepage for converting to shortname characters on FAT and VFAT
          filesystems. By default, codepage 437 is used.

 
不過不設的話,長檔名一樣會出問題。iocharset=utf8 的效果則和 utf8 參數相同,不過 FAT 並沒有 utf8 這個參數的說明,VFAT 才有;它的作用是指定 Linux 側的存取字碼。我在測試的時候先笨笨地把 iocharset=big5,結果跑出一堆亂碼;其實是要設得和 locale 相同才對。

fmask, dmask 則用來讓檔案系統的權限乾淨點。


    –From Everyday Work


這篇屁話被收在分類:

0 則引用

本篇屁話的引用連結 : http://thecrap.org/mt-tb.cgi/103

引用 [Linux]如何掛載Big5中文FAT檔案系統 的文章如下 :

22 則迴響

Burke 說:

I’ve been in similar situations before. It is not as easy an answer as you thought it is, its something that you’ll have to write out for yourself over time.

Yes, i am glad that your asking us to know our opinion.

Some truly nice and useful info on this site, too I think the style and design contains great features.

How do I write a Blog introducing a new to social networking site?

I really like the very first place you made now there, however i was confused I possibly could reasonably use that in a contructive technique.

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get three e-mails with the same comment. Is there any way you can remove people from that service? Many thanks!

We appreciate your posts and look forward to coming back

I am continuously looking for somebody to alternative articles and reviews along with, I am a student and possess a internet site proper here on our university website. The topic of your respective weblog and writting design and style would definitely go excellent in some of my category's, tell me if you are up for this.

Well..yes because it shares something that is happening now.

How do I remove an image from my blogger sidebar?

kathryn 說:

The funniest pictures from India

Hello There. I discovered your blog using msn. That is a really smartly written article. I will make sure to bookmark it and return to learn extra of your useful info. Thanks for the post. I’ll definitely comeback.

Good write-up, I am regular visitor of one's website, maintain up the excellent operate, and It's going to be a regular visitor for a lengthy time. "He who seizes the right moment is the right man." by Johann von Goethe.

Wow! Thank you! I always needed to write on my blog something like that. Can I include a portion of your post to my site?

Alright, it really is a good start however i'm going to take a look at that a little bit more. Will let you know exactly what more i've found.

Excellent article as usual thankyou

My spouse and i as a result enjoyed all facets with this internet site and I’ve saved your website to keep up with the new subject matter you will distribute later on.

Nice post! good information.

Sit And Go 說:

When you’ve finally got there and you’re making the cash you want from your web marketing enterprise, you are going to look back (like others have) and ask yourself why the road couldn’t be straighter. But again that’s life! It’s always easier to be smart after the fact.

給我一點 tempo

About

這篇屁話是由 Alvin Wu 發表於 May 19, 2005 3:24 PM

上一篇是 [言錄]95% and 5%

下一篇是 [新聞]Google推出個人版首頁

首頁 可以找到最近的屁話,或是到 彙整 去看全部的屁話紀綠

Powered by Movable Type 4.34-en