bootable floppy image
Posted: Mon Jan 14, 2008 6:26 pm
greetings to all fellow developers!
i gotta a slight problem deploying my little operating system. i managed to get it run using a GRUB bootloader and now i'm trying to develop my own, 2 stage, loader. i have a blank, FAT formatted floppy image which i want to make bootable. when i was using GRUB floppy, i simply mounted it, copied my kernel.bin and umounted... the problem is that now, when i transfer raw stage1 binary data to the image
then mount it (it doesn't complain about missing filesystem, 'cause i have the boot device properties well set), i cannot copy my stage2 binary to the floppy because the shell complains that it's full,which is nonsense... i tried to reverse the process (i.e. first mount - copy stage2 binary - umount and then dd my stage1 to the image) and stage1 is working well until i query it for the stage2 binary, which it don't find on the disk. i suppose there is something wrong with the raw data copy to the bootsector (that it destroys the FAT or so) does anyone here met this before? or better, doesn't somewhere lay a tool similar to iso image editors which would allow me to edit the bootsector and add files to the floppy image? i searched the web but not found anything for linux. windows has plenty of utils available but i'd prefer to continue developing under linux 'cause i have now quite a large shell-script toolbox for building my OS which won't be fully portable to win.
thanx for any useful answer![/code]
i gotta a slight problem deploying my little operating system. i managed to get it run using a GRUB bootloader and now i'm trying to develop my own, 2 stage, loader. i have a blank, FAT formatted floppy image which i want to make bootable. when i was using GRUB floppy, i simply mounted it, copied my kernel.bin and umounted... the problem is that now, when i transfer raw stage1 binary data to the image
Code: Select all
dd if=stage1.bin of=floppy.img
thanx for any useful answer![/code]