Page 1 of 1
Floppy Iamge creation on Ubuntu
Posted: Wed Jun 23, 2010 3:41 pm
by Atom
mI'm reading the JamesM's kernel development tutorials,however what's the program that i can make my floppy image with GRUB?
Re: Floppy Iamge creation on Ubuntu
Posted: Wed Jun 23, 2010 4:13 pm
by NickJohnson
You loopback mount (mount -o loop) a 1.44 MB file formatted as FAT, then install grub where it is mounted. The file is then a usable floppy image.
Re: Floppy Iamge creation on Ubuntu
Posted: Wed Jun 23, 2010 4:50 pm
by Tosi
To setup a loopback device you need to first create a blank image. Once you set that up, use mkdosfs if you want a FAT, or mke2fs if you want ext2 for example.
Luckily, there's a whole article on the wiki about it, and it's even
linked to from the Main Page.
Re: Floppy Iamge creation on Ubuntu
Posted: Wed Jun 23, 2010 5:10 pm
by Ready4Dis
To create it, you simply:
dd if=/dev/zero of=floppy.img bs=512 count=2800
This will create an image, called floppy.img that is 1.4mb. After that, you can do the loopback mount, and start adding stuff to it (again, you can keep using dd to write something like your bootsector to it, or install grub, etc).