disklabel is wrong and cannot fix

From: Mark Schubert <Mark.Schubert_at_cogita.com.au>
Date: Tue, 27 Nov 2001 18:17:21 +1300

Hi,

I have the following disklabel on a disk currently holding a V5.1 root
filesystem (partition a). Partitions b and g are said to be inuse however
they are not inuse. I would like to reset them to be unused however when I
try the command "disklabel -s dsk0b unused" I get the error
"/dev/rdisk/dsk0b or an overlapping partition is open.".

I cannot reset either of the b or g partitions. Any suggestions? Naturally I
do not wish to do any serious damage to the existing disklabel as it has an
operational root filesystem on it.

# /dev/rdisk/dsk0c:
type: SWXCR
disk: SWXCR
label:
flags: dynamic_geometry
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 128
sectors/cylinder: 4096
cylinders: 2045
sectors/unit: 8378368
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] # NOTE:
values not exact
  a: 1024000 0 AdvFS # (Cyl. 0
- 249)
  b: 1024000 1024000 swap # (Cyl. 250
- 499)
  c: 8378368 0 unused 0 0 # (Cyl. 0
- 2045*)
  d: 2048000 2048000 unused 0 0 # (Cyl. 500
- 999)
  e: 2048000 4096000 unused 0 0 # (Cyl. 1000
- 1499)
  f: 2234368 6144000 unused 0 0 # (Cyl. 1500
- 2045*)
  g: 4300800 1572864 AdvFS # (Cyl. 384
- 1433)
  h: 2504704 5873664 unused 0 0 # (Cyl. 1434
- 2045*)

Regards,

Mark
Received on Tue Nov 27 2001 - 05:17:14 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT