Creating .iso of an OS not working
Posted: Sun Apr 26, 2015 7:28 am
Hi ,
I followed the steps shown in http://wiki.osdev.org/Bare_Bones and able to run it successfully on QEMU.
Now I want to run it from a bootable USB.
Now problem is that on the above link it has mentioned how to create .iso image but it is actually creating .bin image.
myos.bin works perfectly with QEMU. But when I create bootable usb , using
it says bootable image not found.
How do I create myos.iso? and why doesn't it create an iso image even though it is mentioned to create the .iso in
What should be the exact steps I should follow to create bootable usb from myos.bin?
I followed the steps shown in http://wiki.osdev.org/Bare_Bones and able to run it successfully on QEMU.
Now I want to run it from a bootable USB.
Now problem is that on the above link it has mentioned how to create .iso image but it is actually creating .bin image.
Code: Select all
mkdir -p isodir
mkdir -p isodir/boot
cp myos.bin isodir/boot/myos.bin
mkdir -p isodir/boot/grub
cp grub.cfg isodir/boot/grub/grub.cfg
grub-mkrescue -o myos.iso isodir
Code: Select all
sudo dd if=myos.bin of=/dev/sdb && sync
it says bootable image not found.
How do I create myos.iso? and why doesn't it create an iso image even though it is mentioned to create the .iso in
Code: Select all
grub-mkrescue -o myos.iso isodir