在 ubuntu 中检测损坏的文件

在 ubuntu 中检测损坏的文件

我的硬盘上有 Windows7。当我尝试启动笔记本电脑时,它在启动 Windows 屏幕后挂起并显示蓝屏。

然后我尝试使用 CD 重新安装 Windows,但安装也挂起了。

最后,我在我的硬盘上安装了ubuntu 12.04,但我想再次安装windows7。

*问题 : *chkdsk在 Windows 中检查 ubuntu 中的磁盘的命令是什么?

我可以成功将驱动器安装到硬盘上,并且可以访问一些文件。当我尝试将文件复制到外部驱动器时,出现了错误,cannot read files我怀疑是损坏的

目的:删除/恢复文件并重新安装 Windows

还将帮助 ?

我也这样做了

bhavik@bhavik-Studio-1558:~$ ntfsfix -b -d /dev/sda1
Mounting volume... Error opening '/dev/sda1': Permission denied
FAILED
Attempting to correct errors... Error opening '/dev/sda1': Permission denied
FAILED
Failed to startup volume: Permission denied
Error opening '/dev/sda1': Permission denied
Volume is corrupt. You should run chkdsk.
bhavik@bhavik-Studio-1558:~$ 
bhavik@bhavik-Studio-1558:~$ 

更新:根据评论和答案我运行了命令sudo ntfsfix -b -d /dev/sda4并且输出是

bhavik@bhavik-Studio-1558:~$ sudo ntfsfix -b -d /dev/sda4
Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
Unrecoverable error
Volume is corrupt. You should run chkdsk.
bhavik@bhavik-Studio-1558:~$ sudo ntfsfix -b -d /dev/sda5
Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
The alternate bootsector is usable
Set sector count to 8097791 instead of 771969023
Rewriting the bootsector
The boot sector has been rewritten
ntfs_mst_post_read_fixup_warn: magic: 0x79930316  size: 1024   usa_ofs: 51168  usa_count: 510: Invalid argument
Record 0 has no FILE magic (0x79930316)
Failed to load $MFT: Input/output error
Volume is corrupt. You should run chkdsk.
bhavik@bhavik-Studio-1558:~$ 

如何修复磁盘损坏?我正在考虑使用分区管理器对其进行格式化。还有其他方法吗?

答案1

您必须尝试使用​​ sudo。过去我也使用过这个,并遇到了同样的错误,但是那条语句权限被拒绝让我尝试使用 sudo。

所以你必须尝试

sudo ntfsfix -b -d /dev/sda1

我确信这会对你有帮助。

例如,我会展示我自己。

frank@august:~$ sudo ntfsfix -b -d /dev/sda6
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
Going to un-mark the bad clusters ($BadClus)... No bad clusters...OK
NTFS partition /dev/sda6 was processed successfully.

希望有帮助。

相关内容