Hal Pomeranz on Nostr: Here's a wacky Linux factoid-- If you look at the RAID UUID in the superblock on disk ...
Here's a wacky Linux factoid--
If you look at the RAID UUID in the superblock on disk it's in little-endian byte order:
Linux Software RAID version 1.2 (1) UUID=cccdcc9b:f86a0b98:98df7949:8f2f7bb8 name=localhost:boot level=1 disks=2
But if you look at the metadata for active volumes in the /run/mdadm/map file, the UUIDs are in big-endian (network byte order) format:
md126 1.2 9bcccdcc:980b6af8:4979df98:b87b2f8f /dev/md/localhost:boot
I spent some time today being confused by why the UUIDs weren't matching before I realized what was going on.
#Linux #RAID #DFIR
Published at
2026-10-10 15:17:40 UTCEvent JSON
{
"id": "b64f5fe6f0f6adc31ac894cf9e620e657bc02ca482b4c8a66bbc735873046064",
"pubkey": "e57dba9150c5b60c32e995476f315fe6a07e11f5cd384d282670dca334e4de6f",
"created_at": 1791645460,
"kind": 1,
"tags": [
[
"t",
"linux"
],
[
"t",
"dfir"
],
[
"proxy",
"https://infosec.exchange/@hal_pomeranz/117417276916317058",
"web"
],
[
"t",
"raid"
],
[
"proxy",
"https://infosec.exchange/users/hal_pomeranz/statuses/117417276916317058",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://infosec.exchange/users/hal_pomeranz/statuses/117417276916317058",
"pink.momostr"
],
[
"-"
]
],
"content": "Here's a wacky Linux factoid--\n\nIf you look at the RAID UUID in the superblock on disk it's in little-endian byte order:\n\nLinux Software RAID version 1.2 (1) UUID=cccdcc9b:f86a0b98:98df7949:8f2f7bb8 name=localhost:boot level=1 disks=2\n\nBut if you look at the metadata for active volumes in the /run/mdadm/map file, the UUIDs are in big-endian (network byte order) format:\n\nmd126 1.2 9bcccdcc:980b6af8:4979df98:b87b2f8f /dev/md/localhost:boot\n\nI spent some time today being confused by why the UUIDs weren't matching before I realized what was going on.\n\n#Linux #RAID #DFIR",
"sig": "6d11f12019cf1f42437778e863f269ce3102f77c0a53e5a511995aaa20bbf6cf5e7067a414380030feac9d3f7d2498158b96b309352c1522b508bf45cbad9d3d"
}