From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuQOf-0004JA-4R for qemu-devel@nongnu.org; Tue, 10 Jun 2014 14:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuQOX-00055C-Lj for qemu-devel@nongnu.org; Tue, 10 Jun 2014 14:03:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuQOX-00054f-CZ for qemu-devel@nongnu.org; Tue, 10 Jun 2014 14:03:37 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5AI3Zub013771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 10 Jun 2014 14:03:36 -0400 Date: Tue, 10 Jun 2014 23:33:27 +0530 From: Kashyap Chamarthy Message-ID: <20140610180305.GQ8813@tesla> References: <20140610125650.GJ8813@tesla> <539721BD.8010700@redhat.com> <20140610161048.GM8813@tesla> <539731CA.5040108@redhat.com> <20140610171640.GO8813@tesla> <539740D2.9060303@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <539740D2.9060303@redhat.com> Subject: Re: [Qemu-devel] Booting a guest with OVMF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: pbonzini@redhat.com, Peter Jones , qemu-devel@nongnu.org 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