CentOS掛載NTFS硬碟

來源:互聯網
上載者:User

CentOS本身是不支援NTFS的格式的,為了讓CentOS能夠支援Windows的NTFS。利用ntfs-3g使其支援NTFS的掛載。

步驟如下:

一、安裝ntfs-3g

1、從官網http://www.tuxera.com/community/ntfs-3g-download/下載穩定版ntfs-3g

2、解壓tar.gz包。在目錄中運行命令窗。

./configuremakemake install

或者直接都在命令窗中操作 

    wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2011.4.12.tgz    tar zxvf ntfs-3g-2010.8.8.tgz    cd ntfs-3g-2010.8.8    ./configure    make    make install

*****在configure的時候可能會跳出 no acceptable C compiler in $PATH****

這是由於沒有安裝gcc這個c編譯器,安裝方法 # yum -y install gcc

重新上面configure後的步驟

*****解決***

一、掛載NTFS硬碟

這裡以windows中的C盤( /dev/sda1)為例。

1、建立掛載點,建議放在/mnt/windows下

mkdir /mnt/windowsmkdir /mnt/windows/c

2、掛載C盤

mount -t ntfs-3g /dev/sda1 /mnt/windows/c

至此,就可以查看並編輯/mnt/window/中Windows中NTFS盤的內容.

如果想開機系統啟動時自動掛載NTFS分區,編輯vim /etc/fstab檔案,加入類似如下內容:

唯讀式掛載:/dev/sda1 /mnt/windows/c ntfs-3g ro,umask=0222,defaults 0 0

讀寫式掛載:/dev/sda1 /mnt/windows/c ntfs-3g rw,umask=0000,defaults 0 0
或者: /dev/sda1 /mnt/windows/c ntfs-3g defaults 0 0

轉自:http://blog.csdn.net/esp4u/article/details/6748032

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.