From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 01:53:18 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 802CC16A4CE for ; Fri, 21 Nov 2003 01:53:18 -0800 (PST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3841643FE5 for ; Fri, 21 Nov 2003 01:53:17 -0800 (PST) (envelope-from shritis@gmx.de) Received: (qmail 10293 invoked by uid 65534); 21 Nov 2003 09:53:15 -0000 Received: from p50872F83.dip.t-dialin.net (EHLO gmx.de) (80.135.47.131) by mail.gmx.net (mp014) with SMTP; 21 Nov 2003 10:53:15 +0100 X-Authenticated: #2437499 Message-ID: <3FBDE082.9020002@gmx.de> Date: Fri, 21 Nov 2003 10:53:06 +0100 From: Robert Neumann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Fri, 21 Nov 2003 09:53:18 -0000 Hello there, 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. While booting the kernel the following error came up: ... /dev/ad6: BAD SUPER BLOCK: MAGIC NUMBER WRONG /dev/ad6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY ... THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY /dev/ad6 (/storage) automatic file system check failed . . help! Enter full path name of shell or RETURN for /bin/sh: I hit Return and type fsck which give this output: ... ** /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 Now I tried another way I found on the net: dd if=/dev/ad6 skip=32 of=/dev/ad6 seek=16 bs=512 count=16 which gives this output: 16+0 records in 16+0 records out 8192 bytes transferred in 0.024632 secs (332576 bytes/sec) when I want to leave the shell there are still errors until I remove the added line in /etc/fstab. 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; ... 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 I don't know what is wrong but I don't want to lose the data. Any hint is appreciated. Thanks a lot, Robert