CentOS6.5訪問NTFS分區

來源:互聯網
上載者:User

CentOS6.5訪問NTFS分區

筆記本安裝win7和centos雙系統,在centos下想訪問win7的NTFS格式檔案,需藉助NTFS-3G這個小工具,他能為Linux 提供 NTFS 分區的的驅動程式。能夠安全快速的對Windows格式分區提供讀寫支援。

下載NTFS-3G來源程式:官方下載 網盤下載

預設下載到目前使用者下面的downloads檔案夾,進入該檔案夾。

由於下載的是源碼,需要進行解壓縮,命令列下:

tar xzvf ntfs-3g_ntfsprogs-2014.2.15.tgz

進入解壓目錄,切換到root使用者,依次執行命令

[cpp]view plaincopy
  1. ./configure
[cpp]view plaincopy
  1. make
[cpp]view plaincopy
  1. makeinstall
驅動已經成功安裝!

選擇你要掛載的分區, 可以用fdisk -ls 命令查看

[c#]view plaincopy
  1. [root@linuxcast~]#fdisk-ls
[c#]view plaincopy
  1. Disk/dev/sda:320.1GB,320072933376bytes
  2. 255heads,63sectors/track,38913cylinders
  3. Units=cylindersof16065*512=8225280bytes
  4. Sectorsize(logical/physical):512bytes/512bytes
  5. I/Osize(minimum/optimal):512bytes/512bytes
  6. Diskidentifier:0x053bc438
  7. DeviceBootStartEndBlocksIdSystem
  8. /dev/sda1*115412288007HPFS/NTFS
  9. Partition1doesnotendoncylinderboundary.
  10. /dev/sda2154537541944831+7HPFS/NTFS
  11. /dev/sda3537637638259152547+5Extended
  12. /dev/sda43763938914102400007HPFS/NTFS
  13. /dev/sda553761581983891398+7HPFS/NTFS
  14. /dev/sda62626437638913696567HPFS/NTFS
  15. /dev/sda7158201584520480083Linux
  16. /dev/sda81584516368419430482Linuxswap/Solaris
  17. /dev/sda916368262637948800083Linux

比如要選擇將 sda5掛載到centos系統/mnt/windows/目錄下,命令列下:

[c#]view plaincopy
  1. mkdir/mnt/windows
[cpp]view plaincopy
  1. mount-tntfs-3g/dev/sda5/mnt/windows
此時在centos下已經可以訪問sda5分區了如果要想實現開機自動掛載,則可以編輯/etc/fstab檔案,給他最後加一行
[c#]view plaincopy
  1. /dev/sda5/mnt/windowsntfs-3gdefaults00儲存退出就可以了。
Linux下訪問NTFS格式的磁碟,就這麼簡單。

聯繫我們

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