Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Hi guys,
for the time now I tested my OS with QEMU, but now i want to test it on real hardware. I only have CDs at home wich you can only burn 1 time, so every time I will test my OS 1 CD would be wasted. Thats why I want to make a bootable USB stick which is obviously reusable. I have no clue how to make one of these USB Sticks. I cannot find any tutorial on this and I am lost now. Can someone help me pls
Try to dd your disk image directly to your USB stick. Most BIOSes should accept it. Make sure to write it to the disk device itself, not the partirion (for example /dev/sdf and not /dev/sdf1). If you are on Windows, use a tool like Win32 Disk Imager or something like that.
The other option is to use USB -> SATA adapter on your development machine and write your image directly to HDD/SSD. Then just connect it to your target machine using SATA cable. eSATA port would be even more convenient if you have one in your target machine.
Your image size doesn't have to match your physical media size. It should just fit on it.
to keep my USB stick usable for something other than testing my os, i installed grub2 on it and compiled my kernel in multiboot format, and you have to add an entry in the grub.cfg file like that:
HayJayDee wrote:I cannot find any tutorial on this and I am lost now. Can someone help me pls
Here's an example mkimg.c on how to create an image (hybrid, works for USB sticks and CDROMs too). If you're on Windows, you can also use BenLunt's tool. To write out the generated image file to an USB stick, you can use the "dd" command, or if you prefer a windowed app, use USBImager (available on Linux, Windows, MacOSX).