From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-166295-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1238F139737 for <garchives@archives.gentoo.org>; Sun, 16 Aug 2015 15:17:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 438891420D; Sun, 16 Aug 2015 15:17:47 +0000 (UTC) Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by pigeon.gentoo.org (Postfix) with ESMTP id 30AFAE07A5 for <gentoo-user@lists.gentoo.org>; Sun, 16 Aug 2015 15:17:46 +0000 (UTC) Received: from mikasa (d154-20-158-48.bchsia.telus.net [154.20.158.48]) by smtp.webfaction.com (Postfix) with ESMTP id 9D4E520FF08A for <gentoo-user@lists.gentoo.org>; Sun, 16 Aug 2015 15:17:45 +0000 (UTC) Date: Sun, 16 Aug 2015 08:17:46 -0700 From: Bryan Gardiner <bog@khumba.net> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Diagnosing file corruption Message-ID: <20150816151746.GA5227@mikasa> References: <20150806003442.GA29170@mikasa> <55C2BFBE.7040501@wraeth.id.au> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: <55C2BFBE.7040501@wraeth.id.au> User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: d26f5c72-17e9-4be8-a714-e48c56fade4a X-Archives-Hash: 19ad4f270565cfea3a8bdf087e502326 --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 06, 2015 at 12:00:30PM +1000, wraeth wrote: > On 06/08/15 10:34, Bryan Gardiner wrote: > > After I make a fresh backup of my files, how would you recommend=20 > > troubleshooting this? Run memtest or a hard drive tester? Since > > the files seemingly corrupted themselves after install without > > being touched, I'm highly suspicious of the hard drive, but would > > like to rule other things out (if say for example that > > CONFIG_X86_INTEL_PSTATE CPU clock booster is dangerous, or > > nvidia-drivers, or ...). Haven't checked for corruption on /home > > yet. >=20 > One key question that doesn't seem to have been asked yet: have you > performed an fsck on the partition? You could try booting to a livecd > environment and running >=20 > fsck -fc /dev/sdXY >=20 > (adjusting for your device schema accordingly) on your apparently > failing partition(s) to see if there is a filesystem corruption... Thanks very much for the suggestions, everyone. I ended up using fsck -fc and -fcc, which resulted in no bad blocks being detected. I also wanted to make sure no other files in that range of disk were corrupted, so I extracted the extents used by the bad files: cat bad-files | while read file; do echo ">>> ${file} <<<" debugfs -R "dump_extents ${file}" /dev/mikasa-vg/gentoo done >bad-extents found the files in the regions between the bad files: for block in $(seq 5302485 5302486) $(seq 5302489 5302498) $(seq 5302504 = 5302508); do inode=3D"$(debugfs -R "icheck ${block}" /dev/mikasa-vg/gentoo 2>/dev/= null | perl -ne 'if (/^\d+\s+(\d+)$/) {print $1, "\n"}')" if [[ -n $inode ]]; then echo "${block} ${inode} $(debugfs -R "ncheck ${inode}" /dev/mikas= a-vg/gentoo 2>/dev/null | awk 'NR=3D=3D2 {print $2}')" else echo "${block}" fi done and file'd those to make sure that they were okay. This is only a personal computer, so I'm going to call this a one-off issue and move on, and leave the stronger approaches for another day. Thanks again! Bryan --=20 If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is - von Neumann --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJV0KmaAAoJEFPvvKBj5hg8K/wP/06rCPa/4DmpURn09w1fXEhF vJqao2XzGrVClmviQ0cbmGym5H0ee+BOL8QX2hcewg2/vd9Gc90QHPldJW7ON4lO jG83G62ahAWyXwTZR1EefGy1Ee1WRe1JOKQi1ucChlkidRtTkiSuOg+AC7yBzxJV ZkGnrwDOslXJI29jAHzDrrylNnurqZGIUtyKv+/aMyb3Va4ZnBdmIYa4PKn7ALrl b7emBotuU9xFr82Kz+EoxG+vTXlnBocjd4phPlbF6qIRPigcB8UqKb+FQeYQfVXL nw6nLt0Sw6UebAfuHJNk1AJeFy+gxi/qIdX6UIRpDQNWoUdAj07TAS1sLccDQeJ4 +fcjjqbA0aGkVgx0XIz7aaHA7m5wpNRC4QLfG0JyeucGQsKd+Lynwz4bYRm+dAfl 0WN8EQIopkOToK2E/wtucM4j4ZbfbMvj13I8kpAp1vjRFtWlwaDhBEjGI5u0b8AO YZLvMQoSIQL03Z/XJs7mB8nwqYcoDhQ4Ai50v7WSjyPd01GKolPDO2z03eRM/syF Cg5UtIMb1vUeYK/Hnjb6ZOx0Cz4zaRPK5Tci+44ZCqqoFoEGhVw61yvBPgBtt+4u PM+9UHxqpNpGtLSO6YR0RFrmUuiN/CGPu0tWVIs2XsS2xiPwQ9Rqk7axr7YhHtcb n3NGAXZ4cE7YVvaqPnQ1 =fayo -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd--