From owner-freebsd-questions@FreeBSD.ORG Tue Nov 7 23:25:29 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00F9616A403 for ; Tue, 7 Nov 2006 23:25:29 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CADBA43D6B for ; Tue, 7 Nov 2006 23:24:49 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kA7NOnVc016392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 7 Nov 2006 15:24:49 -0800 X-Auth-Received: from [128.208.7.174] (pinocchio.dyn.cs.washington.edu [128.208.7.174]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kA7NOmv7026840 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 7 Nov 2006 15:24:49 -0800 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <4550FF54.80908@tco2.thecompanyonline.com> References: <003a01c6ee0a$841e74f0$6908a8c0@pcmoperations> <20061012182206.GA81008@Grumpy.DynDNS.org> <452FE303.90002@tco2.thecompanyonline.com> <452FEAD6.7030800@tomjudge.com> <4550FF54.80908@tco2.thecompanyonline.com> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <419940A7-A573-464E-9643-9F5E8FE7D1CA@u.washington.edu> Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Tue, 7 Nov 2006 15:24:48 -0800 To: FreeBSD Questions X-Mailer: Apple Mail (2.752.2) X-PMX-Version: 5.2.1.279297, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.11.7.151432 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_MEDIA_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Hard Drive Issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2006 23:25:29 -0000 On Nov 7, 2006, at 1:49 PM, Richard McIntyre wrote: > Tom Judge wrote: > >> Richard McIntyre wrote: >> >>> I'm having a similar problem, >>> Oct 13 03:01:31 tco1 kernel: ad2: FAILURE - READ_DMA >>> status=51 error=40 LBA=181778119 >>> Oct 13 07:11:15 tco1 kernel: ad2: FAILURE - READ_DMA >>> status=51 error=40 LBA=181778119 >>> >>> I'm assuming that particular sector on the drive is dying, I have >>> backed everything up on the drive, can anyone give me more >>> information, should the drive simply be replaced or is it >>> possible that this is simply a TOC error and could be corrected >>> by newfs to the drive? >>> >>> I'm guessing it will need to be replaced, output of smartctl is >>> below.... >>> >>> Thanks >>> ~Richard >>> >>> Error 7742 occurred at disk power-on lifetime: 16036 hours (668 >>> days + 4 hours) >>> When the command that caused the error occurred, the device was >>> active or idle. >>> >>> After command completion occurred, registers were: >>> ER ST SC SN CL CH DH >>> -- -- -- -- -- -- -- >>> 40 51 04 c7 b6 d5 ea Error: UNC 4 sectors at LBA = 0x0ad5b6c7 = >>> 181778119 >>> >> >> >> Looks like you disk is on its way out, from the look of the above >> errors, I would try dd'ing the disk onto a new disk the running >> an fsck to make sure everything is ok. I wouldnt hold out much >> hope for recovering the data on that sector though. >> >> Tom J >> > > All, > > I've put a new disk into the system, The current disk is 200 GB, > the new disk is 250 GB. > If I run the command: > dd if=/dev/ad2 of=/dev/ad3 conv=noerror > > Will this copy the (changing the appropriate device names of > course) the disk as a whole? Will I lose the 50 GB difference? > Is there another way? (like the dump, tar, or just plain copy > command?) > > The drive is two partitions, one 100GB and the remainder on the > other partition. The files contained are backups of my virtual > hosted sites and the apache directories (including the apache/bin > files). > > Any suggestions? I've read a good deal of forums online but they > seem to be contradicting. 1/2 say I will loose the remainder of the > drive space, 1/2 say that dd is not the best way to go. (there is > roughly 35 GB of data actually on the device). > > > FreeBSD tco1.thecompanyonline.com 5.3-RELEASE FreeBSD 5.3-RELEASE > #0: Mon May 2 22:32:50 EDT 2005 rem@tco1.thecompanyonline.com:/ > usr/src/sys/i386/compile/TCO1.2005.05.02.001 i386 > > Thank you for the help! Too bad you can't just mount the disk image and grab files on demand :(... You should be able to expand the disk though if I remember correctly using the tunefs command... don't have my terminal right in front of me though to confirm whether or not this is the case though.. -Garrett