From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 20 18:06:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3BB416A4CE for ; Tue, 20 Jul 2004 18:06:48 +0000 (GMT) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.223.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82C9B43D31 for ; Tue, 20 Jul 2004 18:06:48 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: (qmail 64924 invoked by uid 2003); 20 Jul 2004 18:05:29 -0000 Received: from spork@fasttrackmonkey.com by angryfist.fasttrackmonkey.com by uid 1001 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(216.220.116.154):. Processed in 0.044222 secs); 20 Jul 2004 18:05:29 -0000 Received: from unknown (HELO toad.nat.fasttrackmonkey.com) (216.220.116.154) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 20 Jul 2004 18:05:28 -0000 Date: Tue, 20 Jul 2004 14:05:25 -0400 (EDT) From: Charles Sprickman X-X-Sender: spork@toad.nat.fasttrackmonkey.com To: Eitarou Kamo In-Reply-To: <40FD011B.1020504@trio.plala.or.jp> Message-ID: <20040720140124.E28049@toad.nat.fasttrackmonkey.com> References: <20040719191408.V28049@toad.nat.fasttrackmonkey.com> <40FD011B.1020504@trio.plala.or.jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: disk recovery help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 18:06:49 -0000 On Tue, 20 Jul 2004, Eitarou Kamo wrote: > >Here's what fsck says: > > > >root@skunkworks[/mnt/tmp/vpopmail/domains]# fsck /dev/vn0c ** /dev/vn0c > >BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST > >ALTERNATE > >ioctl (GCINFO): Invalid argument > >fsck: /dev/vn0c: can't read disk label > > > You'd like to do like? : > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html Yes, that allows me to mount the filesystem (but it is still "dirty", which leads to the occasional panic). Looking at that first message, fsck is telling me that it sees the superblock and a superblock backup and that they do not agree. I know when you newfs a filesystem there seem to be a ton of superblock backups. How do I find out where they are and compare them? Meaning, if the main one and first backup disagree, but three others all agree can I assume they are probably right? > If you'd like to restore dd.img to /dev/da1s1h normally you should > use dd command directly. dd.img is not a data but just a image. > So you need not create any file system. That's what I thought, and that's what I originally tried to do, but after fdisk'ing and labeling the spare drive to match the original label, dd was refusing to write to the /dev/ad3s1h device, claiming it was "read only" (I was root). Thanks, Charles > FYI: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks.html > > Eitarou > > -- > > > *********************** > Eitarou Kamo > > Tel. +81 75 7035997 > Fax +81 75 7035997 > VoIP 050 10585997(domestic only) > e-mail e-kamo@trio.plala.or.jp > > For business: > Feel free to mail me(above), please. > > Donation http://www.PayPal.Com > > GPG FingerPrint: > 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 > ************************************************************************ > > > > > >