Quote:
Originally Posted by shruggy
If it's the 12th inode, and inode table starts at 323th block, shouldn't you seek to 323*4096+11*inode_size=0x143B00? (if inode_size=256)
I mean inode 1 is the bad blocks inode, inode 2 is the root directory inode (which is probably what you were seeing above) and so on, ..., inode 11 is the first non-reserved inode.
|
Yup, not sure why I did not think about it before
it works now, thanks!!!
# hexdump -C sda1.bin -n 4096 -s $((323*4096+11*256))
00143b00 a4 81 00 00 21 00 00 00 72 2e e4 5f 92 19 e4 5f |....!...r.._..._|
00143b10 92 19 e4 5f 00 00 00 00 00 00 01 00 08 00 00 00 |..._............|
00143b20 00 00 00 00 01 00 00 00 05 04 00 00 00 00 00 00 |................|
00143b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
# hexdump -C sda1.bin -n 512 -s $((0x405*4096))
00405000 0a 38 38 37 37 36 36 35 35 34 34 33 33 32 32 31 |.887766554433221|
00405010 31 38 38 37 37 36 36 35 35 34 34 33 33 32 32 31 |1887766554433221|
00405020 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |1...............|
00405030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|