python3 -c " import struct, binascii # We need to recompute the GDT checksum for group 0 # after modifying its flags # # ext4 GDT checksum = crc32c(uuid + group_num_le16 + gdt_entry_with_csum_zeroed) # The checksum seed is stored in the superblock at offset 408 with open('/dev/nbd0','rb') as f: f.seek(1024) sb = f.read(1024) uuid = sb[104:120] csum_seed = struct.unpack_from('/dev/null sleep 1 python3 nbd_server_v9.py & sleep 2 nbd-client 127.0.0.1 10809 /dev/nbd0 -N "" # Full e2fsck read-only check e2fsck -n /dev/nbd0 2>&1 | tee /tmp/e2fsck_full.log tail -5 /tmp/e2fsck_full.log # Try mounting mount -o ro,norecovery -t ext4 /dev/nbd0 /mnt/root ls /mnt/root