Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] e2fsck -c when bad blocks are in existing file?
Date: Tue, 08 Nov 2022 03:31:22
Message-Id: tkcihr$vdc$
1 I've got an SSD that's failing, and I'd like to know what files
2 contain bad blocks so that I don't attempt to copy them to the
3 replacement disk.
5 According to e2fsck(8):
7 -c This option causes e2fsck to use badblocks(8) program to do a
8 read-only scan of the device in order to find any bad blocks. If
9 any bad blocks are found, they are added to the bad block inode
10 to prevent them from being allocated to a file or directory. If
11 this option is specified twice, then the bad block scan will be
12 done using a non-destructive read-write test.
14 What happens when the bad block is _already_allocated_ to a file?
16 --
17 Grant


Subject Author
Re: [gentoo-user] e2fsck -c when bad blocks are in existing file? Michael <confabulate@××××××××.com>