如何挂载硬盘

Col*_*son 5 mount 12.04

几天前,我的 Windows 损坏了,我不得不将 Ubuntu 安装到 USB 并将其安装到另一个硬盘驱动器上,该硬盘驱动器也连接到同一台计算机。我有一些文件我很想从另一台计算机上恢复,但如果归结为它,我可以摆脱它们,我只想能够再次使用硬盘驱动器。但是,每当我尝试打开硬盘时,它都会给我这个错误

"Error mounting /dev/sda1 at /media/unknown/Gateway: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/unknown/Gateway"' exited with non-zero exit status 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details."
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激。此外,如果您可以将任何内容分解为基本信息,那将是很棒的我是 Ubuntu 的新手,所以我现在真的不知道如何用它做很多事情。

新消息

"Error mounting /dev/sda1 at /media/unknown/Gateway: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/unknown/Gateway"' exited with non-zero exit status 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read NTFS $Bitmap: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details."
Run Code Online (Sandbox Code Playgroud)

nan*_*rad 2

ntfsfix是一个执行有限 NTFS 检查的程序。虽然它不能解决所有 NTFS 问题,但它可以解决一些问题。

首先,确保ntfs-3g已安装:

sudo apt-get install ntfs-3g
Run Code Online (Sandbox Code Playgroud)

现在,运行以下命令来尝试修复:

sudo ntfsfix /dev/sda1
Run Code Online (Sandbox Code Playgroud)

并让它尝试解决问题。

如果失败,请下载并安装testdisk. 这需要更多的手动操作,但可以让您获取任何无法恢复的重要文件。

sudo apt-get install testdisk
Run Code Online (Sandbox Code Playgroud)

并运行它:

sudo testdisk
Run Code Online (Sandbox Code Playgroud)

然后您将看到它扫描卷,然后您可以选择正确的卷。请遵循有关终端窗口底部的按键功能的指南。

所有命令都在终端中。打开终端时,请等到看到提示ubuntu@ubuntu:~$后再运行命令。由于您使用的是 Live CD,因此重新启动后您将丢失更改。考虑将 Ubuntu 安装到更大的外部硬盘上,以实现 Ubuntu 的永久安装。
当您使用 时sudo,它可能会提示您输入密码。在直播媒体上是这样ubuntu。如果您安装 Ubuntu,则它是您的用户密码。当你输入它时,它不会被看到(甚至不会****