我双启动 Ubuntu 和 Windows 7。
我在 Ubuntu 中浏览 FireFox,突然我收到一些错误消息,所以我重新启动。
现在,当我尝试启动到 Ubuntu 时,我收到以下消息:
fsck from util-linux 2.26.2
/dev/sda6 contains a file system with errors, check forced.
/dev/sda6: Inodes that were part of a corrupted orphan linked list found.
/dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda6 requires a manual fsck
Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash)
Enter 'help' for a list of built-in commands. …
Run Code Online (Sandbox Code Playgroud) 我的笔式驱动器使用的是 FAT32 文件系统。它经常有文件/数据损坏。
在 Windows 中,我使用了扫描磁盘实用程序来修复 FAT32/NTFS 文件系统。我怎样才能在 Ubuntu 中做到这一点?
我的 NTFS 分区以某种方式损坏了(这是我安装 Windows 时的遗物)。
我把 fdisk 和 blkid 的调试输出放在这里。
同时,任何操作系统都无法挂载我的根分区,它位于我的 NTFS 分区旁边。不过,我不确定这是否与此有关。尝试挂载我的根分区 (sda5) 时出现以下错误
mount: wrong fs type, bad option, bad superblock on /dev/sda5,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
ubuntu@ubuntu:~$ dmesg | tail
[ 1019.726530] Descriptor sense data with sense descriptors (in hex):
[ 1019.726533] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 …
Run Code Online (Sandbox Code Playgroud) 我的计算机启动到黑屏并显示此错误消息。
Welcome to emergency mode! After logging in,type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.
Run Code Online (Sandbox Code Playgroud)
journalctl -xb
片段(我认为是错误的):
-- Unit systemd-fsckd.service has begun starting up.
juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1 contains a file system with errors, check forced.
juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1: Inodes that were part of a corrupted orphan linked list found.
juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1: UNEXPECTED INCONSISTENCY; RUN …
Run Code Online (Sandbox Code Playgroud) 远程工作时,我将服务器设置为在引导时使用sudo touch /forcefsck
命令强制执行 fsck并重新启动。
重新启动后,我检查/var/log/fsck
了磁盘检查的结果。
无论checkfs和checkroot说:什么也没有尚未登陆
那么它在哪里保存结果呢?
在我从 Natty 升级到 Oneiric 的几台机器上,我每次启动都会出错(每个 NTFS 分区一个):
Serious errors were found while checking the disk drive for /windows/c.
Press I to ignore, S to skip mounting, or M for manual recovery
Run Code Online (Sandbox Code Playgroud)
按照此答案中的建议,我fsck
从手动恢复 shell 运行。我得到了这个输出:
fsck from util-linux 2.19.1
fsck: fsck.ntfs: not found
fsck: Error 2 while executing fsck.ntfs for /dev/sda1
Run Code Online (Sandbox Code Playgroud)
我找不到 fsck.ntfs,command-not-found
也没有帮助。我怎样才能让这个错误消失?
顺便说一句,我试过多次启动到 Windows (XP),认为 Windows 会修复文件系统。但显然 Windows 认为文件系统很好。奇怪的是所有NTFS 文件系统都受到影响。
此外,我可以通过进入恢复 shell 并发出 来解决这个问题mount -a
,但为了我的同事,我需要无人值守启动。
我将硬盘重新格式化为 ext4,打算将其用作备份驱动器。安装新格式化的驱动器后,我发现其中有一个空目录:lost+found。这个神秘目录的目的是什么?
启动到 Ubuntu 后,这会出现
/dev/sda1 contains a file system with errors, check forced.
Inodes that were part of a corrupted orphan linked list found.
/dev/sda1: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda1 requires a manual fsck
BusyBox v1.22.1 (Ubuntu 1:1.22.0-19ubuntuu2) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)_
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
有没有办法确定是否为下次启动安排了文件系统检查?
也许它类似于强制检查,由文件的存在触发/forcefsck
?
我尝试使用 Ubuntu 修复我的硬盘,但遇到错误消息并且不知道如何继续。我需要修复坏道
fsck /dev/sdb
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
fsck.ext2: Permission denied while trying to open /dev/sdb
You must have r/w access to the filesystem or be root
Run Code Online (Sandbox Code Playgroud) fsck ×10
boot ×4
filesystem ×2
hard-drive ×2
ntfs ×2
fat32 ×1
logging ×1
partitioning ×1
permissions ×1