ubuntu Error mounting /dev/sda6 at /media/xxx...
问题原因:可能是windows没有完全关机,详细请看我的另一博文: http://www.cnblogs.com/ediszhao/p/3794459.html
为了学习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了
至于sda4 还是sda5 什么的,可以点一下你没有挂载的盘看看,上图:
完了:
可以进去了,在系统右边有个向上的什么什么图标,就ok了。
注意:
装有windows系统的盘最好不要挂载,否测可能会出现无法打开windows系统的惨剧!如果已经挂载了它,就用umount 撤销挂载!这样windows自我修复后就可以使用了,不过要花费些不必要的时间!
本文仅用于参考!