On Fri, 21 Sep 2018 12:12:26 +1000 Cameron Simpson <cs@xxxxxxxxxx> wrote: > On 20Sep2018 19:06, Ranjan Maitra <maitra@xxxxxxxxx> wrote: > >I am sorry to return to this, but I am still struggling to find out the answer > >to how to find files that had bad blocks in my old drive. > > > >To recap, in order to rescue a failing disk with an xfs filesystem, I used ddrescue to copy the contents to an identically sized, but healthy disk. > >The mapfile from ddrescue clearly indicated several bad sectors. > > > >ddrescue on the new disk found no problems, but I know there are affected files (the source disk was over 95% full), and I would like to know what those files are called. > > See "man xfs_db". It looks like the "blockget -v -b block-number" command may > provide useful info. Thanks very much for this information: it is very helpful. I do know the bytes and can figure out the sectors that are damaged. But I can't figure out how that translates to the block number of an xfs filesystem. Is there any reference for how to do this? Best wishes, Ranjan _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx