Using DD to copy uboot

That was it. I knew I had found a unix utility to search for text.

So just add to my pipeline?
dd if=/dev/da0 bs=512 count=32770 | hd | strings -a
 
I was thinking that I need to add a way to search for text inside binary disk too.
Tools mentioned here can do that for sure. On Linux I use either strings or grep. I'm not sure if grep can be used on FreeBSD nowadays, I think the perl regex was a problem there if my memory serves me well.

Depending on what you do you could use editors/bvi. You can skip and set size too, that is really neat feature. Just beware of the sector size if you do use that on an actual disk.
With xxd you can do this (searching for "EFI"): xxd -os -g0 /dev/ada0| grep 454649 | head -1
 
Back
Top