在终端的 ubuntu 16.04 中挂载 ntfs 分区时出错

Error Mounting for ntfs partition in ubuntu 16.04 in terminal

你好.

我需要帮助。我想在 ubuntu 16.04.BUT 中安装驱动器 D 我的分区是ntfs格式。 (驱动器 C 和 D)

我在我的电脑上安装了Windows 7,但后来我删除了它并安装了Ubuntu 16.04,但我只是重新分区了C盘,并没有改变D盘的分区。

意味着我更改了 C 分区并将其分区为 Ubuntu OS(如 home & swap & root)。 D 的分区是常数。所以D分区没有变化。(D分区是NTFS)

在 C

中为 ubuntu 分区

安装Ubuntu后,我想打开我的D盘(ntfs),但出现以下错误:

this message show when i want to open drive

and when mounting in terminal give me this message:

`root@mjb:/home/mjb# mount -t "ntfs" /home
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.`

and this:

sudo mount -t ntfs-3g /dev/sda5 /dummy
[sudo] password for mjb: 
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda5': 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.

我测试了这个解决方案:

  1. 打开终端
  2. 键入此命令 sudo -mount -t ntfs -r /dev/sda5 然后输入

然后分区挂载了,但我有一个新问题:

分区是只读的因为我输入命令-r

ubuntu在错误信息中告诉我:你可以只读挂载分区。

我的问题是:是否存在任何以read/write形式挂载分区的命令。

您的 windows 似乎在关机前锁定了您的 HD。 当您尝试从另一个 OS 访问安装了 windows 的 HD 时会发生这种情况,因为在关闭时,windows 会锁定对 HD 的访问,因为通过这样做,它可以获得一些下次启动时恢复 Windows 的性能。

因此,只需在进入 linux 之前尝试重新启动您的 windows,如果您关闭 Windows 然后将您的 PC 直接切换到任何其他设备,那么您将无法访问HD/partition Windows 可以访问。

  1. 打开磁盘
  2. Select 您无法挂载的分区然后关闭自动挂载选项,在启动时取消选择挂载并在逗号后写入 ro 如图所示,现在您应该能够挂载磁盘成功

在 windows 中尝试 Shift+关机,然后启动至 Ubuntu os。它将安装所有驱动器