0

How do I write a bootsector to a cd using linux? I made the boot sector in nasm and I have compiled the binary. I have tried to use dd from linux and I tried partcopy but nothing is working, not even masteriso.

Siguza
  • 21,155
  • 6
  • 52
  • 89
gabemai
  • 105
  • 1
  • 6

1 Answers1

0

You want to use dd. Try this:

dd status=noxfer conv=notrunc bs=512 count=1 if=mybootloader.bin of=/dev/cddevice

Replace cddevice with your /dev entry for the CD, or with the name of a disk image file.

Linuxios
  • 34,849
  • 13
  • 91
  • 116