tutorial - bootloaders4
Posted: Tue Jan 15, 2008 12:38 am
hi, i gotta a little problem deploying code from bootloaders4 tutorial. i'm working under linux so there is no partcopy or floppy imaging software for me so i use following technique:
1. i mount an image of an empty floppy disk (i don't have FDD - notebook)
2. i copy the stage 2 binary to the disk
3. i umount the image
4. i copy raw binary data to the bootsector using
but the stage1 complains that it can't locate the file on the floppy. when i reverse the process (i.e. first dd stage1, then try to mount & copy stage2), shell complains that it can't copy the file to the mounted disk because of the lack of free space (which is nonsense). i suppose the problem will be in the dd tool. did anyone here met this problem?[/code]
1. i mount an image of an empty floppy disk (i don't have FDD - notebook)
2. i copy the stage 2 binary to the disk
3. i umount the image
4. i copy raw binary data to the bootsector using
Code: Select all
dd if=stage1.bin of=floppy.img