Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* LSM mess up the disklabel
@ 1996-04-17  4:00 Peter Tsang
  1996-04-17  4:00 ` Laurence Oberman
  1996-04-18  4:00 ` Dave Parker
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Tsang @ 1996-04-17  4:00 UTC (permalink / raw)


We've got a disk with a corrupted disklabel as follows:

# disklabel /dev/rrz2c
# /dev/rrz2c:
type: SCSI
disk: rz28
label: 
flags:
bytes/sector: 512
sectors/track: 99
tracks/cylinder: 16
sectors/cylinder: 1584
cylinders: 2595
sectors/unit: 4110480
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

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


Does anyone have a clue how to fix it?

Thanx in advance.

Peter Tsang



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LSM mess up the disklabel
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Laurence Oberman @ 1996-04-17  4:00 UTC (permalink / raw)
  To: Peter Tsang

> # disklabel -r /dev/rrz2c
> Disk is unlabeled or, /dev/rrz2c does not start at block 0 of the disk
> 
> Does anyone have a clue how to fix it?
> 
> Thanx in advance.
> 
> Peter Tsang



Hi there Peter.

Laurence Oberman from Digital South Africa.

You need to write a new label as follows.

disklabel -wr /dev/rrz2c rz28.

Contact me on aa42@solo.pipex.co.za

Regards Laurence Oberman.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LSM mess up the disklabel
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Parker @ 1996-04-18  4:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-04-18  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox