At 11:02 PM 6/13/00 +0200, Claudio Clemens
<[EMAIL PROTECTED]> wrote:
>I thing this is trivial. Or is it more dificult than I think? 
>FileOutputStream fos=(/dev/fd0);
>
>Okay, this is not the right syntax, but you know what I mean, doesn't you?

Is that right? If we assume we have one payload for GRUB and another for
Etherboot (etc.), then creating an actual boot diskette with Java on Linux
becomes something like this (?):

  public void createBootDisk( byte[] payload ) {
    OutputStream output;
    try {
      output = new FileOutputStream( "/dev/fd0" );
    }
    catch( IOException e ) {
      // uh oh.
      return;
    }

    try {
      output.write( payload );
    }
    catch( IOException e ) {
      // uh oh.
    }

    try {
      output.close();
    }
    catch( IOException e ) {
      // uh oh.
    }
  }

I have downloaded a GRUB boot image; but, I've been unable to boot with
GRUB. I understand how Etherboot works. GRUB is still a mystery.


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to