Hi,
I was wondering if there is a way to create a bootable floppy disk image without first writing your bootloader/kernel to an actual floppy disk (I don't have access to a floppy drive unfortunatley!).
Thanks,
Puff
Creating a floppy disk image
Hi,
If you are using Windows, see Virtual Floppy Drive. I am not very familiar with Linux, but believe the dd command combined with a loopback device is what you would want there.
Cheers,
Adam
If you are using Windows, see Virtual Floppy Drive. I am not very familiar with Linux, but believe the dd command combined with a loopback device is what you would want there.
Cheers,
Adam
Yea, under Linux use something like
to make a blank 1.44mb floppy image called "floppy.img".
Code: Select all
dd if=/dev/zero of=./floppy.img bs=1024 count=1440
Re: Creating a floppy disk image
I wrote: For quick making and changing a floppy image you can use fasm and special include file. For example,Puffy wrote:Hi,
I was wondering if there is a way to create a bootable floppy disk image without first writing your bootloader/kernel to an actual floppy disk (I don't have access to a floppy drive unfortunatley!).
Thanks,
Puff
Code: Select all
include "mkfloppy.inc"
file "bootcode.bin", 512
; fat1
db 0F0h, 0FFh, 0FFh, 9*512-3 dup 0
; fat2
db 0F0h, 0FFh, 0FFh, 9*512-3 dup 0
; root
dent io, "IO SYS", FA_RO or FA_HID or FA_SYS or FA_ARC
dent msdos, "MSDOS SYS", FA_RO or FA_HID or FA_SYS or FA_ARC
dent command, "COMMAND COM", FA_ARC
dent drvspace, "DRVSPACEBIN", FA_RO or FA_HID or FA_SYS or FA_ARC
dent autoexec, "AUTOEXECBAT", FA_ARC
dent command2, "COMMAND", FA_DIR
rb 33*512-$
; data
stof io, "content/IO.SYS"
stof msdos, "content/MSDOS.SYS"
stof command, "content/COMMAND.COM"
stof drvspace, "content/DRVSPACE.BIN"
stof autoexec, "content/AUTOEXEC.BAT"
defdir command2
{
dent fdisk, "FDISK EXE", FA_ARC
dent format, "FORMAT COM", FA_ARC
dent sys, "SYS COM", FA_ARC
dent defrag, "DEFRAG EXE", FA_ARC
dent scandisk1, "SCANDISKEXE", FA_ARC
dent scandisk2, "SCANDISKINI", FA_ARC
}
stod command2, root
stof fdisk, "content/COMMAND/FDISK.EXE"
stof format, "content/COMMAND/FORMAT.COM"
stof sys, "content/COMMAND/SYS.COM"
stof defrag, "content/COMMAND/DEFRAG.EXE"
stof scandisk1, "content/COMMAND/SCANDISK.EXE"
stof scandisk2, "content/COMMAND/SCANDISK.INI"
rb 2*80*18*512-$
Re: Creating a floppy disk image
egos wrote:I wrote: For quick making and changing a floppy image you can use fasm and special include file. For example,Puffy wrote:Hi,
I was wondering if there is a way to create a bootable floppy disk image without first writing your bootloader/kernel to an actual floppy disk (I don't have access to a floppy drive unfortunatley!).
Thanks,
PuffLFN not yet supported.Code: Select all
include "mkfloppy.inc" file "bootcode.bin", 512 ; fat1 db 0F0h, 0FFh, 0FFh, 9*512-3 dup 0 ; fat2 db 0F0h, 0FFh, 0FFh, 9*512-3 dup 0 ; root dent io, "IO SYS", FA_RO or FA_HID or FA_SYS or FA_ARC dent msdos, "MSDOS SYS", FA_RO or FA_HID or FA_SYS or FA_ARC dent command, "COMMAND COM", FA_ARC dent drvspace, "DRVSPACEBIN", FA_RO or FA_HID or FA_SYS or FA_ARC dent autoexec, "AUTOEXECBAT", FA_ARC dent command2, "COMMAND", FA_DIR rb 33*512-$ ; data stof io, "content/IO.SYS" stof msdos, "content/MSDOS.SYS" stof command, "content/COMMAND.COM" stof drvspace, "content/DRVSPACE.BIN" stof autoexec, "content/AUTOEXEC.BAT" defdir command2 { dent fdisk, "FDISK EXE", FA_ARC dent format, "FORMAT COM", FA_ARC dent sys, "SYS COM", FA_ARC dent defrag, "DEFRAG EXE", FA_ARC dent scandisk1, "SCANDISKEXE", FA_ARC dent scandisk2, "SCANDISKINI", FA_ARC } stod command2, root stof fdisk, "content/COMMAND/FDISK.EXE" stof format, "content/COMMAND/FORMAT.COM" stof sys, "content/COMMAND/SYS.COM" stof defrag, "content/COMMAND/DEFRAG.EXE" stof scandisk1, "content/COMMAND/SCANDISK.EXE" stof scandisk2, "content/COMMAND/SCANDISK.INI" rb 2*80*18*512-$
Well, uh.. maybe I'm misinterpreting something, but where is said include file?
Re: Creating a floppy disk image
mkfloppy.zipcg123 wrote:Well, uh.. maybe I'm misinterpreting something, but where is said include file?
If you have seen bad English in my words, tell me what's wrong, please.