Blog->Erny

不要想太多…

centos mount ntfs

原文來自: http://paul.pixnet.net/blog/post/25768635

此次筆記是補充兩年前「Linux support NTFS by NTFS-3G」這
篇文章,現在使用 NTFS-3G 變得方便不少,僅需要確認套件是
否有安裝,幾行指令即可讓 Linux 支援 NTFS 的檔案格式。

【實作環境】

OS:CentOS 5.4_x64
Kernel:kernel-2.6.18-164.10.1.el5

【所需套件】

* fuse
* ntfs-3g-2010.1.16.tar.gz
* ntfsprogs-2.0.0.tar.gz

【安裝步驟】

1) yum install fuse

[root@sys ~]# yum install fuse

2) ntfs-3g tarball install

[root@sys ~]# tar zxvf ntfs-3g-2010.1.16.tgz
[root@sys ~]# cd ntfs-3g-2010.1.16/
[root@sys ~]# ./configure –prefix=/usr/local/ntfs-3g
[root@sys ~]# make
[root@sys ~]# make install

3) ntfsprogs tarball install

[root@sys ~]# tar zxvf ntfsprogs-2.0.0.tar.gz
[root@sys ~]# cd ntfsprogs-2.0.0/
[root@sys ~]# ./configure –prefix=/usr/local/ntfsprogs
[root@sys ~]# make
[root@sys ~]# make install

【建立 NTFS 檔案系統】

[root@sys ~]# mkntfs /dev/sda1

【掛載 NTFS 檔案系統】

[root@sys ~]# mount -t ntfs-3g /dev/sda1 /mnt/windows

【開機自動掛載 NTFS 檔案系統】

[root@sys ~]# vi /etc/fstab

/dev/sda1 /mnt/windows ntfs-3g defaults 0 0

補充說明:

舊版本原先需用 locale=zh_TW.utf8 來設定支援中文。新版已
不支援「locale」參數。僅需檢查環境變數「LC_ALL」是否為
zh_TW.utf8,即可支援繁體中文。

【參考資料】

NTFS-3G 官方網站
Linux-NTFS Wiki

【延伸閱讀】

Junction ( Windows 版的 symbolic link )

發表迴響

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

連結到 %s

Follow

Get every new post delivered to your Inbox.