ubuntu Error mounting /dev/sda6 at /media/xxx...

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自我修复后就可以使用了,不过要话费些不必要的时间!

你可能感兴趣的:(ubuntu,挂载)