From owner-freebsd-stable Tue Jun 12 6:48:39 2001 Delivered-To: freebsd-stable@freebsd.org Received: from sirius.pbegames.com (sirius.pbegames.com [206.139.252.17]) by hub.freebsd.org (Postfix) with ESMTP id 8096437B401 for ; Tue, 12 Jun 2001 06:48:28 -0700 (PDT) (envelope-from thomas@pbegames.com) Received: from leviathan.pbegames.com (66-44-12-171.s679.apx2.lnh.md.dialup.rcn.com [66.44.12.171]) by sirius.pbegames.com (8.9.3/8.9.3) with ESMTP id JAA34778 for ; Tue, 12 Jun 2001 09:48:25 -0400 (EDT) (envelope-from thomas@pbegames.com) Message-Id: <5.1.0.14.2.20010612091659.0227f920@pbegames.com> X-Sender: thomas@pbegames.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 12 Jun 2001 09:47:21 -0400 To: freebsd-stable@freebsd.org From: Mark Thomas Subject: Drive disaster recovery Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, I think I've managed to do something incredibly stupid here. This AM I moved an Adaptec 2940U adapter over to my 4.2S FBSD development machine with the intent of using a SCSI Jaz for backups. I also moved over a SCSI drive which is configured as a bootable 3.2S FBSD drive. The original system had a single 10GB IDE drive running a close to default partitions (/ /var swap /usr). The first time I rebooted with the new hardware I accidentally booted off of the old SCSI drive. I hit reset (ick), turned off the BIOS on the SCSI controller and rebooted from the IDE. This time the machine booted off of the correct drive, but reported problems with ad0s1f (/usr). I'm fairly sure the old 3.2S SCSI drive was installed dangerously dedicated. I MAY have answered Y to a fsck prompt here concerning /dev/ad0s1f. :( I would REALLY like to recover data from this partition (Note to self: backup before adding hardware, especially when adding backup hardware). I've now pulled the SCSI drives off temporarily. I can boot into single user mode. Below is as much relevent information as I can come up with (typing by hand, so somewhat truncated). If anyone has any method for recovering this data, I would greatly appreciate the help! Any further information I can provide, just ask. dmesg: FreeBSD 4.2-STABLE #0: Mon Feb 12... CPU: Pentium II/Pentium II Xeon/Celeron (400 ...) ... ahc0: ... ad0: 9641MB [19590/16/63] at ata0-master UDMA33 acd0: CDROM at ata1-master using PIO4 Waiting 15 seconds for SCSI... Mounting root from ufs:/dev/ad0s1a ad0: raw partition size != slice size ad0: start 63, end 8385929, size 8385867 ad0c: start 63, end 19746719, size 19746657 ad0: truncating raw partition ad0: rejecting partition in BSD label: it isn't entirely within the slice ad0: start 63, end 8385929, size 8385867 adf0: start 1458239, end 19746719, size 18288481 fixlabel: raw partition size > slice size fsck -n: ** /dev/ad0s1f (NO WRITE) CANNOT READ: BLK 16 CONTINUE? yes THE FOLLOWING DISK SECTORS COULD NOT BE READ: 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 /dev/ad0s1f: NOT LABELED AS A BSD FILE SYSTEM (unused) (All other partitions OK) disklabel -r /dev/rad0c: type: ESDI disk: ad0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 19589 sectors/unit: 19746657 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 204800 63 4.2BSD 1024 8192 16 # (cyl. 0*-203*) b: 1048576 204863 swap # (cyl. 203*-1243*) c: 19746657 63 unused 0 # (cyl. 0*-19589*) e: 204800 1253439 4.2BSD 1024 8192 16 # (cyl. 1243*-1446*) f: 18288481 1458239 4.2BSD 1024 8192 16 # (cyl. 1446*-19589*) partition c: partition extends past end of unit partition f: partition extends past end of unit Mark --- thomas@pbegames.com -------------> http://www.pbegames.com/~thomas Play by Electron Games ----------> http://www.pbegames.com [TM4463-ORG] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message