views:

11

answers:

0

Hi,

I use the linux kernel module CONFIG_EDD. I would change the mbr_signature, I can do that with the tool hexedit but I have to integrate in a script. I use this command:

dd if=/dev/mydev bs=4 count=1 skip=110 | hexdump -e '"0x%08x\n"'

to recover it without using the file (/sys/firmware/edd/...) created by EDD.

I wonder how I can create a binary file containing the signature mbr I want and send it on a device with dd.