After recently installing linux mint for OS development, I've ran into problems after copying the file to a floppy. First of all, I copy kernel.bin to the root of the floppy and make sure it is its original size. That goes fine. But, when I run off the floppy with virtual box and go into grub and type "kernel /kernel.bin", it gives me the well known error 13. I closed virtualbox and went back to the floppy, to find out that kernel.bin was 0 bytes in size
Any reason why this happens?
Kernel truncates after trying to run it from virtual box
- drunkenfox
- Member
- Posts: 46
- Joined: Tue Mar 13, 2012 10:46 pm
Kernel truncates after trying to run it from virtual box
;goodbye OS, hello BIOS
mov eax, FFFFFFF0h
jmp eax
mov eax, FFFFFFF0h
jmp eax
- NickJohnson
- Member
- Posts: 1249
- Joined: Tue Mar 24, 2009 8:11 pm
- Location: Sunnyvale, California
Re: Kernel truncates after trying to run it from virtual box
I assume you have the floppy loopback-mounted somewhere. Did you unmount it properly before running the VM?
- drunkenfox
- Member
- Posts: 46
- Joined: Tue Mar 13, 2012 10:46 pm
Re: Kernel truncates after trying to run it from virtual box
Alright, I'll use sync when I get home today. Just read about it and it should solve the problem.
;goodbye OS, hello BIOS
mov eax, FFFFFFF0h
jmp eax
mov eax, FFFFFFF0h
jmp eax
- drunkenfox
- Member
- Posts: 46
- Joined: Tue Mar 13, 2012 10:46 pm
Re: Kernel truncates after trying to run it from virtual box
Thanks bluemoon, it worked
;goodbye OS, hello BIOS
mov eax, FFFFFFF0h
jmp eax
mov eax, FFFFFFF0h
jmp eax