guf*_*guf 2 boot fsck initramfs busybox
屏幕文字如下:
Error reading block 23108274 (input/output error).
/dev/sda5: UNEXPECTED INCONSISTENCY; run fsck MANUALLY
Run Code Online (Sandbox Code Playgroud)
和:
fsck excited with status code 4
done
Failure: file system check of the root filesystem failed
The root filesystem on /dev/sda5 requires a manual fsck
Run Code Online (Sandbox Code Playgroud)
在浏览 Ask Ubuntu 时,我发现了类似的问题,但之前的解决方案都不起作用。
我尝试退出命令后,结果如下:
但是,我重试了退出命令,然后使用了“重新启动”,这让我陷入了以下屏幕:
据我所知,每次重新启动都会加剧问题,因此我对强制关闭感到犹豫。
我别无选择,只能拔掉插头。重新启动时,我在左下角看到了“输入设置 f2”消息,我做到了。在设置过程中,我按了一些键进行导航。系统响应速度如此之慢,以至于我怀疑它是否真的这样做了,而是随机地在不同的选项卡之间切换。我设法退出设置,现在发现自己盯着这个:
我花了一些时间,但现在我有了一个 Ubuntu Live USB。
首先我们用 修复磁盘fsck
。然后我们修复 NCQ 错误。然后我们对磁盘进行坏块。
FSCK
\n在 initramfs 提示符下,键入:
\nfsck /dev/sda5\n
Run Code Online (Sandbox Code Playgroud)\nNCQ
\n您有 NCQ 磁盘错误。
\n本机命令队列 (NCQ) 是串行 ATA 协议的扩展,允许硬盘驱动器内部优化接收到的读取和写入命令的执行顺序。
\n编辑sudo -H gedit /etc/default/grub
并更改以下行以包含此额外参数。然后将sudo update-grub
更改写入磁盘。重启。监视器挂起,并观察/var/log/syslog
或dmesg
是否有持续的错误消息。
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"\n
Run Code Online (Sandbox Code Playgroud)\n坏块
\n以 \xe2\x80\x9c 引导至 Ubuntu Live DVD/USB 尝试 Ubuntu\xe2\x80\x9d 模式。
\n在terminal
...
sudo fdisk -l # identify all "Linux Filesystem" partitions\n
Run Code Online (Sandbox Code Playgroud)\nsudo e2fsck -fcky /dev/sdXX # 只读测试
或者
sudo e2fsck -fccky /dev/sda5 # non-destructive read/write test (recommended)\n
Run Code Online (Sandbox Code Playgroud)\n这-k
很重要,因为它保存以前的坏块表,并将任何新的坏块添加到该表中。如果没有-k
,您将丢失所有先前的坏块信息。
办法-fccky
:
-f Force checking even if the file system seems clean.\n\n -c This option causes e2fsck to use badblocks(8) program to do\n a read-only scan of the device in order to find any bad blocks.\n If any bad blocks are found, they are added to the bad block\n inode to prevent them from being allocated to a file or direc\xe2\x80\x90\n tory. If this option is specified twice, then the bad block scan\n will be done using a non-destructive read-write test.\n\n -k When combined with the -c option, any existing bad blocks in the\n bad blocks list are preserved, and any new bad blocks found by\n running badblocks(8) will be added to the existing bad blocks\n list.\n\n -y Assume an answer of `yes' to all questions; allows e2fsck to be\n used non-interactively. This option may not be specified at the\n same time as the -n or -p options.\n
Run Code Online (Sandbox Code Playgroud)\n更新#1:
\n当您在 BIOS 中时,您不小心更改了引导顺序,现在您收到 PXE 引导错误。返回 BIOS 并将启动顺序更改回:DVD/USB/Disk/PXE
\n 归档时间: |
|
查看次数: |
33560 次 |
最近记录: |