Wednesday, February 9, 2011

Pure Siesta Flow #5

$ hd Siesta_Flow_v1.6.dfu | grep hsqs
00123b70 68 73 71 73 a2 01 00 00 00 00 00 00 00 00 00 00 |hsqs¢...........|

$ hexdump -s $((0x00123b70+62)) -n 4 -e '1/1 "%02X"' Siesta_Flow_v1.6.dfu; echo
00460727

$ echo $((0x270746))
2557766

$ dd if=Siesta_Flow_v1.6.dfu bs=1 skip=$((0x00123b70)) count=66 2> /dev/null | file -
/dev/stdin: Squashfs filesystem, little endian, version 3.0, 2557766 bytes, 418 inodes, blocksize: 65536 bytes, created: Mon Jan 1 01:00:00 2001

$ echo "2557766 / 65536" | bc -l
39.02841186523437500000

$ echo $((65536 * 40))
2621440

$ dd if=Siesta_Flow_v1.6.dfu of=Siesta_Flow_v1.6.sqsh ibs=1 skip=$((0x00123b70)) count=2621440
2621440+0 records in
5120+0 records out
2621440 bytes (2.6 MB) copied, 0.907937 s, 2.9 MB/s

$ unsquashfs -s Siesta_Flow_v1.6.sqsh
Found a valid little endian SQUASHFS 3:0 superblock on Siesta_Flow_v1.6.sqsh.
Creation or last append time Mon Jan 1 01:00:00 2001
Filesystem size 2497.82 Kbytes (2.44 Mbytes)
Block size 65536
Filesystem is not exportable via NFS
Inodes are compressed
Data is compressed
Fragments are compressed
Check data is not present in the filesystem
Fragments are present in the filesystem
Always_use_fragments option is not specified
Duplicates are removed
Number of fragments 13
Number of inodes 418
Number of uids 2
Number of gids 1

$ sudo unsquashfs -d Siesta_Flow_v1.6 Siesta_Flow_v1.6.sqsh
Parallel unsquashfs: Using 4 processors
380 inodes (461 blocks) to write

[=============================================================================================================|] 461/461 100%
created 85 files
created 38 directories
created 94 symlinks
created 201 devices
created 0 fifos

No comments:

Post a Comment