Centos開機自己主動掛載windows中的ntfs磁碟

來源:互聯網
上載者:User

標籤:roo   class   log   技術      zha   編譯安裝   files   csdn   

   裝了windows和centos雙系統後,發如今centos中無法進入windows中的磁碟,更不要說查看磁碟裡的檔案了!  

  原來預設情況下。centos不支援Widows NTFS硬碟分區讀寫,要想把NTFS格式的磁碟掛載到CentOS 以下須要安裝第三方軟體ntfs-3g。

那麼怎樣實現掛載並開機自己主動掛載呢?

一、下載ntfs-3g 原始碼包進行編譯安裝

  :http://down1.chinaunix.net/distfiles/ntfs-3g-1.2918.tgz

1、安裝編譯工具

   yum install gcc -y

2、解壓安裝

 
3、./configure 成功運行後,再運行make ;make install完畢安裝。

二、查看windows裡的分區資訊


三、掛載windows裡的硬碟分區

/dev/sda1分區掛載到/mnt/winC
/dev/sda5分區掛載到/mnt/winD
/dev/sda6分區掛載到/mnt/winE
/dev/sda7分區掛載到/mnt/winF

進入/mnt檔案夾。建立winC winD winE winF 四個掛載檔案夾。並把對應的分區掛載到檔案夾。


四、實現開機自己主動掛載。編輯/etc/fstab檔案。

   [[email protected] mnt]# cp   /etc/fstab   /etc/fstabbak   //改動前先備份
   [[email protected] mnt]# vim   /etc/fstab                      //編輯



改動為上面的內容並退出儲存!

如今就能夠實現開機自己主動掛載了!



Centos開機自己主動掛載windows中的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.