There's a really cool new command that comes with GRUB 2 which replaces about a dozen or so other commands and it's designed specifically for automatically making an .iso file with GRUB 2 in it or a GRUB 2 floppy disc image!
I haven't tried the floppy disc option yet as I don't use floppy discs so much anymore, I'm getting too many 'dud' disks, I think the quality has gone down or I'm not able to source a decent brand.
I can say that the grub-mkconfig command is great for making an .iso image for burning to a CD though! If we use the --overlay=/boot/grub option it'll give us our own GRUB Menu complete with splashimage if we have one too.
Code:
grub-mkrescue --overlay=/boot/grub GRUB2CD.iso
Maybe we can get together and figure our how to use the same command with the right options for creating a floppy disc image.
Is anyone interested?
I'm not sure but I think we need to include the --image-type=TYPE option and --emulation=TYPE option if we want to make a floppy disc image.
Maybe like:
Code:
grub-mkrescue --overlay=/boot/grub --image-type=floppy --emulation=eltorito GRUB2.img
That was only a guess, maybe I'm wrong but I'll start playing with that and see if I can get it to work ...
... anyone else wanna join in and help?
EDIT, Silly me, emulation type is for CD-ROM only, we don't need that for making a floppy, this seems to do something good judging by the terminal feedback,
Code:
grub-mkrescue --overlay=/boot/grub --image-type=floppy GRUB2.img
Can anyone make a floppy disc and try it out to confirm that it really works?
To make the copy the image file to the floppy disc one would use a command like the following,
Code:
dd if=GRUB2.img of=/dev/fd0
Bookmarks