From owner-freebsd-hackers Mon Mar 30 15:22:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA20122 for freebsd-hackers-outgoing; Mon, 30 Mar 1998 15:22:29 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from seagull.rtd.com (tony@seagull.rtd.com [198.102.68.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA20092 for ; Mon, 30 Mar 1998 15:22:20 -0800 (PST) (envelope-from tony@rtd.com) Received: (from tony@localhost) by seagull.rtd.com (8.8.5/8.8.5) id QAA04585 for hackers@freebsd.org; Mon, 30 Mar 1998 16:22:15 -0700 (MST) Date: Mon, 30 Mar 1998 16:22:15 -0700 (MST) From: Tony Jones Message-Id: <199803302322.QAA04585@seagull.rtd.com> To: hackers@FreeBSD.ORG Subject: help! scsi disk recovery question Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I managed to (ahem) drop my system (just an inch - don't ask) while booting and it hung. Rebooted and I started to get MEDIUM scsi errors reported by the NCR controller on scsi id 3 (a 1GB Seagate Hawk ST31051N) Couldn't do anything to the disk, no dd of the device, no fsck with backup superblock, no newfs -N etc without getting the MEDIUM errors, a message about being unable to read the primary partition table and finally an I/O error. I also (ahem) don't have a recent backup of the data. I took the disk into work, hooked it upto a Sparc and tried to see what backup said about the drive. It complained it wasn't formatted and wouldn't do much else. Grown flaw table was empty. So, I hooked it to another PC with a 2940 and ran the scsi bios surface scan. It spared out the first block and passed the rest. Hooked it back upto the Sparc and it now saw a formatted but bogusly labelled disk. Took a look at the grown flaw table and there is now one flaw at cyl 0 head 0 bfi 0 The Sparc read-only surface scan passed OK too. At this point I was amazed. The disk is I believe "dangerously dedicated"? When I added it I just zeroed the first few blocks of the disk with 'dd' and did a 'disklabel -rw sd3 auto' (did it this way because I couldn't get FDISK to behave sensibly). The disklabel has partitions=8 with just c and h partitions defined (h=c=whole disk). So, I have two questions: 1) Can I recover the FS ? If so, what are the steps. 2) Could I have used FreeBSD tools to do what the Sparc and 2940 utilties did for me ? If so, which ones ? Yes I did RTFM, but nothing jumped out at me. Please CC me on a reply, as I only get the DIGEST. Thanks Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message