re-labeling disk after debian

From: Michael A. Crowley (mcrowley@MtHolyoke.edu)
Date: Thu May 16 2002 - 15:14:18 EDT


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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:41 EDT