SUMMARY: re-labeling disk after debian

From: Michael A. Crowley (mcrowley@MtHolyoke.edu)
Date: Fri May 17 2002 - 14:39:01 EDT


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



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