On Fri, Oct 09, 2026 at 01:14:35PM +0200, ????????? wrote:
> I also used the hex dump to confirm, as suggested by Crystal.
> Unfortunately, her suggestion of using a hex editor has no chance.
> There is a checksum in softraidvar.h: sr_metadata.ssd_checksum, right near
> sr_metadata._sdd_invariant.ssd_vol_flags, where the BIOC_SCBOOTABLE flag
> apparently resides.

The checksum is just the md5 of the first 96 bytes starting at where you see
'marcCRAM':

# hexdump -C disk_block

00000000  6d 61 72 63 43 52 41 4d  06 00 00 00 04 00 00 00  |marcCRAM........|
00000010  29 c5 9c f7 98 0e 46 64  b8 ce 63 31 ac 33 1e ae  |).....Fd..c1.3..|
00000020  01 00 00 00 00 00 00 00  01 00 00 00 00 02 00 00  |................|
00000030  04 00 00 00 43 00 00 00  f0 f5 ff 7f 03 00 00 00  |....C...........|
00000040  4f 50 45 4e 42 53 44 00  53 52 20 43 52 59 50 54  |OPENBSD.SR CRYPT|
00000050  4f 00 00 00 00 00 00 00  30 30 36 00 00 00 00 00  |O.......006.....|
00000060  41 ec c5 2d 3a 12 da ee  55 45 a7 68 54 d1 f7 c7  |A..-:...UE.hT...|
...

# dd if=disk_block bs=96 count=1 | md5
1+0 records in
1+0 records out
96 bytes transferred in 0.000 secs (1659091 bytes/sec)
41ecc52d3a12daee5545a76854d1f7c7

Note the output from md5 matches the last line of the hex dump.

Reply via email to