From owner-freebsd-questions@FreeBSD.ORG Sun Nov 23 10:54:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5FBF16A4CE for ; Sun, 23 Nov 2003 10:54:51 -0800 (PST) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E97343F85 for ; Sun, 23 Nov 2003 10:54:50 -0800 (PST) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id hANIsmCA029974; Sun, 23 Nov 2003 20:54:49 +0200 Message-Id: <200311231854.hANIsmCA029974@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 23 Nov 03 20:54:49 +0200 Received: from SpoolDir by INFO (Mercury 1.48); 23 Nov 03 20:54:32 +0200 From: "Toomas Aas" Organization: Tartu City Government To: Robert Neumann Date: Sun, 23 Nov 2003 20:54:30 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Priority: normal In-reply-to: <3FBDE082.9020002@gmx.de> cc: questions@freebsd.org Subject: Re: HD error: BAD SUPER BLOCK X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2003 18:54:51 -0000 Hello! > Date: Fri, 21 Nov 2003 10:53:06 +0100 > From: Robert Neumann > > this is the problem: > I had a machine running FreeBSD 4.7-Stable. There I added a 80GB > harddisk. This harddrive I wanted to install on my other machine running > FreeBSD 4.9-Release. This disk is ad6 so I added > > /dev/ad6 /storage ufs rw 2 2 > > to fstab and rebooted. Did I understand the situation right - the drive worked in 4.7 machine but the problem occurred when you moved it to the 4.9 machine? The above fstab entry doesn't look quite correct to me. The filesystem that you mount should usually be contained in a partition (e.g. /dev/ad6s1e) not on entire disk (/dev/ad6). If the drive worked in the 4.7 machine, what was the fstab entry there? > While booting the kernel the following error came up: > ... > /dev/ad6: BAD SUPER BLOCK: MAGIC NUMBER WRONG > /dev/ad6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY > ** /dev/ad6 > BAD SUPER BLOCK: MAGIC NUMBER WRONG > /dev/ad6; NOT LABELED AS A BSD FILE SYSTEM (unused) > > I searched the intenet and found this way: > fsck -b 32 > > which gives this output for /dev/ad6: > ... > BAD SUPER BLOCK: MAGIC NUMBER WRONG This all seems to hint that /dev/ad6 does not contain an UFS file system. > the output of > fdisk -t ad6 > is the following: > ... > sysid 165,(FreeBSD/NetBSD/386BSD) > start 63, size 160071597 (78159 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: 1023/ head 254/ sector 63; OK, there's a FreeBSD slice on the drive. > the output of /stand/sysinstall ->Configure->Fdisk->ad6 is: > > Offset Size(ST) END Name PType Desc Subtype Flags > 0 63 62 - 6 unused 0 > 63 160071597 160071659 ad6s1 3 freebsd 165 C > 160071660 14868 160086527 - 6 unused 0 That seems to be the same slice as listed by fdisk. Note that is's called ad6s1. What is the output of 'disklabel ad6'? -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * Testicle -- n., a humorous question to an exam.