From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Michael A. Crowley" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: re-labeling disk after debian Date: Fri, 17 May 2002 14:39:01 -0400 (EDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1021661932 22388 127.0.0.1 (17 May 2002 18:58:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 May 2002 18:58:52 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 178mwG-0005oz-00 for ; Fri, 17 May 2002 20:58:52 +0200 Original-Received: (qmail 24719 invoked by uid 5); 17 May 2002 18:39:07 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 24711 invoked from network); 17 May 2002 18:39:07 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (134.167.3.110) by 0 with SMTP; 17 May 2002 18:39:07 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GW9006B5QH7HU@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 17 May 2002 14:39:07 -0400 (EDT) Original-Received: from ambr.mtholyoke.edu (ambr.mtholyoke.edu [138.110.1.10]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GW90078GQH22D@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 17 May 2002 14:39:03 -0400 (EDT) Original-Received: from mhc.mtholyoke.edu (mhc.mtholyoke.edu [138.110.1.1]) by ambr.mtholyoke.edu (8.7.3/v010428-0818) with ESMTP id OAA339031 for ; Fri, 17 May 2002 14:39:01 -0400 (EDT) Original-Received: from localhost (mcrowley@localhost) by mhc.mtholyoke.edu (8.7.3/v010825-0728) with ESMTP id OAA194425 for ; Fri, 17 May 2002 14:39:01 -0400 (EDT) In-Reply-To: Original-To: Tru64 Managers List Xref: main.gmane.org gmane.os.tru64.managers:248 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:248 I'd like to thank numerous people for their suggestions. Unfortunately in all of the things I mentioned, I neglected to mention that I had tried the scu format command also with no luck, and most of the suggestions were to format the drive with scu. Many of the normal ways one would write over a disk from the beginning would not work since no partition was at zero offset. Robert Binkley had suggested "zeero" which sounded like it would work, but didn't seem to write over the disklabel. It might have been assuming partitions a and c started at zero. Tom Blinn wondered if the in-memory copy of the disklabel was somehow getting used after format. That reminded me of ncheck/icheck from Version 7 where after checking the root file system, it wanted you to power off without sync. So I did the scu format in single user and hit the power when done. On reboot, I had no label and was able to use the normal disklabel commands. Orginal message: > >I'm having a problem relabeling a disk. It's a Seagate ST15150W that >was used on an Alpha Debian linux system. I don't seem to be able >to get the disklabel program to write anything new. Partitions a and >c are not at offset 0. > >How can I get control back of this thing? Any way of writing to this >thing raw? It's at bus 0, lun 0, target 0. > >This is tu5.1 > >Here are some cut/paste details: > >The disk label includes: > >3 partitions: ># size offset fstype [fsize bsize cpg] # NOTE: values not exact > a: 5665464 2268 resrvd8 # (Cyl. 1 - 2498) > b: 1589868 5667732 resrvd8 # (Cyl. 2499 - 3199) > c: 1131732 7257600 swap # (Cyl. 3200 - 3698) > >When trying to do any normal editing of that disklabel: > "/tmp/EdDk.aaaaVca" 24 lines, 668 characters > write new label? [y]: y > partition c: partition extends past end of unit > re-edit the label? [y]: n >So I cannot change the label to add or modify a partition with offset=0. > >Also: > # disklabel -z dsk10c > Disk is unlabeled or, /dev/rdisk/dsk10c is not in block 0 of the disk > >And: > # disklabel -sF dsk10c unused > The disklabel for /dev/rdisk/dsk10c could not be updated. > >Other attempts: > I'm not real well versed in the scu program. I tried > running scu and writing raw data to the disk, hoping that > would clear things. However, I'm not running scu right to > do this: > # scu -c /dev/cam > scu> set nexus bus 0 lun 0 target 0 > Device: ST15150W, Bus: 0, Target: 0, Lun: 0, Type: Direct Access > scu> write media starting 0 limit 1m bs 10k > scu: Mounted file system check cannot be performed using '[0/0/0]' (ST15150W). > >Any advice would be appriciated. > >-mike > >----------------------------------------------------------------------------- > Michael A. Crowley Director of Networking > mcrowley@mtholyoke.edu 216 Dwight Hall, Mount Holyoke College > 413-538-2140 fax: 413-538-2331 South Hadley, MA 01075-6415 > http://www.mtholyoke.edu/~mcrowley http://www.mtholyoke.edu/lits/network >----------------------------------------------------------------------------- > > >