From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 162E913877A for ; Sat, 26 Jul 2014 03:39:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07A85E0D38; Sat, 26 Jul 2014 03:39:22 +0000 (UTC) Received: from mail-yh0-f43.google.com (mail-yh0-f43.google.com [209.85.213.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8FE18E0C64 for ; Sat, 26 Jul 2014 03:39:20 +0000 (UTC) Received: by mail-yh0-f43.google.com with SMTP id 29so3538792yhl.2 for ; Fri, 25 Jul 2014 20:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Kpdw0bGHQvVs7GYc6Lv3e646xEXToNLImKK98m+1mg8=; b=vCtqpfP4/LNkWXKwhdZFelSQTC/QRd/tqVlozxIahSAs1Mo67kIBOAEp98QnAmW4Q4 z2XqVxYmHUjdgPkNl9iwkcWJVk5Ny8TRc+44iziMrk2+mDvJ/aX/f6Qxjaw9/+aWDC5r 2W/wh0QTeOJznELhJMrRIppz6TpISzwFsM+dzDQyGBdCIyQNWHFjyLz8m8JlVmlEpNFW kLqKGy239wwGKSwKoeDco5opmwYvbFFmQpEiaad6o/aRPGkqdLB1Xz4y8jGc5FACyZPS zFC+2jlenpiIIke9v5PptH+oi8NDGAVtaZqzFGUPhY7svkVUyHSi6DElu2ComZc6A1Vb 0SXQ== X-Received: by 10.236.124.132 with SMTP id x4mr29220932yhh.119.1406345959509; Fri, 25 Jul 2014 20:39:19 -0700 (PDT) Received: from [192.168.2.5] (adsl-65-0-122-210.jan.bellsouth.net. [65.0.122.210]) by mx.google.com with ESMTPSA id o50sm24028922yhm.0.2014.07.25.20.39.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jul 2014 20:39:18 -0700 (PDT) Message-ID: <53D322E5.5030601@gmail.com> Date: Fri, 25 Jul 2014 22:39:17 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Badblocks on my harddisk References: <20140726014915.GA3845@solfire> In-Reply-To: <20140726014915.GA3845@solfire> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 55113b46-9b53-490c-bf6d-0ae4c3cd2938 X-Archives-Hash: d512df447af2690a9d563c183fc841fa meino.cramer@gmx.de wrote: > Hi, > > After running smartctl for an extended offline test I got > a badblock (information extracted from the report): > > SMART Self-test log structure revision number 1 > Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error > # 1 Extended offline Completed: read failure 90% 14460 4288352511 > 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 1 > > I found a explanation to map the LBA to a partition here: > http://smartmontools.sourceforge.net/badblockhowto.html > > My partition layout is: > #> sudo fdisk -lu /dev/sda > > Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disklabel type: dos > Disk identifier: 0x07ec16a2 > > Device Boot Start End Blocks Id System > /dev/sda1 * 2048 104447 51200 83 Linux > /dev/sda2 104448 12687359 6291456 82 Linux swap / Solaris > /dev/sda3 12687360 222402559 104857600 83 Linux > /dev/sda4 222402560 1953525167 865561304 5 Extended > /dev/sda5 222404608 232890367 5242880 83 Linux > /dev/sda6 232892416 442607615 104857600 83 Linux > /dev/sda7 442609664 652324863 104857600 83 Linux > /dev/sda8 652326912 862042111 104857600 83 Linux > /dev/sda9 862044160 1071759359 104857600 83 Linux > /dev/sda10 1071761408 1281476607 104857600 83 Linux > /dev/sda11 1281478656 1491193855 104857600 83 Linux > /dev/sda12 1491195904 1953525167 231164632 83 Linux > 4288352511 <<< The number reported by smartctl > > > Following the linked document... > It seems the bad LBA is not on the checked harddisk. > > Or (more obvious) I did something wrong... > > How can I correctly identify the partition, which contains the bad > block? > How can I get a full list of all bad blocks (if any) from a mounted > file systems? > How severe is the problem? > > Thank you very much for any help in advance! > Best regards, > mcc > I ran into this recently on the drive that has my home partition on it. Someone posted that it *may* be fixable without moving data etc etc. I didn't have a backup at the time and nothing large enough to make one so I just ordered a new drive. When I got the new drive in and moved my data over, then I played with the drive a bit. I used dd to erase the drive, then stuck a file system back on it and filled it up. After doing that, the drive seems to have marked that part as bad and doesn't use it anymore. It has passed every test since then. My point is this, backups for sure just in case but you may be able to get the drive to mark that area as bad by moving that data off there. In my case, the files were corrupted and gone. Yea, I might could have sent it somewhere but I ain't into that. To much money for files I can replace if needed. I think it was like 3 or 4 video files. I'd find out what files are there, see what damage has occurred so that you can correct later, then find one really good howto and follow it. From my understanding, if you can move that data in the bad spot off there, the drive sort of fixes itself. If yours works like mine did, you should be OK but I'd use it for stuff that ain't so important. I use mine as a backup drive and test it a lot. ;-) I may trust it again, one day. So, most likely you will have some files corrupted at least. The drive *may* be fixable if you can figure out what files to move so that the drive can do its magic. Key thing is, finding out what to move so that the drive can do its work. Two options, try to move files so the drive can do its thing or move all the data to another drive, do like I did mine with dd and give it a fresh start that way. I didn't feel I had the experience to try and move the files so I took the 2nd option. Now I wish I had done option #1 and took notes that I could pass on. That would likely help you more. BTW, my drive gave that error for weeks and never got worse. I could be lucky on that one so do what needs doing as soon as you can, just in case. The last drive that really failed on me years ago, I got a serious warning from SMART. It even said I had like 24 hours to get my data off. It needs attention in your case but hopefully you will have the results I did in the end and you have time to deal with it. Dale :-) :-)