qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] it works !
@ 2004-03-25 19:56 vaise
  2004-03-26  9:03 ` Jean-Michel POURE
  0 siblings, 1 reply; 3+ messages in thread
From: vaise @ 2004-03-25 19:56 UTC (permalink / raw)
  To: qemu-devel

Here is a little trick to allow "already installed" partitions to boot.
(As I said, with only "dd if=/dev/hda of=file.img count=6M" and "qemu 
file.img", bootloaders crash)

1- create and install the partition in "normal mode", ( on hda1 for example )
(do not do the same mistake as me, prepare a linux boot disk before !!!)
make a copy of hda1 under linux, skiping the first 63 blocks :
dd if=/dev/hda of=original.img count=6M skip=63

2- prepare the file "qemu_hd.img" with qemu .fdisk. format it, and install the 
OS too. after the reboot, it should fail, complaining about a memory 
allocation problem. Don't care, shut down.

3- use the option "seek" on the two files :
dd if=original.img of=qemu_hd.img seek=63
(qemu_hd.img must already have been created, as said before)

4- qemu -hda=qemu_hd.img -boot c
Youpi !

notice : harware detection does not work yet.
notice 2 : block size on mandrake 10 is 512, not 1024 !

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-26 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25 19:56 [Qemu-devel] it works ! vaise
2004-03-26  9:03 ` Jean-Michel POURE
2004-03-26 12:18   ` Richard Zidlicky

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).