UNCOMPRESS vmlinuz to vmlinux

commandline session

root@debian:/boot# od -A d -t x1 vmlinuz-3.2.0-3-amd64 | grep '1f 8b 08 00'
0018096 00 ff e0 1f 8b 08 00 00 00 00 00 02 03 ec fd 7b
root@debian:/boot# dd if=vmlinuz bs=1 skip=18099 | zcat > vmlinux
dd: opening `vmlinuz': No such file or directory

gzip: stdin: unexpected end of file
root@debian:/boot# dd if=vmlinuz-3.2.0-3-amd64  bs=1 skip=18099 | zcat > vmlinux

gzip: stdin: decompression OK, trailing garbage ignored
dd: writing `standard output': Broken pipe
2785976+0 records in
2785975+0 records out
2785975 bytes (2.8 MB) copied, 28.6663 s, 97.2 kB/s
root@debian:/boot# ls -l vmlinux
-rw-r--r-- 1 root root 116910060 Nov 12 23:20 vmlinux
root@debian:/boot#

Leave a comment

Your email address will not be published. Required fields are marked *