*BSD News Article 51433


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!in1.uu.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Does a second SCSI disk have to be sliced?
Date: 23 Sep 1995 11:20:31 +0200
Organization: Private FreeBSD site, Dresden.
Lines: 24
Distribution: Distribution:
Message-ID: <440jgv$hss@uriah.heep.sax.de>
References: <DF4G3r.J6q@wire.xenitec.on.ca>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Vance Shipley <vances@xenitec.xenitec.on.ca> wrote:

>From what I can see what I'd like to do is skip the fdisk step and just
>disklabel the whole drive.  The manual pages suggest this is still
>supported, is it?

Even for the first drive. :-)

>I have tried any number of combinations of fdisk'ing and disklabeling
>(including having a DOS partition at the start of the drive) but I keep
>ending up with the same error eventually which is a write error complaining
>about bad magic on the partition table.

You forgot to add the -B flag in the disklabel command.  It's writing
the bootstrap, too, that finally contains the trailing 0x55aa
signature (the "magic").  Btw., this "bad magic" is a warning only for
non-bootable drives.

Something like "disklabel -B -r -w sd1 mydiskname" should do the trick.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)