Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to write into USB boot sector? [closed]

Tags:

nasm

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.

like image 744
Saravanan Avatar asked Oct 15 '25 08:10

Saravanan


1 Answers

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

like image 191
Mika Lammi Avatar answered Oct 19 '25 15:10

Mika Lammi