我的硬盘中有一些坏块,现在无法登录。我从 USB 启动并尝试修复它。
在进行分区之前,e2fsck
我首先要知道是否有坏块(这花了几个小时)。badblocks -nvs
/dev/sda3
和…
$ sudo e2fsck /dev/sda3 -fcckyv
e2fsck 1.46.3 (27-Jul-2021)
Checking for bad blocks (non-destructive read-write test)
Testing with random pattern: done
/dev/sda3: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Running additional passes to resolve blocks claimed by more than one inode...
Pass 1B: Rescanning for multiply-claimed blocks
Multiply-claimed block(s) in inode 1841930: 5236574
Pass 1C: Scanning directories for inodes with multiply-claimed blocks
Pass 1D: Reconciling multiply-claimed blocks
(There are 1 inodes containing multiply-claimed blocks.)
File /lib/i386-linux-gnu/libnvcuvid.so.470.103.01 (inode #1841930, mod time Thu Jan 6 11:58:25 2022)
has 1 multiply-claimed block(s), shared with 1 file(s):
<The bad blocks inode> (inode #1, mod time Tue Mar 1 13:30:12 2022)
Clone multiply-claimed blocks? yes
Error reading block 5236574 (Input/output error). Ignore error? yes
Force rewrite? yes
最后一行显示后,已经过去了 8 个小时,却没有任何进展。
该分区安装在/usr
,如果其中的部分数据丢失,那就没问题了(根据 dpkg 日志,我可能需要一些时间重新安装东西)。
e2fsck
那么,花费这么多时间(比实际花费的时间长得多)却没有任何进展,这正常吗badblocks
?我下一步该怎么做?我应该等待吗?
系统信息
- 我的硬盘中的 Live CD 和操作系统都是 KUbuntu 21.10
e2fsck 14.46.3
/dev/sda3
是我的硬盘的一个分区,大约32GB大(而我的硬盘总空间为1TB),它的文件系统是ext4。