qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kashyap Chamarthy <kchamart@redhat.com>
To: Laszlo Ersek <lersek@redhat.com>
Cc: pbonzini@redhat.com, Peter Jones <pjones@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Booting a guest with OVMF
Date: Tue, 10 Jun 2014 23:33:27 +0530	[thread overview]
Message-ID: <20140610180305.GQ8813@tesla> (raw)
In-Reply-To: <539740D2.9060303@redhat.com>

On Tue, Jun 10, 2014 at 07:30:58PM +0200, Laszlo Ersek wrote:
> On 06/10/14 19:16, Kashyap Chamarthy wrote:

[. . .]

> > 
> > Yes, I can, but will have to wait till tomorrow -- the contents of the
> > script came down to 1.6G after trying to make an ISO as below.
> > 
> >     $ sudo dd bs=1k if=/dev/sdb2 of=fed-min2.iso conv=sparse
> 
> (1) I think you should just format the disk image into a regular file,
> rather than dumping it to a USB stick, 

Assuming I'm reading you correctly, the above script writes the OS
content directly to USB stick, I didn't dump to it from a disk image
file.

> and then dumping it back from there.
> 
> (2) Even if you opt for the USB "detour", the above dd command line is
> incorrect. You selected a specific partition on the USB stick as input
> block device. That's wrong, we need to see the entire disk (partition
> table, EFI system partition etc).

You're right (sdb1 has "EFI System"):

    $ sudo fdisk -l /dev/sdb
    
    Disk /dev/sdb: 3.7 GiB, 4004511744 bytes, 7821312 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: C6CEC927-FA8F-4958-A223-A7BCE283241E
    
    Device           Start          End   Size Type
    /dev/sdb1         2048      1046527   510M EFI System
    /dev/sdb2      1048576      7819263   3.2G unknown


I'll do a redump of /dev/sdb as below:

    $ sudo dd bs=1k if=/dev/sdb of=fed-min.iso conv=sparse

Thanks for pointing that out.

-- 
/kashyap

  reply	other threads:[~2014-06-10 18:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-10 13:04 [Qemu-devel] Booting a guest with OVMF Kashyap Chamarthy
2014-06-10 15:18 ` Laszlo Ersek
2014-06-10 16:10   ` Kashyap Chamarthy
2014-06-10 16:26     ` Laszlo Ersek
2014-06-10 17:16       ` Kashyap Chamarthy
2014-06-10 17:30         ` Laszlo Ersek
2014-06-10 18:03           ` Kashyap Chamarthy [this message]
2014-06-10 17:26     ` Laszlo Ersek
2014-06-11 16:35 ` Laszlo Ersek
2014-06-11 18:11   ` Kashyap Chamarthy

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=20140610180305.GQ8813@tesla \
    --to=kchamart@redhat.com \
    --cc=lersek@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=pjones@redhat.com \
    --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).