cg0: bad magic number

2010-08-14 Thread Dick Hoogendijk
 My 1Tb sata2 drives work very well with FreeBSD. They can be sliced, 
partitioned and newfs can be run.
However, no matter what I try (sysinstall, gpart) when I slice my 500Gb 
drive and create a partition in it (1 block smaller than the slice) I 
can not newfs the /dev/ad8s1a

It always end up with a *cg0: bad magic number*

Googling I find a lot of references, but none give me the answer to my 
problem. All 500Gb drives can be formatted under Windows, linux 
(Ubuntu), Partion Magic, Solaris without errors. Alas, non of these 
systems supports formatting in UFS2. I need FreeBSD to do that but this 
fails... I'm getting quite depressed about this. Espescially because I 
cannot find the answer to this issue and I hate that! What on earth can 
it be?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cg0: bad magic number

2010-08-14 Thread Roland Smith
On Sat, Aug 14, 2010 at 11:35:11PM +0200, Dick Hoogendijk wrote:
   My 1Tb sata2 drives work very well with FreeBSD. They can be sliced, 
 partitioned and newfs can be run.
 However, no matter what I try (sysinstall, gpart) when I slice my 500Gb 
 drive and create a partition in it (1 block smaller than the slice) I 
 can not newfs the /dev/ad8s1a
 It always end up with a *cg0: bad magic number*

Can you show the output of 'gpart show ad8' and 'bsdlabel ad8s1'?

It might be that newfs is clobbering the partition table.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpPA71hRJ0OD.pgp
Description: PGP signature