4

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.

Saravanan
  • 235
  • 3
  • 9
  • possible duplicate of [How can i put a compiled boot sector onto a USB stick or disk?](http://stackoverflow.com/questions/1894843/how-can-i-put-a-compiled-boot-sector-onto-a-usb-stick-or-disk) – Sully May 08 '14 at 11:33

1 Answers1

3

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

Community
  • 1
  • 1
Mika Lammi
  • 1,278
  • 9
  • 21