From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a9ad3222f698bf9b X-Google-Attributes: gidfee84,public From: djp@zeus.unx.dec.com (Dave Parker) Subject: Re: LSM mess up the disklabel Date: 1996/04/18 Message-ID: <4l5a7l$v8v@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 148365469 distribution: world references: <3174D166.5DDD@cs.cityu.edu.hk> organization: Digital Equipment Corporation reply-to: djp@zeus.unx.dec.com (Dave Parker) newsgroups: comp.unix.osf.osf1 In article <3174D166.5DDD@cs.cityu.edu.hk>, Peter Tsang writes: |>We've got a disk with a corrupted disklabel as follows: |> |> |>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.....