From owner-freebsd-questions Thu Sep 4 19:15:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA09440 for questions-outgoing; Thu, 4 Sep 1997 19:15:40 -0700 (PDT) Received: from pompano.pcola.gulf.net (root@pompano.pcola.gulf.net [198.69.72.14]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA09435 for ; Thu, 4 Sep 1997 19:15:34 -0700 (PDT) Received: from localhost (spatula@localhost.gulf.net [127.0.0.1]) by pompano.pcola.gulf.net (8.8.6/8.7.3) with SMTP id VAA26486 for ; Thu, 4 Sep 1997 21:15:31 -0500 (CDT) Date: Thu, 4 Sep 1997 21:15:31 -0500 (CDT) From: Nick Johnson X-Sender: spatula@pompano.pcola.gulf.net To: freebsd-questions@freebsd.org Subject: Crash recovery Message-ID: X-This-sucks: Change it! X-Prisoner: I am not a number! I am a free man! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I had a disk crash, but only lost 200 or so sectors. I am limping this drive along until my replacement disk comes. The new disk is of the same type and configuration. The drive in question has an evil operating system on the first partition and FreeBSD on the second. Here is my plan: dd if=/dev/wd0 of=/dev/wd1 bs=128k bad144 -s /dev/wd1s2 Then reboot, cvsup, and make world on the new drive to replace anything that was lost. The problems I forsee: 1) dd may not copy over the partition information (not a big deal, as I can always partition the new drive exactly like the old one) 2) bad144... does anyone know if it will replace the old bad sector table? dd will most likely copy over the bad sector table, which will be invalid for the new disk. If anyone can shed some light on these issues, please drop me a note. Nick -- "A child can go only so far in life without potty training. It is not mere coincidence that six of the last seven presidents were potty trained, not to mention nearly half of the nation's state legislators." -- Dave Barry Nick Johnson, version 1.0 http://www.pcola.gulf.net/~spatula/