*BSD News Article 19777


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!howland.reston.ans.net!gatech!destroyer!news.itd.umich.edu!quince.ifs.umich.edu!pha
From: pha@quince.ifs.umich.edu (Paul H. Anderson)
Newsgroups: comp.os.386bsd.questions
Subject: Re: disklabeling problems
Date: 20 Aug 1993 14:50:27 GMT
Organization: University of Michigan
Lines: 48
Distribution: world
Message-ID: <252obj$ira@terminator.rs.itd.umich.edu>
References: <24qp4r$2la@manuel.anu.edu.au>
Reply-To: pha@quince.ifs.umich.edu (Paul H. Anderson)
NNTP-Posting-Host: quince.ifs.umich.edu

In article <24qp4r$2la@manuel.anu.edu.au>, titus@cairo.anu.edu.au (titus
chiu) writes:

> i do a disklabel -w -r /dev/rwd1d <type> as suggested by the faq, i get
> 
>  Bootstrap doesn't leave room for disk label
> 
> if i do a disklabel -w /dev/rwd1d <type> as suggested by the manual, i get
> 
>  disklabel: ioctl DIOCWDINFO: No disk label on disk;
>  use "disklabel -r" to install initial label
> 
> ok so i do a disklabel -r /dev/rwd1d as per instructed, i get the disklabel
> list but i get on the top line,
> 
>  Bad pack magic number (label is damaged, or pack is unlabeled)


I had these same problems last night with my NetBSD 0.8 distribution
from agate or sun-lamp (forgot which).

My workaround was to take the working label from my /dev/sd0,
copy that to /dev/sd1, then edit the copied label.

I did this:

dd if=/dev/rsd0d of=/dev/rsd1d count=30
disklabel -r -e sd1a

This may only work when the drives are of the same general type,
in my case, both SCSI.  You will have to modify many of the parameters,
but this will work.

Warning... only do this if you know there is nothing useful on the
second drive.  You probably can patch the drive by using count=16,
but don't quote me on it.

This is a fairly basic problem, so I assume it will be fixed in
NetBSD 0.9 - either because of uncorrupted binaries, or because of
an actual patch.

Paul Anderson

=====================================================================
| University of Michigan Research Systems       E-Mail pha@umich.edu|
| 535 W. William St                             Phone  313-763-0576 |
| Ann Arbor, MI  48103-4943                     FAX    313-764-5140 |
=====================================================================