From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCoNE-0005PQ-2T for qemu-devel@nongnu.org; Wed, 29 Sep 2004 20:00:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCoNC-0005Oa-S8 for qemu-devel@nongnu.org; Wed, 29 Sep 2004 20:00:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCoNC-0005OU-Oe for qemu-devel@nongnu.org; Wed, 29 Sep 2004 20:00:38 -0400 Received: from [212.16.62.51] (helo=mail.13thfloor.at) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCoGW-0008BE-Km for qemu-devel@nongnu.org; Wed, 29 Sep 2004 19:53:44 -0400 Date: Thu, 30 Sep 2004 01:53:42 +0200 From: Herbert Poetzl Subject: Re: [Qemu-devel] Boot options. Message-ID: <20040929235341.GD12267@MAIL.13thfloor.at> References: <200409292157.49085.martin@liga.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409292157.49085.martin@liga.dk> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Martin Moeller Cc: qemu-devel@nongnu.org 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