Pages

Saturday, March 22, 2014

Btrfs: Find file names with checksum errors

$ dmesg | grep -Po 'csum failed ino\S* \d+' | awk '{print $4}' | sort -u | xargs -n 1 find / -inum 2> /dev/null

Btrfs reports the inode numbers of files with failed checksums. Use `find` to lookup the file names of those inodes. The files may need to be deleted and replaced with backups.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/NCsyNF

No comments:

Post a Comment