NetBSD Problem Report #3267

Received: (qmail-queue invoked from smtpd); 28 Feb 1997 12:14:47 -0000
Message-Id: <199702281202.MAA23808@orwell.southern.net>
Date: Fri, 28 Feb 1997 12:02:12 GMT
From: david@mono.org
Reply-To: david@mono.org
To: gnats-bugs@gnats.netbsd.org
Subject: disklabel manpages does not mention sparc/sun3 gotchas
X-Send-Pr-Version: 3.95

>Number:         3267
>Category:       bin
>Synopsis:       disklabel manpages does not mention sparc/sun3 gotchas
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 28 04:20:02 +0000 1997
>Closed-Date:    Sat Oct 18 23:47:18 +0000 1997
>Last-Modified:  Sat Oct 18 23:50:14 +0000 1997
>Originator:     David Brownlee
>Release:        Dec 10 1996
>Organization:
<a href="http://www.mono.org/">Monochrome</a>
>Environment:

System: NetBSD orwell.southern.net 1.2B NetBSD 1.2B (GENERIC) #11: Tue Dec 10 00:24:14 MET 1996 pk@flambard:/usr/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
	On sparc (& I believe sun3) disklabel normally produces a sunos
	compatible disklabel. The partitions _must_ start and end on
	cylinder boundaries, but there is no mention of this in the
	disklabel manpage. Also using disklabel -r can cause Bad Things
	to happen (with respect to wanting to boot from the drive).

>How-To-Repeat:
	Setup a disklabel with partitions not on cylinder boundaries, then
	wonder why it cannot be written.
>Fix:
	Add notes to the manpage.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: fair 
State-Changed-When: Mon Oct 13 23:30:27 PDT 1997 
State-Changed-Why:  
a warning about partitions needing to be an integer number of cylinders 
has been added to the disklabel(8) man page. Can you review it, and also 
let us know if there are additional warning words you'd like to see added 
to the man page? Also, what "Bad Things" can "-r" do? If you can be 
specific, more words to the wise can be added, to the benefit of all. 

Date:    Wed, 15 Oct 1997 11:03:02 -0400
From:    "Gordon W. Ross" <gwr@mc.com>
Return-path: gwr@mc.com
Subject: Re: NetBSD master CVS tree commits
To:      fair@clock.org
In-reply-to: <14546.876891578@cesium.clock.org> (fair@clock.org)

> From: "Erik E. Fair" (Timekeeper) <fair@clock.org>
> Date:         Tue, 14 Oct 1997 21:59:38 -0700
> 
> How does using "-r" hose the disk label on a sun?
> In other words, what error should the user expect?

The PROM just says: "No disk label."

When you do NOT use the "-r" option on disklabel, the kernel
will translate the label from NetBSD to Sun format before
actually writing it to the disk.  That is what allows the
PROM to understand the disk label.  The "-r" option causes
disklabel to bypass that format translation.

Gordon

State-Changed-From-To: feedback->closed 
State-Changed-By: fair 
State-Changed-When: Sat Oct 18 16:47:18 PDT 1997 
State-Changed-Why:  
final warning text about "-r" added to disklabel.8 about sun3/sparc. 
May this be sufficient notice to prevent the wary from falling into error. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.