qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Jim C. Brown" <jma5@umd.edu>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] making a raw disk image
Date: Tue, 19 Jul 2005 09:18:52 -0400	[thread overview]
Message-ID: <20050719131852.GA12450@jbrown.mylinuxbox.org> (raw)
In-Reply-To: <1gzxvmt.1pa4ox51ovkbpcN%takeme2your@rocketmail.com>

On Tue, Jul 19, 2005 at 09:03:32AM +0100, U n d e r a c h i e v e r wrote:
> 
> When booting the real hardware, the boot loader is grub IIRC and comes
> up first, then the NT Boot Loader. Can anyone advise on how to turn
> /dev/ide/host0/bus0/target0/lun0/part1 into a bootable qemu image? 
> 

/dev/ide/host0/bus0/target0/lun0/part1 can be copied into a disk image.
Thats ot too hard. fdisk -l /dev/ide/host0/bus0/target0/lun0/disk will
tell you 3 of heads ad #of sectors per track. It will also tell you how
many cylinders you need for the partition. You can easily create a new
table on a disk image and dd the partition into the right place.

However, Windows NT (including 2k and XP) does not like it when you change all
the hardware (esp. the motherboard & IDE controller). Ok, so how do you get
Windows to recognize and work with the new hardware (the one that qemu uses) ?

Short answer: You don't. You can't. You are better off reinstalling win2000
inside of qemu and then moving all your files from the partition to the disk
image.

Long answer: Once installed, Windows has only the minimal drivers required to
boot the hardware on your computer - which happens to be completely different
from what qemu emulates. 
If you really really want to try to set up Windows 2000, try looking at
http://support.microsoft.com/default.aspx?scid=kb;en-us;314082 and
http://www.duxcw.com/faq/win/move2K.htm, which explains part of the problem in
greater detail as well as some possible workarounds. Note that changing
the drivers for the IDE and motherboard may not be enough - there may be other
hardware issues as well. (E.g. keep that copy of win2k on the partition until
you are sure that the copy in the disk image has enough drivers to boot into
normal mode).

--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

  reply	other threads:[~2005-07-19 13:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19  8:03 [Qemu-devel] making a raw disk image U n d e r a c h i e v e r
2005-07-19 13:18 ` Jim C. Brown [this message]
2005-07-22  9:09   ` [Qemu-devel] " U n d e r a c h i e v e r
2005-07-22 13:16     ` André Braga
2005-07-22 15:50       ` Jim C. Brown
2005-07-23  4:42         ` André Braga

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=20050719131852.GA12450@jbrown.mylinuxbox.org \
    --to=jma5@umd.edu \
    --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).