qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Herbert Poetzl <herbert@13thfloor.at>
To: Martin Moeller <martin@liga.dk>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Boot options.
Date: Thu, 30 Sep 2004 01:53:42 +0200	[thread overview]
Message-ID: <20040929235341.GD12267@MAIL.13thfloor.at> (raw)
In-Reply-To: <200409292157.49085.martin@liga.dk>

On Wed, Sep 29, 2004 at 09:57:48PM +0200, Martin Moeller wrote:
> Hi all.
> 
> In some rare cases I would like to be able to boot off what will essentially 
> be /dev/hdc in Qemu (this is because the machine the image I boot is meant 
> for uses hdc for flash cards).
> In 0.6.0 that is not possible since -boot c = /dev/hda and -boot d = cdrom.
> Could this functionality be expanded somewhat without too much trouble?
> I guess something like -boot hd:1-4 (maybe hd:0-3?)  and ditto cd: or cdrom: 
> entries? Can I somehow force this to happen? Maybe with a floppy image 
> booting off hdc? 

probably using a bootload might be sufficient,
luckily there are many different bootloaders
available (like lilo or grub) which can be used
for this ...

e.g. from the grub manual:

     # cd /usr/share/grub/i386-pc
     # dd if=stage1 of=/dev/fd0 bs=512 count=1
     1+0 records in
     1+0 records out
     # dd if=stage2 of=/dev/fd0 bs=512 seek=1
     153+1 records in
     153+1 records out
     #

now adapting this a little, you get

     # cat stage1/stage1 stage2/stage2 >grub.fd

and you can boot that with

     # qemu -m 16 -fda grub.fd -boot a

HTH,
Herbert

> Thanks for a great project. Immensely interesting...
> 
> /Martin. 
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

      reply	other threads:[~2004-09-30  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-29 19:57 [Qemu-devel] Boot options Martin Moeller
2004-09-29 23:53 ` Herbert Poetzl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040929235341.GD12267@MAIL.13thfloor.at \
    --to=herbert@13thfloor.at \
    --cc=martin@liga.dk \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).