Debian 8開機自動掛載windows下的ntfs硬碟

來源:互聯網
上載者:User

標籤:建立   get   目錄   fst   開啟   ntfs   reboot   oca   自動   

1:每次要去windows的盤符查看資料什麼的,都要去輸入一次密碼什麼的來進入.不能自己開機掛載,就覺得好麻煩
於是準備開機掛載windows下的C,D2個盤符到debian

2:首先下載ntfs-3g
$sudo apt-get install ntfs-3g  
接著安裝成功後,
    #mkdir /mnt/WIN_C
    #mkdir /mnt/WIN_D

在/mnt目錄下面建立2個目錄,對應需要掛載的2個盤符.

然後查看盤符的名字
#fdisk -l

接著開啟
    #cp /etc/fstab /etc/fstab.bak
    #vim /etc/fstab 

在最後面加上

    /dev/sdb1       /mnt/WIN_C   ntfs-3g rw,locale=zh_CN.utf8,uid=1000 0 0     
    /dev/sdb5       /mnt/WIN_D   ntfs-3g rw,locale=zh_CN.utf8,uid=1000 0 0    

然後儲存退出:wq

#reboot

重啟就可以了

Debian 8開機自動掛載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.