From owner-freebsd-questions@FreeBSD.ORG Thu Feb 22 23:22:55 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35FEF16A403 for ; Thu, 22 Feb 2007 23:22:55 +0000 (UTC) (envelope-from martster@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.233]) by mx1.freebsd.org (Postfix) with ESMTP id E315B13C48E for ; Thu, 22 Feb 2007 23:22:54 +0000 (UTC) (envelope-from martster@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so319429nzh for ; Thu, 22 Feb 2007 15:22:54 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=PrOYz4x/NiCBvmxMk8djNUROb6ZS3AbhrZ2YmcUpMrLbhP4/kkALhbIQ4jybUX1tzNQ2MtemRS55kx1J6Ps1MQDL1Au7XMAjUKYXndexOcnIosod3vv9RUsPqjW6X7QffCehFY/eStksqsXxZu1QzJjoO6QGF/j8DNXQf85E6nY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=S9qFLWC6HGIMyfg0lIrymm3xOk7yrzBgxKmy9HsVE/ptFgh3U5CXxJvLWTG01rMhMULkLgFrQPOh8Vnm2a7mV8upuv2+DPBJYA/j/yF6OXl29dyz8jx5ZOH2tpbVKBR4D4VpvQEsrVpNWyURPPJ7DwOYSM2cd59jTMaCVSwQcLQ= Received: by 10.64.210.3 with SMTP id i3mr2174758qbg.1172186574009; Thu, 22 Feb 2007 15:22:54 -0800 (PST) Received: by 10.65.139.13 with HTTP; Thu, 22 Feb 2007 15:22:53 -0800 (PST) Message-ID: <70063950702221522j5d52e79axe7a45cc7f28a3e0a@mail.gmail.com> Date: Thu, 22 Feb 2007 18:22:53 -0500 From: "Marty Landman" To: freebsd-questions@freebsd.org In-Reply-To: <70063950702221522i63b7e99fndc67c39678ac7fa6@mail.gmail.com> MIME-Version: 1.0 References: <70063950702221419s57a34f05p1bdee62713a67aae@mail.gmail.com> <6.0.0.22.2.20070222163157.0249d9f8@mail.computinginnovations.com> <70063950702221508v52abf24avf654482489cf2654@mail.gmail.com> <6.0.0.22.2.20070222171636.024f2ce0@mail.computinginnovations.com> <70063950702221522i63b7e99fndc67c39678ac7fa6@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Fwd: input/output error on hd 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: Thu, 22 Feb 2007 23:22:55 -0000 Noooo, this is a 250 GB drive with tons of data (mostly bigger files) on it. On 2/22/07, Derek Ragona < derek@computinginnovations.com> wrote: > > Slice names are version dependent. In major releases the names have > changed a bit. > > There are a few recovery tools in the ports. You can try those and see if > they find any usable data. Since it is only 24MB hopefully any data loss is > minimal. > > -Derek > > > At 05:08 PM 2/22/2007, Marty Landman wrote: > > Thanks Derek, > > I tried deleting and recreating the one slice on that drive in sysinstall, > also rewriting the boot label. Didn't seem to help as shown: > > %sudo fdisk ad1cs1 > ******* Working on device /dev/ad1cs1 ******* > parameters extracted from in-core disklabel are: > cylinders=486332 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=486332 heads=16 sectors/track=63 (1008 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 0, size 50000 (24 Meg), flag 80 (active) > beg: cyl 0/ head 0/ sector 1; > end: cyl 1023/ head 254/ sector 63 > %sudo fsck /dev/ad1cs1 > fsck: Could not determine filesystem type > %sudo fsck /dev/ad1c > fsck: exec fsck_unused for /dev/ad1c in /sbin:/usr/sbin: No such file or > directory > %sudo mount /dev/ad1cs1 /hoss > mount: /dev/ad1cs1: Input/output error > %sudo mount /dev/ad1c /hoss > mount: /dev/ad1c on /hoss: incorrect super block > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=131 > dd: /dev/ad1s1: Input/output error > 0+0 records in > 0+0 records out > 0 bytes transferred in 1.199710 secs (0 bytes/sec) > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=127 > 1+0 records in > 1+0 records out > 512 bytes transferred in 0.018295 secs (27986 bytes/sec) > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=144 > 1+0 records in > 1+0 records out > 512 bytes transferred in 0.024593 secs (20819 bytes/sec) > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=143 > dd: /dev/ad1s1: Input/output error > 0+0 records in > 0+0 records out > 0 bytes transferred in 1.319451 secs (0 bytes/sec) > % > > Wonder why it renamed my slice from ad1s1c to ad1cs1, and what I can do > from here. > > Marty > > On 2/22/07, *Derek Ragona* wrote: > > You may have lost the partition table. You can try repartitioning the > drive but do NOT do a newfs. You can easily try it in sysinstall. > > -Derek > > > At 04:19 PM 2/22/2007, Marty Landman wrote: > > I wrote about this problem before, still working on recovery. After a > power > outage I lost my primary slave hd, a 250MB Maxtor. Got rebooted ok by > editing it out of the fstab i.e. > > %cat /etc/fstab > # Device Mountpoint FStype Options Dump > Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > ... > #/dev/ad1s1c /hoss ufs rw 2 2 > % > > It's been explained to me that ad1s1c was an inappropriate name for the > partition on this drive, will change that after fixing this mess. > > Here is a problem symptom summary: > > %sudo mount /dev/ad1s1c /hoss > mount: /dev/ad1s1c: Input/output error > %sudo mount /dev/ad1s1 /hoss > mount: /dev/ad1s1: Input/output error > %sudo fsck -f /dev/ad1s1 > fsck: Could not determine filesystem type > %sudo fsck -f /dev/ad1s1c > fsck: exec fsck_unused for /dev/ad1s1c in /sbin:/usr/sbin: No such file or > directory > % > > Have determined from dd's that there's data on here, wonder though if the > power outage caused some permanent damage. Have isolated the errors to > blocks 129 through 144: > > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=127 > 1+0 records in > 1+0 records out > 512 bytes transferred in 0.008638 secs (59274 bytes/sec) > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=128 > dd: /dev/ad1s1: Input/output error > 0+0 records in > 0+0 records out > 0 bytes transferred in 1.315347 secs (0 bytes/sec) > ... [repeats for skip=129 to skip=142] > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=143 > dd: /dev/ad1s1: Input/output error > 0+0 records in > 0+0 records out > 0 bytes transferred in 1.336348 secs (0 bytes/sec) > %sudo dd if=/dev/ad1s1 of=/tmp/scratch bs=512 count=1 skip=144 > 1+0 records in > 1+0 records out > 512 bytes transferred in 0.018065 secs (28342 bytes/sec) > > So, I need to know what to do next. Have been looking for pertinant > information to learn how to pick apart whatever's keeping my drive for > being > mountable and fix manually but either don't know what to look for or > haven't > found the right explanation yet. > > For instance, is it possible if I somehow 'eliminated' blocks 129 through > 144 that the volume would then mount for me? > > Any help would be appreciated. > > > Marty > > > -- > Web Installed Formmail - http://face2interface.com/formINSTal/ > Webmaster's BBS - http://bbs.face2interface.com/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > MailScanner thanks transtec Computers for their support. > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > MailScanner thanks transtec Computers for > their support. > > > > > -- > Web Installed Formmail - http://face2interface.com/formINSTal/ > Webmaster's BBS - http://bbs.face2interface.com/ > -- > This message has been scanned for viruses and > dangerous content by MailScanner , and is > believed to be clean. > MailScanner thanks transtec Computers for > their support. > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > MailScanner thanks transtec Computers for > their support. > -- Web Installed Formmail - http://face2interface.com/formINSTal/ Webmaster's BBS - http://bbs.face2interface.com/ -- Web Installed Formmail - http://face2interface.com/formINSTal/ Webmaster's BBS - http://bbs.face2interface.com/