How to change a bootable floppy image for Bochs in Linux

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.
Post Reply
OSMAN

How to change a bootable floppy image for Bochs in Linux

Post by OSMAN »

Hi!

I am writing an OS and I want to test it frequently. I have a floppy image that includes boot sector and file system.

I can mount the floppy image' file system part to a directory whith:
mount -o loop ./floppy.img ./mount
When I move files to the mounted image's directory and then try to:
umout ./mount
the changes won't be written to the original floppy image. How can I get it working? (And I want the Grub's bootable part to be there too)
Curufir

Re:How to change a bootable floppy image for Bochs in Linux

Post by Curufir »

sync before umount to flush changes to the disk.

Use losetup and the raw loop device to put grub in the boot sector.

There's a section in the Wiki that explains how to do it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:How to change a bootable floppy image for Bochs in Linux

Post by Pype.Clicker »

Post Reply