[轉]Ubuntu 12.04開機自動掛載Windows分區

來源:互聯網
上載者:User

標籤:

[轉]Ubuntu 12.04開機自動掛載Windows分區

http://www.cnblogs.com/A-Song/archive/2013/02/27/2935255.html

 

系統版本:Ubuntu 12.04(wubi安裝)

1.查看系統磁碟號

sd2,sd5,sd7分別對應我windows的C,D,F盤,也是本次要添加到開機掛載的,E盤為wubi安裝盤。

2.查看磁碟類型

inux分區一般為ext4,windows分區一般為ntfs

3.修改設定檔

開啟/etc/fstab

設定檔包含以下幾項:

<file system> <mount point>   <type>  <options>       <dump>  <pass>

<file system> :分區定位,可以給磁碟號,UUID或LABEL,例如:/dev/sda2,UUID=6E9ADAC29ADA85CD或LABEL=software

<mount point> : 具體掛載點的位置,例如:/media/C

<type> : 掛載磁碟類型,linux分區一般為ext4,windows分區一般為ntfs

<options> : 掛載參數,一般為defaults

<dump> : 磁碟備份,預設為0,不備份

<pass> : 磁碟檢查,預設為0,不檢查

4.檢查並掛載新添項:

sudo mount -a

mount -a會/etc/fstab中的項全部掛載,如果有錯,則會提示錯誤,然後根據錯誤找出原因修改。

注意:千萬不要掛載到目前使用者的根目錄,因為掛載的分區會覆蓋當前分區內容

 

[轉]Ubuntu 12.04開機自動掛載Windows分區

聯繫我們

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