How do I make a bootable USB out of .bin file I was following the instructions in https://createyourownos.blogspot.com/ to make my own tiny OS. I managed to do the compile and the assemble step, but how can I make a bootable USB out of .bin file?
It is not in general possible to create a bootable USB from any &quot;.bin&quot; file.
As per your comments you are not willing to detail how you arrived at the &quot;.bin&quot; file, how it was created, what it contains, or anything like that - we can then conclude that it is not possible for you to create a bootable USB from this &quot;.bin&quot; file.
UPDATE: You have since updated your comments with the source of your &quot;.bin&quot; file being from a specific blog-tutorial on making a simple operating system. In this case your operating system is 32-bit, where Macs today commonly boot 64-bit software. Your operating system also relies on the BIOS to actually do something, but this is not the way modern computers work.
I would suggest to you to keep using qemu or similar to boot your operating system in. Alternatively, buy an old, simple PC that you can tinker with. This will give you fewest headaches.
Alternatively, you need to ensure that the Mac enables the legacy BIOS CSM (compatibility support module) while booting. This can be done by ensure your disk has one of the old MBR partition tables (i.e. not GPT) and that your partition is set as bootable. You operating system then needs to moved into that partition accordingly.
Depending on how old your Mac is, you probably want to go along the road of loading rEFIt in first, and install the old legaby-BIOS version of GRUB 2 as a boot chain to ultimately boot your OS.
If you have the newest M1 Mac, you operating system cannot work at all due to it being 32-bit Intel only. If you have a newer Mac with T2, you'll need to relax secure boot restrictions in order to get going.