Page 1 of 1

How to change a bootable floppy image for Bochs in Linux

Posted: Wed Aug 17, 2005 8:39 am
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)

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

Posted: Wed Aug 17, 2005 12:20 pm
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.

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

Posted: Thu Aug 18, 2005 1:31 am
by Pype.Clicker