os-tutorial icon indicating copy to clipboard operation
os-tutorial copied to clipboard

Not a bootable disk

Open amiyadav opened this issue 4 years ago • 7 comments

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

amiyadav avatar Sep 06 '21 18:09 amiyadav

Have you tried qemu boot_sect_hello.bin?

betapictoris avatar Sep 06 '21 22:09 betapictoris

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

amiyadav avatar Sep 07 '21 04:09 amiyadav

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?

betapictoris avatar Sep 07 '21 15:09 betapictoris

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

amiyadav avatar Sep 07 '21 16:09 amiyadav

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?

betapictoris avatar Sep 08 '21 22:09 betapictoris

@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

swap2ag avatar Sep 10 '21 08:09 swap2ag

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

epic-coder-64 avatar Jun 26 '23 13:06 epic-coder-64