Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: djp@zeus.unx.dec.com (Dave Parker)
Subject: Re: LSM mess up the disklabel
Date: 1996/04/18	[thread overview]
Message-ID: <4l5a7l$v8v@nntpd.lkg.dec.com> (raw)
In-Reply-To: 3174D166.5DDD@cs.cityu.edu.hk


In article <3174D166.5DDD@cs.cityu.edu.hk>, Peter Tsang <ptsang@cs.cityu.edu.hk> writes:
|>We've got a disk with a corrupted disklabel as follows:
|>
		<snip>
|>
|>8 partitions:
|>#        size   offset    fstype   [fsize bsize   cpg]
|>  a:   204816        0     ADVfs                        # (Cyl.    0 - 129*)
|>  b:   523232   205856      swap                        # (Cyl.  129*- 460*)
|>  c:       16   205328   LSMsimp                        # (Cyl.  129*- 129*)
|>  d:    20480   729088   LSMsimp                        # (Cyl.  460*- 473*)
|>  e:   204800       16   LSMpubl                        # (Cyl.    0*- 129*)
|>  f:      512   205344   LSMpriv                        # (Cyl.  129*- 129*)
|>  g:  2048000   749568     ADVfs                        # (Cyl.  473*- 1766*)
|>  h:  1312912  2797568     ADVfs                        # (Cyl. 1766*- 2594*)
|># 
|>
|>It returns the following error every times we want to edit/reinitialize.
|>
|># disklabel -r /dev/rrz2c
|>Disk is unlabeled or, /dev/rrz2c does not start at block 0 of the disk
|>

The error message suggests that rrz2c does not start at block 0 of the disk
(where you'll find the disklabel).  As your label shows, that is correct.  The
"c" partition has a non-zero offset.

Specify the "a" partition instead, which has a zero offset.

BTW - in current versions of Digital UNIX, you could just say:

disklabel -r rz2

disklabel would find an appropriate partition to open.

Dave


----------------------------------------------------------------------
Dave Parker					djp@unx.dec.com
UNIX Engineering				Digital Equipment Corp
	The comments, opinions, etc. within are mine.....



      parent reply	other threads:[~1996-04-18  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-17  4:00 LSM mess up the disklabel Peter Tsang
1996-04-17  4:00 ` Laurence Oberman
1996-04-18  4:00 ` Dave Parker [this message]
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