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,
I'm trying to develop an OS, I'm on the brokenthorn tutorial, on the FAT12 part, I try to make a FAT12 floppy, I get here : [url]http://wiki.osdev.orgLoopback_Device#Floppy_Disk_Images_With_FAT12[/url] . And then I try to make /dev/loop0 a bootable floppy, I try using
but when I try to use bochs with /dev/loop0 as a bootable floppy it just tells me no bootable device. If someone knows how to do it correctly I would really like him to help me.
Best regards,
PS : sorry for my bad english
Last edited by f222 on Mon Nov 16, 2015 7:06 am, edited 1 time in total.
The error is always between the chair and the keyboard
f222 wrote:but when I try to use bochs with /dev/loop0 as a bootable floppy it just tells me no bootable device.
You're trying to boot the image file behind /dev/loop0 and not /dev/loop0 itself, right?
The data written by mkdosfs is bootable; it displays a message and halts. What happens if you try to boot the disk before putting your boot sector on it?
If bochs is able to boot the blank disk created by mkdosfs but not your boot sector, there is a problem with your boot sector.
f222 wrote:I understood that, but is it really useful to be in FAT12?
If you want the disk to be read by an existing OS then maybe... EXT2 is also a choice for *NIX based OSes...
I prefer FAT as I can mount the image and copy files over without writing utilities... (and I've avoided EXTx due to lack of Windows drivers, though I am actually unsure why that's my case as I only use linux unless I want to play a game...)
BASICFreak wrote:(and I've avoided EXTx due to lack of Windows drivers, though I am actually unsure why that's my case as I only use linux unless I want to play a game...)
I haven't used Windows (apart from at work) for a couple of years now, but when I did I found ext2fsd worked fine.