All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Mauricio Tavares <raubvogel@gmail.com>, kvm@vger.kernel.org
Subject: Re: Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing
Date: Fri, 06 Mar 2015 19:02:25 +0100	[thread overview]
Message-ID: <54F9EBB1.1040603@redhat.com> (raw)
In-Reply-To: <CAHEKYV6f5qxacWCbiKfu-tfLwiB7LA-FPcYxkr+evVwoo_AAZg@mail.gmail.com>



On 06/03/2015 18:29, Mauricio Tavares wrote:
>> > My objective is to clone a partition of Windows 7 from a physical disk.
>> > (not the entire disk as it is a 256GB disk and my disk on my host is as
>> > well a 256GB so I would not get a byte of free space doing that! only
>> > need to clone the root partition of Windows which is around 80GB).
>> >
>> > When I plug the disk into my host, I tried a
>> >
>> > |dd if=/dev/sda2 of=image.raw bs=512|
>> >
>> > (where /dev/sda2 is my 80GB Windows Partition).
>> >
>> > If I tried to do a
>> >
>> > |qemu-system-x86_64 -enable-kvm -vnc :0 -k fr image.raw|
>> >
>> > But my KVM is told me
>> >
>> > |Booting from Hard Disk...|
>> >
>> > and nothing more!
>> >
>       Don't you have to copy the first few sectors of the hard drive?
> 

Yes, and for UEFI you also need to copy the EFI system partition.

Paolo

      reply	other threads:[~2015-03-06 18:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-06 17:13 Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing Ben
2015-03-06 17:29 ` Mauricio Tavares
2015-03-06 18:02   ` Paolo Bonzini [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=54F9EBB1.1040603@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=raubvogel@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.