Hi,

is it somehow possible to read the type of a softraid partition?

When I have the following... (it actually is a crypto raid volume) ...
how could I figure out if it is RAID 0, 1 or C?


# fdisk sd0
Disk: sd0       geometry: 491/255/63 [7897088 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
*3: A6      0   1   1 -    490 254  63 [          63:     7887852 ] OpenBSD

# disklabel sd0
# Inside MBR partition 3: type A6 start 63 size 7887852
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 491
total sectors: 7897088
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:          7887852               63    RAID
  c:          7897088                0  unused      0     0

# bioctl sd0
sd0: <, , 0.00>, serial \\037 0.00

# bioctl sd0a
sd0a: <, , 0.00>, serial \\037 0.00

Reply via email to