Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 2003 20:54:30 +0200
From:      "Toomas Aas" <toomas.aas@raad.tartu.ee>
To:        Robert Neumann <shritis@gmx.de>
Cc:        questions@freebsd.org
Subject:   Re: HD error: BAD SUPER BLOCK 
Message-ID:  <200311231854.hANIsmCA029974@lv.raad.tartu.ee>
In-Reply-To: <3FBDE082.9020002@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello!

> Date:          Fri, 21 Nov 2003 10:53:06 +0100
> From:          Robert Neumann <shritis@gmx.de>
>
> 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.



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