Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2001 12:26:18 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Peter Wemm <peter@wemm.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern subr_diskmbr.c
Message-ID:  <XFMail.011121122618.jhb@FreeBSD.org>
In-Reply-To: <20011121201637.8A1F13811@overcee.netplex.com.au>

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

On 21-Nov-01 Peter Wemm wrote:
> John Baldwin wrote:
>> 
>> On 21-Nov-01 Peter Wemm wrote:
>> > peter       2001/11/21 00:31:45 PST
>> > 
>> >   Modified files:
>> >     sys/kern             subr_diskmbr.c 
>> >   Log:
>> >   Recognize the "fixed" geometry in boot1 so that DD disks are not
>> >   interpreted as real fdisk tables (and fail).
>> 
>> Eh?  Did you not kill DD mode in userland?
> 
> Not quite.  The problem was that the alternate boot1 layout was not
> recognized by subr_diskmbr.c as "dangerous" (and therefore ignored) so it
> tried to interpret it and failed messily.
> 
> disklabel -r -w ad1 auto
> .. was failing apparently.  The whole DD thing still needs to be
> resolved.

That isn't supposed to work.  You don't write a disklabel to a hard drive on a
PC, you write a MBR using 'fdisk'.  disklabel ad1 auto should fail.  Right now
it does DD mode.  If you don't want it to fail, it should write a disklabel (not
a MBR).  (If this is a non-boot disk in a FreeBSD only system this would be ok.)

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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