Step 1: Get from offset 0x1000000(byte) and 512 bytes image.
$ sudo dd if=/dev/disk2 bs=512 count=1 skip=32768 of=./test.img
Step 2: Check the hex files
1 | hexdump ./test.img |
Step 3: Unmount disk2
1 | diskutil unmount /dev/disk2s1 |
Step 4: Use UltraEdit to change it and write back to disk
sudo dd if=./test_Mod.img of=/dev/disk2 bs=512 count=1 oseek=32768