From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dus2r-0005Af-CC for qemu-devel@nongnu.org; Tue, 19 Jul 2005 09:22:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dus2n-00058i-Hm for qemu-devel@nongnu.org; Tue, 19 Jul 2005 09:21:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dus2n-00058R-Du for qemu-devel@nongnu.org; Tue, 19 Jul 2005 09:21:57 -0400 Received: from [128.8.10.163] (helo=po1.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dus92-0008IK-Cg for qemu-devel@nongnu.org; Tue, 19 Jul 2005 09:28:24 -0400 Received: from jbrown.mylinuxbox.org (jma-box.student.umd.edu [129.2.237.180]) by po1.wam.umd.edu (8.12.10/8.12.10) with ESMTP id j6JDIr1e014209 for ; Tue, 19 Jul 2005 09:18:53 -0400 (EDT) Date: Tue, 19 Jul 2005 09:18:52 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] making a raw disk image Message-ID: <20050719131852.GA12450@jbrown.mylinuxbox.org> References: <1gzxvmt.1pa4ox51ovkbpcN%takeme2your@rocketmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1gzxvmt.1pa4ox51ovkbpcN%takeme2your@rocketmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.