ubuntu 磁盤掛載問題

      爲了學習linux我裝了雙系統,因爲我還不想放棄windows的軟件兼容性,但是出現了不能讀取其他盤的內容,這個問題在我剛剛開始接觸linux的時候就已經出現過,那時傻傻的我不知所錯,竟然重裝系統,把windows給革掉了,但是現在想玩玩windowsphone的開發,所以裝了雙系統。

Error mounting /dev/sda6 at /media/xxx/xx: Command-line`mount -t "ntfs" -o"uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177""/dev/sda6" "/media/gaoyuan/文檔"' exited with non-zero exit status14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda6': Operation not permitted
The NTFS partition is in an unsafe state. Please resume andshutdown
Windows fully (no hibernation or fast restarting), or mount thevolume
read-only with the 'ro' mount option.

  1-打開終端

  2-sudo fdisk -l   //查看分區掛載情況;一下是我的電腦的情況

  Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000e8904

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   104857671    52428804+   7  HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
/dev/sda2       104857734   364904447   130023357    f  W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda3       364904664   494928095    65011716    7  HPFS/NTFS/exFAT
/dev/sda4       494928096   625142447    65107176    7  HPFS/NTFS/exFAT
/dev/sda5       104857736   234881167    65011716    7  HPFS/NTFS/exFAT
/dev/sda6       234881232   306375597    35747183    7  HPFS/NTFS/exFAT
/dev/sda7       306376704   361259007    27441152   83  Linux
/dev/sda8       361261056   364904447     1821696   82  Linux swap / Solaris

  可以看出3,4,5,6是windows的中可以看到的盤盤。

  3.$sudo mkdir /media/xxx/yy                         //xxx爲你的hostname,可以說是用戶名吧,yyy是你要把掛載的文件名,可以是E,D,F ... 跟windows 相應,也可以其他的

  4.$mount -t ntfs-3g /dev/sda4 /media/xxx/yy/ -o force    // 參照網友意見而來 
  但是這個命令在我的機子會出現這樣的錯誤:Windows is hibernated, refused to mount.
Failed to mount '/dev/sda4': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

  然後把-o 改爲 -ro;

  就ok了


注意:

    裝有windows系統的盤最好不要掛載,否測可能會出現無法打開windows系統的慘劇!如果已經掛載了它,就用umount 撤銷掛載!這樣windows自我修復後就可以使用了,不過要話費些不必要的時間!

轉自:http://e-mailwu.blog.163.com/blog/static/651040362014316103012706/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章