cfenollosa / os-tutorial

How to create an OS from scratch
BSD 3-Clause "New" or "Revised" License
27.28k stars 3.31k forks source link

Not a bootable disk #219

Open amiyadav opened 3 years ago

amiyadav commented 3 years ago

I am running --> qemu-system-x86_64 -drive format=raw,file=boot_sect_hello.bin

But it is showing me

Screenshot 2021-09-07 at 12 02 37 AM
betapictoris commented 3 years ago

Have you tried qemu boot_sect_hello.bin?

amiyadav commented 3 years ago

yeah alone qemu is not working instead I have to use qemu-system-x86_64 boot_sect_hello.bin which gives me Not a bootable disk.

I am doing this on MAC

betapictoris commented 3 years ago

yeah alone qemu is not working instead I have to use qemu-system-x86_64 boot_sect_hello.bin which gives me Not a bootable disk.

I am doing this on MAC

What command are you using to build the boot_sect_hello.bin file?

amiyadav commented 3 years ago

yeah alone qemu is not working instead I have to use qemu-system-x86_64 boot_sect_hello.bin which gives me Not a bootable disk. I am doing this on MAC

What command are you using to build the boot_sect_hello.bin file?

nasm -fbin boot_sect_hello.asm -o boot_sect_hello.bin

betapictoris commented 3 years ago

yeah alone qemu is not working instead I have to use qemu-system-x86_64 boot_sect_hello.bin which gives me Not a bootable disk. I am doing this on MAC

What command are you using to build the boot_sect_hello.bin file?

nasm -fbin boot_sect_hello.asm -o boot_sect_hello.bin

What was the output, if any?

swap2ag commented 3 years ago

@amiyadav Can you place the file boot_sect_hello.bin and the command sequence in a text file and send it across? I can run it on my system (windows/Ubuntu) and confirm the error. If possible, can also get in a google meet to see and debug the issue on your system

epic-coder-64 commented 1 year ago

You appear to be entering the commands correctly, so it is probably a boot sector issue. Can you please provide source to it?