title: OS Development - booting from floppy drive using qemu
body: <p>I have been reading BrokenThorn's OS development tutorial and am at the part of creating and loading the second stage bootloader. The tutorial is for Windows, but I am doing this in Linux(Ubuntu 13.04).</p>
  
  <p>This is what I have done:</p>
  
  <ul>
  <li>Created file <code>floppy.img</code> under <code>~/Documents/floppy</code> with the <code>mkfs.vfat</code> command</li>
  <li>Compiled by <code>boot.asm</code> file using nasm giving me <code>boot.bin</code></li>
  <li>Then I ran this command : <code>dd if=boot.bin of=~/Documents/floppy/floppy.img bs=512 count=1</code></li>
  </ul>
  
  <p>Thus I have the floppy image with the first stage bootloader. On starting that using qemu, it works fine. </p>
  
  <p>However, after I create the second stage bootloader, (if I am correct)I would have to mount the <code>floppy.img</code> and copy stage 2 on to the mounted filesystem. In such a case, how can one boot a mounted floppy using qemu ? Is it even possible ? If not, how do I work with the second stage bootloader.</p>
  
  <p>Please forgive me for any stupid assumption/question as I am new with this.</p>