Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active July 24, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/40c4607d239e72f7393de89be449df1f to your computer and use it in GitHub Desktop.
Save cleverca22/40c4607d239e72f7393de89be449df1f to your computer and use it in GitHub Desktop.
diff -u a.hex b.hex
--- a.hex 2020-07-24 12:49:59.424641405 -0300
+++ b.hex 2020-07-24 13:14:32.992464848 -0300
@@ -12,8 +12,8 @@
*
000004c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ea 00 |................|
000004d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-000004e0 08 00 00 00 00 00 00 00 00 00 00 00 80 3d a9 63 |.............=.c|
-000004f0 3a ee 45 96 9a 8b 83 16 5a 8e 9e 36 01 01 40 00 |:.E.....Z..6..@.|
+000004e0 08 00 00 00 00 00 00 00 00 00 00 00 24 91 ec fb |............$...|
+000004f0 be a0 49 dc 80 ea e8 fe 0b b4 44 eb 01 01 40 00 |..I.......D...@.|
00000500 0c 00 00 00 00 00 00 00 01 00 00 00 0a f3 01 00 |................|
00000510 04 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 |............. ..|
00000520 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@@ -24,7 +24,7 @@
00000570 00 00 00 00 04 01 00 00 39 5f 18 00 00 00 00 00 |........9_......|
00000580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
-000007f0 00 00 00 00 00 00 00 00 00 00 00 00 ee 12 a0 8d |................|
+000007f0 00 00 00 00 00 00 00 00 00 00 00 00 05 7e 19 ac |.............~..|
00000800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00001000 ec 00 00 00 fb 00 00 00 0a 01 00 00 00 00 00 00 |................|
@@ -5975786,8 +5975786,8 @@
*
080000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ea 00 |................|
080000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-080000e0 08 00 00 00 00 00 00 00 00 00 00 00 80 3d a9 63 |.............=.c|
-080000f0 3a ee 45 96 9a 8b 83 16 5a 8e 9e 36 01 01 40 00 |:.E.....Z..6..@.|
+080000e0 08 00 00 00 00 00 00 00 00 00 00 00 24 91 ec fb |............$...|
+080000f0 be a0 49 dc 80 ea e8 fe 0b b4 44 eb 01 01 40 00 |..I.......D...@.|
08000100 0c 00 00 00 00 00 00 00 01 00 00 00 0a f3 01 00 |................|
08000110 04 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 |............. ..|
08000120 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@@ -5975798,7 +5975798,7 @@
08000170 00 00 00 00 04 01 00 00 39 5f 18 00 00 00 00 00 |........9_......|
08000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
-080003f0 00 00 00 00 00 00 00 00 00 00 00 00 6f 7b 64 32 |............o{d2|
+080003f0 00 00 00 00 00 00 00 00 00 00 00 00 84 17 dd 13 |................|
08000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
08001000 ec 00 00 00 fb 00 00 00 0a 01 00 00 00 00 00 00 |................|
@@ -21088467,8 +21088467,8 @@
*
180000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ea 00 |................|
180000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-180000e0 08 00 00 00 00 00 00 00 00 00 00 00 80 3d a9 63 |.............=.c|
-180000f0 3a ee 45 96 9a 8b 83 16 5a 8e 9e 36 01 01 40 00 |:.E.....Z..6..@.|
+180000e0 08 00 00 00 00 00 00 00 00 00 00 00 24 91 ec fb |............$...|
+180000f0 be a0 49 dc 80 ea e8 fe 0b b4 44 eb 01 01 40 00 |..I.......D...@.|
18000100 0c 00 00 00 00 00 00 00 01 00 00 00 0a f3 01 00 |................|
18000110 04 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 |............. ..|
18000120 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@@ -21088479,7 +21088479,7 @@
18000170 00 00 00 00 04 01 00 00 39 5f 18 00 00 00 00 00 |........9_......|
18000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
-180003f0 00 00 00 00 00 00 00 00 00 00 00 00 51 ee 2e ac |............Q...|
+180003f0 00 00 00 00 00 00 00 00 00 00 00 00 ba 82 97 8d |................|
18000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
18001000 ec 00 00 00 fb 00 00 00 0a 01 00 00 00 00 00 00 |................|
@@ -35463497,8 +35463497,8 @@
*
280000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ea 00 |................|
280000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-280000e0 08 00 00 00 00 00 00 00 00 00 00 00 80 3d a9 63 |.............=.c|
-280000f0 3a ee 45 96 9a 8b 83 16 5a 8e 9e 36 01 01 40 00 |:.E.....Z..6..@.|
+280000e0 08 00 00 00 00 00 00 00 00 00 00 00 24 91 ec fb |............$...|
+280000f0 be a0 49 dc 80 ea e8 fe 0b b4 44 eb 01 01 40 00 |..I.......D...@.|
28000100 0c 00 00 00 00 00 00 00 01 00 00 00 0a f3 01 00 |................|
28000110 04 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 |............. ..|
28000120 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@@ -35463509,7 +35463509,7 @@
28000170 00 00 00 00 04 01 00 00 39 5f 18 00 00 00 00 00 |........9_......|
28000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
-280003f0 00 00 00 00 00 00 00 00 00 00 00 00 e2 27 1d 0b |.............'..|
+280003f0 00 00 00 00 00 00 00 00 00 00 00 00 09 4b a4 2a |.............K.*|
28000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
28001000 ec 00 00 00 fb 00 00 00 0a 01 00 00 00 00 00 00 |................|
@@ -48778818,8 +48778818,8 @@
*
380000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ea 00 |................|
380000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-380000e0 08 00 00 00 00 00 00 00 00 00 00 00 80 3d a9 63 |.............=.c|
-380000f0 3a ee 45 96 9a 8b 83 16 5a 8e 9e 36 01 01 40 00 |:.E.....Z..6..@.|
+380000e0 08 00 00 00 00 00 00 00 00 00 00 00 24 91 ec fb |............$...|
+380000f0 be a0 49 dc 80 ea e8 fe 0b b4 44 eb 01 01 40 00 |..I.......D...@.|
38000100 0c 00 00 00 00 00 00 00 01 00 00 00 0a f3 01 00 |................|
38000110 04 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 |............. ..|
38000120 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@@ -48778830,7 +48778830,7 @@
38000170 00 00 00 00 04 01 00 00 39 5f 18 00 00 00 00 00 |........9_......|
38000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
-380003f0 00 00 00 00 00 00 00 00 00 00 00 00 dc b2 57 95 |..............W.|
+380003f0 00 00 00 00 00 00 00 00 00 00 00 00 37 de ee b4 |............7...|
38000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
38001000 ec 00 00 00 fb 00 00 00 0a 01 00 00 00 00 00 00 |................|
@@ -65427461,8 +65427461,8 @@
*
480000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ea 00 |................|
480000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
-480000e0 08 00 00 00 00 00 00 00 00 00 00 00 80 3d a9 63 |.............=.c|
-480000f0 3a ee 45 96 9a 8b 83 16 5a 8e 9e 36 01 01 40 00 |:.E.....Z..6..@.|
+480000e0 08 00 00 00 00 00 00 00 00 00 00 00 24 91 ec fb |............$...|
+480000f0 be a0 49 dc 80 ea e8 fe 0b b4 44 eb 01 01 40 00 |..I.......D...@.|
48000100 0c 00 00 00 00 00 00 00 01 00 00 00 0a f3 01 00 |................|
48000110 04 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 |............. ..|
48000120 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@@ -65427473,7 +65427473,7 @@
48000170 00 00 00 00 04 01 00 00 39 5f 18 00 00 00 00 00 |........9_......|
48000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
-480003f0 00 00 00 00 00 00 00 00 00 00 00 00 75 c2 96 40 |............u..@|
+480003f0 00 00 00 00 00 00 00 00 00 00 00 00 9e ae 2f 61 |............../a|
48000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
48001000 ec 00 00 00 fb 00 00 00 0a 01 00 00 00 00 00 00 |................|
[clever@amd-nixos:~/apps/rpi/rpi-open-firmware]$ dumpe2fs a
dumpe2fs 1.45.5 (07-Jan-2020)
Filesystem volume name: NIXOS_SD
Last mounted on: <not available>
Filesystem UUID: 44444444-4444-4444-8888-888888888888
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 120480
Block count: 481280
Reserved block count: 24064
Free blocks: 75214
Free inodes: 80752
First block: 0
Block size: 4096
Fragment size: 4096
Group descriptor size: 64
Reserved GDT blocks: 234
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8032
Inode blocks per group: 502
Flex block group size: 16
Filesystem created: Wed Dec 31 20:00:01 1969
Last mount time: n/a
Last write time: Wed Dec 31 20:00:01 1969
Mount count: 0
Maximum mount count: -1
Last checked: Wed Dec 31 20:00:01 1969
Check interval: 0 (<none>)
Lifetime writes: 1560 MB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 32
Desired extra isize: 32
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: 803da963-3aee-4596-9a8b-83165a8e9e36
Journal backup: inode blocks
Checksum type: crc32c
Checksum: 0x8da012ee
Journal features: (none)
Journal size: 32M
Journal length: 8192
Journal sequence: 0x00000001
Journal start: 0
Group 0: (Blocks 0-32767) csum 0xe094 [ITABLE_ZEROED]
Primary superblock at 0, Group descriptors at 1-1
Reserved GDT blocks at 2-235
Block bitmap at 236 (+236), csum 0x1d17d2ca
Inode bitmap at 251 (+251), csum 0x39ca411d
Inode table at 266-767 (+266)
0 free blocks, 0 free inodes, 1368 directories
Free blocks:
Free inodes:
Group 1: (Blocks 32768-65535) csum 0xb1a2 [ITABLE_ZEROED]
Backup superblock at 32768, Group descriptors at 32769-32769
Reserved GDT blocks at 32770-33003
Block bitmap at 237 (bg #0 + 237), csum 0x1d17d2ca
Inode bitmap at 252 (bg #0 + 252), csum 0x39ca411d
Inode table at 768-1269 (bg #0 + 768)
0 free blocks, 0 free inodes, 1189 directories
Free blocks:
Free inodes:
Group 2: (Blocks 65536-98303) csum 0x32a0 [ITABLE_ZEROED]
Block bitmap at 238 (bg #0 + 238), csum 0x1d17d2ca
Inode bitmap at 253 (bg #0 + 253), csum 0x39ca411d
Inode table at 1270-1771 (bg #0 + 1270)
0 free blocks, 0 free inodes, 478 directories
Free blocks:
Free inodes:
Group 3: (Blocks 98304-131071) csum 0xf218 [ITABLE_ZEROED]
Backup superblock at 98304, Group descriptors at 98305-98305
Reserved GDT blocks at 98306-98539
Block bitmap at 239 (bg #0 + 239), csum 0x1d17d2ca
Inode bitmap at 254 (bg #0 + 254), csum 0x39ca411d
Inode table at 1772-2273 (bg #0 + 1772)
0 free blocks, 0 free inodes, 1247 directories
Free blocks:
Free inodes:
Group 4: (Blocks 131072-163839) csum 0xe565 [ITABLE_ZEROED]
Block bitmap at 240 (bg #0 + 240), csum 0x1d17d2ca
Inode bitmap at 255 (bg #0 + 255), csum 0xc335012a
Inode table at 2274-2775 (bg #0 + 2274)
0 free blocks, 432 free inodes, 1640 directories, 432 unused inodes
Free blocks:
Free inodes: 39729-40160
Group 5: (Blocks 163840-196607) csum 0x496f [INODE_UNINIT, ITABLE_ZEROED]
Backup superblock at 163840, Group descriptors at 163841-163841
Reserved GDT blocks at 163842-164075
Block bitmap at 241 (bg #0 + 241), csum 0x1d17d2ca
Inode bitmap at 256 (bg #0 + 256), csum 0x00000000
Inode table at 2776-3277 (bg #0 + 2776)
0 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks:
Free inodes: 40161-48192
Group 6: (Blocks 196608-229375) csum 0x1caf [INODE_UNINIT, ITABLE_ZEROED]
Block bitmap at 242 (bg #0 + 242), csum 0x1d17d2ca
Inode bitmap at 257 (bg #0 + 257), csum 0x00000000
Inode table at 3278-3779 (bg #0 + 3278)
0 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks:
Free inodes: 48193-56224
Group 7: (Blocks 229376-262143) csum 0xb337 [INODE_UNINIT, ITABLE_ZEROED]
Backup superblock at 229376, Group descriptors at 229377-229377
Reserved GDT blocks at 229378-229611
Block bitmap at 243 (bg #0 + 243), csum 0x1d17d2ca
Inode bitmap at 258 (bg #0 + 258), csum 0x00000000
Inode table at 3780-4281 (bg #0 + 3780)
0 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks:
Free inodes: 56225-64256
Group 8: (Blocks 262144-294911) csum 0x0d71 [INODE_UNINIT, ITABLE_ZEROED]
Block bitmap at 244 (bg #0 + 244), csum 0x1d17d2ca
Inode bitmap at 259 (bg #0 + 259), csum 0x00000000
Inode table at 4282-4783 (bg #0 + 4282)
0 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks:
Free inodes: 64257-72288
Group 9: (Blocks 294912-327679) csum 0x4574 [INODE_UNINIT, ITABLE_ZEROED]
Backup superblock at 294912, Group descriptors at 294913-294913
Reserved GDT blocks at 294914-295147
Block bitmap at 245 (bg #0 + 245), csum 0x1d17d2ca
Inode bitmap at 260 (bg #0 + 260), csum 0x00000000
Inode table at 4784-5285 (bg #0 + 4784)
0 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks:
Free inodes: 72289-80320
Group 10: (Blocks 327680-360447) csum 0x10b4 [INODE_UNINIT, ITABLE_ZEROED]
Block bitmap at 246 (bg #0 + 246), csum 0x1d17d2ca
Inode bitmap at 261 (bg #0 + 261), csum 0x00000000
Inode table at 5286-5787 (bg #0 + 5286)
0 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks:
Free inodes: 80321-88352
Group 11: (Blocks 360448-393215) csum 0xead6 [INODE_UNINIT, ITABLE_ZEROED]
Block bitmap at 247 (bg #0 + 247), csum 0x1d17d2ca
Inode bitmap at 262 (bg #0 + 262), csum 0x00000000
Inode table at 5788-6289 (bg #0 + 5788)
0 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks:
Free inodes: 88353-96384
Group 12: (Blocks 393216-425983) csum 0xeda7 [INODE_UNINIT, ITABLE_ZEROED]
Block bitmap at 248 (bg #0 + 248), csum 0xf804df98
Inode bitmap at 263 (bg #0 + 263), csum 0x00000000
Inode table at 6290-6791 (bg #0 + 6290)
19918 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks: 406066-425983
Free inodes: 96385-104416
Group 13: (Blocks 425984-458751) csum 0x3277 [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED]
Block bitmap at 249 (bg #0 + 249), csum 0x00000000
Inode bitmap at 264 (bg #0 + 264), csum 0x00000000
Inode table at 6792-7293 (bg #0 + 6792)
32768 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks: 425984-458751
Free inodes: 104417-112448
Group 14: (Blocks 458752-481279) csum 0xa4e4 [INODE_UNINIT, ITABLE_ZEROED]
Block bitmap at 250 (bg #0 + 250), csum 0x70faa2ff
Inode bitmap at 265 (bg #0 + 265), csum 0x00000000
Inode table at 7294-7795 (bg #0 + 7294)
22528 free blocks, 8032 free inodes, 0 directories, 8032 unused inodes
Free blocks: 458752-481279
Free inodes: 112449-120480
[clever@amd-nixos:~/apps/rpi/rpi-open-firmware]$
[clever@amd-nixos:~/apps/rpi/rpi-open-firmware]$ dumpe2fs a > a.e2
dumpe2fs 1.45.5 (07-Jan-2020)
[clever@amd-nixos:~/apps/rpi/rpi-open-firmware]$ dumpe2fs b > b.e2
dumpe2fs 1.45.5 (07-Jan-2020)
[clever@amd-nixos:~/apps/rpi/rpi-open-firmware]$ diff -u --color a.e2 b.e2
--- a.e2 2020-07-24 13:23:25.573470811 -0300
+++ b.e2 2020-07-24 13:23:28.355390038 -0300
@@ -40,10 +40,10 @@
Desired extra isize: 32
Journal inode: 8
Default directory hash: half_md4
-Directory Hash Seed: 803da963-3aee-4596-9a8b-83165a8e9e36
+Directory Hash Seed: 2491ecfb-bea0-49dc-80ea-e8fe0bb444eb
Journal backup: inode blocks
Checksum type: crc32c
-Checksum: 0x8da012ee
+Checksum: 0xac197e05
Journal features: (none)
Journal size: 32M
Journal length: 8192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment