From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,897f4e6ad8698a26,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,897f4e6ad8698a26,start X-Google-Attributes: gidfee84,public From: "Alaric S. Haag" Subject: Summary: disklabel won't read/write label Date: 1996/02/21 Message-ID: <312B8944.41C6@me.lsu.edu> X-Deja-AN: 140463027 content-type: text/plain; charset=us-ascii organization: Louisiana State Univ. - Division of Engr. Services mime-version: 1.0 newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc x-mailer: Mozilla 2.0 (X11; I; OSF1 V2.0 alpha) 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" 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 >>>>> " " == "Alaric S Haag" 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" writes: >From: "Alaric S. Haag" >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 : 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