public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] e2fsck -c when bad blocks are in existing file?
@ 2022-11-08  3:31 Grant Edwards
  2022-11-08 13:20 ` Michael
  0 siblings, 1 reply; 18+ messages in thread
From: Grant Edwards @ 2022-11-08  3:31 UTC (permalink / raw
  To: gentoo-user

I've got an SSD that's failing, and I'd like to know what files
contain bad blocks so that I don't attempt to copy them to the
replacement disk.

According to e2fsck(8):

       -c     This option causes e2fsck to use badblocks(8)  program  to  do  a
              read-only scan of the device in order to find any bad blocks.  If
              any bad blocks are found, they are added to the bad  block  inode
              to  prevent them from being allocated to a file or directory.  If
              this option is specified twice, then the bad block scan  will  be
              done using a non-destructive read-write test.

What happens when the bad block is _already_allocated_ to a file?

--
Grant




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-11-14 16:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-08  3:31 [gentoo-user] e2fsck -c when bad blocks are in existing file? Grant Edwards
2022-11-08 13:20 ` Michael
2022-11-08 14:28   ` [gentoo-user] " Grant Edwards
2022-11-08 17:55     ` Laurence Perkins
2022-11-08 18:49       ` Michael
2022-11-08 21:52       ` John Covici
2022-11-09 23:31       ` Grant Edwards
2022-11-09 23:54         ` Wol
2022-11-10  0:18           ` Grant Edwards
2022-11-10  0:37             ` Laurence Perkins
2022-11-08 18:24   ` [gentoo-user] " Wols Lists
2022-11-09  8:46     ` Michael
2022-11-09 16:53       ` Laurence Perkins
2022-11-12 13:38         ` Michael
2022-11-12 16:44           ` [gentoo-user] " Grant Edwards
2022-11-12 19:34             ` Michael
2022-11-13  3:54               ` Grant Edwards
2022-11-14 16:37                 ` Laurence Perkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox