Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KAzTk-0003iz-MH for mharc-grub-devel@gnu.org; Mon, 23 Jun 2008 23:46:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAzTj-0003ib-B2 for grub-devel@gnu.org; Mon, 23 Jun 2008 23:45:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAzTg-0003i8-KX for grub-devel@gnu.org; Mon, 23 Jun 2008 23:45:58 -0400 Received: from [199.232.76.173] (port=51410 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAzTg-0003i5-IB for grub-devel@gnu.org; Mon, 23 Jun 2008 23:45:56 -0400 Received: from ti-out-0910.google.com ([209.85.142.190]:51004) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAzTf-0000aM-Rg for grub-devel@gnu.org; Mon, 23 Jun 2008 23:45:56 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1232831tia.10 for ; Mon, 23 Jun 2008 20:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4cNPZ+YYM5PEKTQGEV7/sCFsSaNMvVf9YQUW4SWCdcE=; b=ggq9L8tdPY+680MqAEllNEMLIf/HLeDzqJXsFMF4Xr8EYDnAK8pKpvhCs880bMmqle VP2BpuxVTLyrnTRFxF7Be9IuTVgTxmklRYelXqc3gn2YrukqnZz0915GTDhG219C8NFL KBuxDoz9/QrNECPGs1nysOcnmlRkHYOSkUgFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=St3vOefj8mjVP0aoAVILP7JaVapMmwoU5uOZROkKWzN7HmYDV3UknksLCGnNFy+U/e BlGcu7NmkCWre5XE9aIUSAtpoyoBCPdn9NJLLqA9/GirxKXSp2revLb2fUIfHq+Y6VYo IkljR/5c8TqVOFfQLT5llR8GbemNI5eq7sKeY= Received: by 10.110.47.17 with SMTP id u17mr6689108tiu.49.1214279154140; Mon, 23 Jun 2008 20:45:54 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Mon, 23 Jun 2008 20:45:52 -0700 (PDT) Message-ID: Date: Tue, 24 Jun 2008 11:45:52 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <48601E23.7040009@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48601E23.7040009@gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Grub2 usb stick boot error X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2008 03:45:59 -0000 On Tue, Jun 24, 2008 at 6:05 AM, Fulvio Scapin wrote: > I am having a problem using Grub2 to boot some bootable partition stored > on a usb stick. > Basically I am trying to fit several distros, all fat partitions made > bootable with syslinux, on a usb stick and use grub2 to select and boot > one of them. > I should say that I come across two distinct cases, one using a GPT > label and a much worse one employing the usual dos label. > First I tried the gpt label cause I didn't relish the idea of using > extended partitions. On a 8GB stick I create a BIOS Boot Partition, > marked it with parted, and grub embedded itself in it with no problem. > Then a second partition containing the configuration of grub, and > further on several partitions containing distros, all fat16 bootable > thanks to syslinux. I discovered, to my surprise, that grub allows me to > boot only the third and fouth partition, while anyone beyond the fourth > gives me boot error. I even created a fifth partition containing the > exact same files of the fourth, and while the fourth boots, the fifth > still doesn't. > Then, on another stick, a 4GB one, I tried with a dos label. This time, > after countless tries to get grub installed, and having succeeded, I > discover that I can't boot any partition, even when having just two > partitions, one with the configuration of grub and the other a bootable > fat16 fs with a distro. > I tried Grub legacy and it works fine. I tried chainloading Grub2 from > Grub Legacy, just to make an attempt, and still no luck booting from Grub2. > I have to specify the with booting one of the volumes I mean > chainloading syslinux on it, doing a "chainloader +1" on the volume. > The Grub 2 console works fine (it's brilliant by the way) but I can't > chainload anything (with the GPT restricted exception detailed above. ) > I compiled and run grub2 (from cvs and from git) on a Gentoo system > running on a Macbook, and tested the sticks on 2 common x86 machines and > with qemu with the same results. > I figuratively beating my head against the wall, so any help or comment > would be greatly appreciated. > > P.S. > > I suppose I could just use Grub Legacy, but I just like Grub 2 > immensely, so I'll keep that solution as a last resort, or maybe > chainload Grub2 from Grub Legacy at least to use the shell. > Hi, First, you can check the size of partition, for example, does the ones that doesn't boot cross any boundary, like 4G/2G ? Also, you mention it apply to qemu as well, how do you test it, can you produce a qemu image that illustrate the problem ? -- Bean