ubuntu 磁盘挂载问题
2014-10-08 10:23
399 查看
为了学习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/
相关文章推荐
- ubuntu14.04挂载磁盘权限问题的解决(repo代码权限问题)
- 解决开机不显示其他磁盘问题 PySdm :设置Ubuntu启动挂载硬盘分区
- Ubuntu与Windows10双系统磁盘挂载无法访问的问题
- Ubuntu磁盘挂载的问题
- linux下磁盘挂载的一些小问题
- [Linux]Ubuntu下正确挂载NTFS磁盘的方法
- 12、ubuntu安装vmware-tools无法挂载问题
- Ubuntu 10.10下挂载的window盘符无法获得可执行权限的问题
- Ubuntu下开机自动挂载windowsXP下的磁盘
- 让Ubuntu开机挂载ntfs磁盘
- Oracle 10g ASM - 创建DISKGROUP时无法识别ASM磁盘ORCL:DATA*及无法全部挂载的问题
- Ubuntu开机自动挂载硬盘的权限问题
- ubuntu虚拟机无法上网及挂载nfs的问题
- 关于ubuntu自动挂载U盘或是SD卡成只读模式的问题
- 如何让Ubuntu桌面上不显示已挂载的磁盘
- ubuntu和debian环境下vmware虚拟机共享目录无法挂载的问题解决办法
- 来吧,和我一起进入ubuntu 9.04 超级兔子的世界(解决NTFS挂载问题)
- 修复Ubuntu分区挂载错误,Grub引导错误,ubuntu升级后不能显示桌面等问题
- 安装ubuntu 11.10 遇到挂载Ntfs 文件系统的问题
- samba磁盘挂载出现问题