I want to try and see how the BIOS detects boot device using the magic number (0xaa55
) by writing
e9 fd ff 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
to the first sector of my pendrive as said in the experiment in the book "Writing a Simple Operating System — from Scratch" (pg-4).
Can this be achieved by using dd
command alone? I am using Ubuntu 20.04 LTS