Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2001 09:47:21 -0400
From:      Mark Thomas <thomas@pbegames.com>
To:        freebsd-stable@freebsd.org
Subject:   Drive disaster recovery
Message-ID:  <5.1.0.14.2.20010612091659.0227f920@pbegames.com>

next in thread | raw e-mail | index | archive | help
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: <Adaptec 2940A Ultra SCSI adapter> ...
ad0: 9641MB <Maxtor 51024U2> [19590/16/63] at ata0-master UDMA33
acd0: CDROM <ATAPI 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20010612091659.0227f920>