tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Michael A. Crowley" <mcrowley@MtHolyoke.edu>
Subject: re-labeling disk after debian
Date: Thu, 16 May 2002 15:14:18 -0400 (EDT)	[thread overview]
Message-ID: <Pine.OSF.4.21.0205161447240.511412-100000@mhc.mtholyoke.edu> (raw)
In-Reply-To: <20020516174822.88797.qmail@web11505.mail.yahoo.com>


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
-----------------------------------------------------------------------------




  parent reply	other threads:[~2002-05-16 19:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-16 13:21 Patch removal without backup Joe Hatchel
2002-05-16 17:48 ` SUMMARY: " Joe Hatchel
2002-05-16 17:55   ` backup problem Jonathan Williams
2002-05-16 19:14   ` Michael A. Crowley [this message]
2002-05-17 18:39     ` SUMMARY: re-labeling disk after debian Michael A. Crowley
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