From: "Alaric S. Haag" <haag@me.lsu.edu>
Subject: Summary: disklabel won't read/write label
Date: 1996/02/21 [thread overview]
Message-ID: <312B8944.41C6@me.lsu.edu> (raw)
Thanks to all who responded! As I feared, the solution was
trivial... I (as did all the examples I came across) omitted the
disk-type parameter from the disklabel command (I don't get to add
disks very often...) I really appreciate this group's help!!
In addition to posts to the group, below is a summary of the
responses I got by Email.
Ric
%^{)
"I've got dust in my mind's eye!!"
[ Alaric S. Haag, Computer Manager haag@me.lsu.edu ]
[ Louisiana State University, Div. Engr. Svcs. FAX: (504) 388-5990 ]
[ Baton Rouge, LA 70803 Opinions: (504) 388-5897 ]
======================================================================
From: lally@lanl.gov (Bryan Lally)
In article <3128EA5C.794B@me.lsu.edu>, "Alaric S. Haag" <haag@me.lsu.edu> wrote:
> Hello all
> !
> I installed a Seagate barracuda drive in an Alpha 3000/600, but disklabel
> won't seem to touch it. That is, when I try to either read any existing
> label (-r or -rw) or write a new one (-z) it says:
>
> Bad pack magic number (label is damaged, or pack is unlabeled)
>
> Q1: Am I missing something obvious here (quite possible...)?
Alaric,
I use Barracudas all the time on my 3000/400s. I think what you want the
first time is:
% disklabel -wr /dev/rzxx scsi
to set up the first label.
-Bryan
======================================================================
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for
Wayward Inodes.)
In article <3128EA5C.794B@me.lsu.edu> you write:
>Hello all
>!
>I installed a Seagate barracuda drive in an Alpha 3000/600, but disklabel
>won't seem to touch it. That is, when I try to either read any existing
>label (-r or -rw) or write a new one (-z) it says:
>
>Bad pack magic number (label is damaged, or pack is unlabeled)
I've only seen the "Bad pack" message when the label was damaged
or didn't exist. In such a case you're "disklabel -z" to fail
since it expects to see a label. And the -z clears an existing,
it doesn't write a new one. What does disklabel with just the
special device file do?
>
> [ most of rdump example deleted ]
>
>rdump: Corrupted directory, i-node: 2
There was an old V1.3 bug that had this symtom. What version of
Digital UNIX are you running?
--
Alan Rollow alan@nabeth.cxo.dec.com
======================================================================
From: Alan Harder <ash@MATH.AMS.ORG>
>>>>> " " == "Alaric S Haag" <haag@me.lsu.edu> writes:
> Hello all ! I installed a Seagate barracuda drive in an Alpha
> 3000/600, but disklabel won't seem to touch it. That is, when I try
> to either read any existing label (-r or -rw) or write a new one
> (-z) it says:
> Bad pack magic number (label is damaged, or pack is unlabeled)
I've gotten this message, too. My workaround is to specify UNKNOWN as
the disk type when writing a new label. Disklabel then reads disk
parameters from the driver and uses them. As far as I know, this is
undocumented. I lucked out in discovering it through playing around
with disklabel.
Example: disklabel -w rz1 UNKNOWN
If you relabel the disk using this method, you will most likely lose
any existing data, so you might want to use tar to read as musch data
as possible off of the drive.
Good luck!
Alan Harder
ash@math.ams.org
======================================================================
From: pwerf@gak.nl (Peter van der Werf)
In article <3128EA5C.794B@me.lsu.edu> "Alaric S. Haag" <haag@me.lsu.edu> writes:
>From: "Alaric S. Haag" <haag@me.lsu.edu>
>Subject: disklabel won't read/write label
>Date: Mon, 19 Feb 1996 15:23:40 -0600
>Hello all
>!
>I installed a Seagate barracuda drive in an Alpha 3000/600, but disklabel
>won't seem to touch it. That is, when I try to either read any existing
>label (-r or -rw) or write a new one (-z)
Did you boot from your genvmunix after installing the drive and did you adjust
your kernelfile with something like:
device disk rz8 at scsi1 drive 64
See the system setup guide for more information
grtx;
Peter
======================================================================
From: Eric Frey <frey@bme.unc.edu>
: Hello all
: !
: I installed a Seagate barracuda drive in an Alpha 3000/600, but disklabel
: won't seem to touch it. That is, when I try to either read any existing
: label (-r or -rw) or write a new one (-z) it says:
: Bad pack magic number (label is damaged, or pack is unlabeled)
It has been a while since I did this, and I don't have a spare disk to try it on
, but as I recall, the sequence is:
disklabel -z /dev/rz0c
disklabel -e /dev/rz0c
The last command lets you edit the disk label. You may need to do a
disklabel -wr /dev/rz0c rzxx
before you can do the edit.
When you do the disklabel -e, you can edit the partition table and
change the rotational speed, then write the label. Then, do your
newfs on each partition. You should always do an fsck after you do
your newfs. Good Luck.
=======================================================================
Eric C. Frey Phone: 919-966-6729; Fax: 919-966-2963;
Research Assistant Professor e-mail: frey@bme.unc.edu
Department of Biomedical Engineering and Department of Radiology
The University of North Carolina
152 MacNider Hall, CB 7575, Chapel Hill, NC 27599
reply other threads:[~1996-02-21 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox