nasmbootsector

how to write into USB boot sector?


I have written a boot sector program using nasm i want load that into my pen drive ( firt 512 byte sector) to make my pen drive bootable and run that simple program.my question is how to write that binary file into my first 512 byte portion of my pen drive.


Solution

  • You can use dd command (see this and this). If you are using Windows, you can find the answer here.