Easier way to create floppy disk images?

Posted by Bryan on Super User See other posts from Super User or by Bryan
Published on 2013-11-11T14:38:42Z Indexed on 2013/11/11 16:00 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I'm using Vyatta routers with KVM and want to attach a floppy drive with a config file for Vyatta when I boot the image. I'll be doing this over and over again, and as such am looking for an automated way of creating the floppy images.

Right now, I'm doing the following:

  1. Create floppy image with qemu-img create
  2. Format floppy image with mkdosfs
  3. Mount floppy image with mount -t fat /tmp/floppy.img /media/floppy
  4. Populate floppy image with cp -r /tmp/configs/ /media/floppy/
  5. Unmount floppy image with umount /media/floppy
  6. Save floppy image with mv /tmp/floppy.img ~/floppies/

Any chance there's an easier way to do this?! Perhaps a shortcut application that I can give a directory to and it will do all this for me w/out having to mount the image?

© Super User or respective owner

Related posts about linux

Related posts about boot