From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ehhJn-0005Z1-8S for mharc-grub-devel@gnu.org; Fri, 02 Feb 2018 14:48:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehhJk-0005YM-OE for grub-devel@gnu.org; Fri, 02 Feb 2018 14:48:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehhJg-0000YB-QR for grub-devel@gnu.org; Fri, 02 Feb 2018 14:48:12 -0500 Received: from mout.gmx.net ([212.227.15.19]:59681) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehhJg-0000WF-Du for grub-devel@gnu.org; Fri, 02 Feb 2018 14:48:08 -0500 Received: from scdbackup.webframe.org ([79.222.38.208]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LikE1-1fIGAT0jzJ-00cvyh; Fri, 02 Feb 2018 11:19:16 +0100 Date: Fri, 02 Feb 2018 11:18:17 +0100 From: "Thomas Schmitt" To: grub-devel@gnu.org Subject: Re: A thread on grub-bug could need attention Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cc: michel@bouissou.net References: <4cc95338-8da7-e953-ff55-175b554771b8@bouissou.net> In-Reply-To: <4cc95338-8da7-e953-ff55-175b554771b8@bouissou.net> Message-Id: <27696785453525870820@scdbackup.webframe.org> X-Provags-ID: V03:K0:N3kEgOE83jOSX0lEq+ce1CAXH4My4ZEHWHSaEsS2jRXK1A8em57 l3M9EzogheV6fquEm3Sn8eti5JlQJsRfQh2xVZwkqdJ97UAgNu8jsrF1VGZHTsr3jZbCxwU p/lCaJMnloTzwJ9czee3ZOzrpVZ9GQx2oj7OGHJqhdEHnylzOXRjIV338t7jNfipihc4VfV gMWuByRv/bcrSOjrYCX7g== X-UI-Out-Filterresults: notjunk:1;V01:K0:x1TE6Ihi4q4=:7bu0xvGcpHZCRTnKIDYcNW Hwb6xHt3GXWZpQo7sn3pthcmAC3CCMQYj1g1QiW9Azp29lt1RDklkbdYwV+yL8I+9J0lmFR9w amSGFxfnSd8yqImyxenzWy5MWtNBVq4Vx2/lED2aHNWUeUKGXJZD+55RJ8auumxCsLDDtP3J5 +anXczHTFjrpBe3ajJq+hVSKCClEqDhvZF6XxMlaQYD0yZ5sjpDAIfcXaiLAw26oN84NQUNFf 4r3PN1HA1iMOIPVjqWvox5Du9+6XK6+bqOCNA4mefz2E7naoImQ6TNKZFzDiK5C58RqHBca/Y CHQk2lziFnjod3wXR2eLyM7uvVtDAf7RPq7IqQ9QV3Y8SKCbD4/aj3SuwpmNJIC4f+zk6Izu3 rXYVauMdXc3P3qwwwN6oKvaj0mgtCY6RnNI2HwFj+7izE6ytwpcuAze1AKYB8e/iBwxBKCvgP +yd0cyRP7sE2vOlgNcnmM2dEx0wcYOb5nwV/duKUnyUihYv6bfprXwx9BkKnDk/rmZpivMpI5 BFAzHVMd+zVWk0l/4WZUw6bNPIgBpJHHjyO1djmEIxePTqsDrdlb1v/YCkwe9QInphIJEWDW4 PQ1JiHvHmxEVSWoSpu6Icsz6Eoel4x4GWqNa5mMyby5Bu6Lz18Oxbu0l4uIY7KFOgXR7qEbQa A9mAOQ5OoBkzAXXbMhKXSeurO+SbkMCZ9mIBrySty2lZEvrmHcQW7WuKS9qCO53KRqCsmIBk6 HMqg4CjroBlQASomEL2LND7+ltmp7rOhXL1R+Kp8Ez6aA4YMIMg1BeNW3+XayBDcLpmMEv//8 /ve0R1QyWTmNkc8rVoQoY8Ld3jX+vlNVDzL6fptXSF1i3I+f10= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2018 19:48:14 -0000 Hi, about two hours ago i sent an answer to Date: Thu, 1 Feb 2018 22:56:26 +0100 From: Michel Bouissou Subject: Re: A thread on grub-bug could need attention with own Date: Fri, 02 Feb 2018 09:15:42 +0100 Message-Id: <28716785462546254838@scdbackup.webframe.org> It did not show up in the mailing list yet. Neither in my mailbox nor at http://lists.gnu.org/archive/html/grub-devel/2018-02/threads.html This is an attempt to resend it. I again Cc: Michel Bouissou because i don't know whether the problem is with my mail provider. ----------------------------------------------------------------------------- Hi, i wrote: > > zeroize 512-byte block 1 of the > > Debian Live ISO and then try to boot it from USB stick Michel Bouissou wrote: > I made it (with latest debian-gnome 9.3 live),i Now we have no surplus GPT any more. The EFI system partition is only marked by the MBR partition 2 (and by the El Torito catalog which should be ignored when found on USB stick). > and tested it OK on *another* machine. > But on the machine where the problem is, it does *NOT* boot. Normally i would now again exclude the theory that the partitions inside the ISO are to blame. (We still have to explain why the GRUB installations on hard-disk-like partitioned USB sticks failed too.) > It does display the key brand/model (instead of "Windows boot manager") But this slight change in firmware behavior could be significant. Under the theory that it's the partition layout and not the EFI partition image content or its way to hop on the ISO, there remains the nested partition situation as main suspect: $ /sbin/fdisk -l debian-live-9.3.0-amd64-xfce.iso ... Device Boot Start End Sectors Size Id Type debian-live-9.3.0-amd64-xfce.iso1 * 0 3803903 3803904 1.8G 0 Empty debian-live-9.3.0-amd64-xfce.iso2 1548 2379 832 416K ef EFI The block range of partition 2 is inside partition 1. Normally the type 0 ("Empty") of partition 1 is enough to let firmwares tolerate this. Partition 1 is not needed for the boot process. It just protects the ISO from partition editors and provides a mountable partition to operating systems. So the next experiment would be to remove it, i.e. zeroize its slot in the MBR. One can do it in the ISO file img=debian-live-9.3.0-amd64-xfce.iso or directly on the USB stick where it was copied img=/dev/sdc Either by: /sbin/fdisk "$img" <<+ d 1 w + Or by: dd if=/dev/zero bs=1 seek=446 count=16 conv=notrunc of="$img" The result should then be $ /sbin/fdisk -l "$img" ... Device Boot Start End Sectors Size Id Type debian-live-9.3.0-amd64-xfce.iso2 1548 2379 832 416K ef EFI Have a nice day :) Thomas