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)
How to change a bootable floppy image for Bochs in Linux
Re:How to change a bootable floppy image for Bochs in Linux
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.
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.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact: