代码之家  ›  专栏  ›  技术社区  ›  Mohammad Jawad Barati

在终端中安装ubuntu 16.04中的ntfs分区时出错

  •  0
  • Mohammad Jawad Barati  · 技术社区  · 7 年前

    你好 .

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

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

    这意味着我更改了C分区,并为Ubuntu操作系统(如home&swap&root)对其进行了分区。D的分区是常数。所以D分区没有改变。(D分区为NTFS)

    C中ubuntu的分区

    安装Ubuntu时,我想打开我的D驱动器(ntfs),但出现以下错误:

    this message show when i want to open drive

    当安装在终端时,给我这个信息:

    `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.`
    

    这是:

    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在错误消息中告诉我:你可以只读挂载分区。

    我的问题是:是否存在任何以读/写形式装载分区的命令。

    3 回复  |  直到 4 年前
        1
  •  2
  •   Sebastian D'Agostino Nitin Vishwakarma    6 年前
    1. 打开磁盘
    2. 选择您无法安装的分区,然后关闭自动安装选项,取消选择启动时安装&写 ro 如图所示,逗号后(&A);现在您应该能够成功地装载磁盘了。

        2
  •  1
  •   Carlos Mion    7 年前

    看起来你的windows在关机前锁定了你的硬盘。 当您试图从另一个操作系统访问windows安装的HD时,就会发生这种情况,因为在关机时,windows会锁定对HD的访问,因为这样做可以在下次启动windows时获得一些性能。

    因此,如果你关闭windows,然后直接将你的电脑换成其他电脑,这样你就无法访问windows所能访问的高清/分区,那么在使用linux之前,只需重新启动你的windows。

        3
  •  0
  •   Perky    5 年前

    在windows中尝试Shift+关机,然后引导到Ubuntu操作系统。它将安装所有驱动器