Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZoDTl-000562-Mg for mharc-grub-devel@gnu.org; Mon, 19 Oct 2015 12:40:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoDTh-00053H-GE for grub-devel@gnu.org; Mon, 19 Oct 2015 12:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoDTe-0004M7-9A for grub-devel@gnu.org; Mon, 19 Oct 2015 12:40:05 -0400 Received: from mail.csclub.uwaterloo.ca ([129.97.134.52]:48432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoDTe-0004Ln-55 for grub-devel@gnu.org; Mon, 19 Oct 2015 12:40:02 -0400 Received: from caffeine.csclub.uwaterloo.ca (caffeine.csclub.uwaterloo.ca [129.97.134.17]) by mail.csclub.uwaterloo.ca (Postfix) with SMTP id 92731209DA; Mon, 19 Oct 2015 12:39:59 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (sSMTP sendmail emulation); Mon, 19 Oct 2015 12:39:59 -0400 From: "Lennart Sorensen" Date: Mon, 19 Oct 2015 12:39:59 -0400 To: The development of GNU GRUB Subject: Re: Grub-devel Digest, Vol 140, Issue 25 Message-ID: <20151019163959.GU21923@csclub.uwaterloo.ca> References: <2DCC166D4F5C8443941662E1E67FD5C178724F92@LEICESTER.internal.datapath.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2DCC166D4F5C8443941662E1E67FD5C178724F92@LEICESTER.internal.datapath.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 129.97.134.52 Cc: "abranches@gmail.com" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 16:40:07 -0000 On Mon, Oct 19, 2015 at 09:05:47AM +0000, Stuart Weaver wrote: > Hi Manoel, > > Many thanks for your detailed answer and quick response! I've looked into using this but I don't think it will stop the root problem of GRUB loading the wrong grub.cfg file. Is there a way of using the 'search' command before GRUB has loaded a grub.cfg and therefore use the same command to look for the grub.cfg? > > To reiterate, > > 1. If both eMMC and USB are connected and from the BIOS I choose to boot into the USB, I would expect the BIOS to load GRUB and GRUB to load the grub.cfg on the USB... And that is exactly what happens. However... > > 2. If both eMMC and USB are connected and from the BIOS I choose to boot into the eMMC I would expect the BIOS to load GRUB and GRUB to load the grub.cfg on the eMMC... Unfortunately the BIOS loads GRUB on the eMMC (correct) but GRUB loads the grub.cfg from the USB, not the eMMC. > > I would like to keep the two systems as separate as possible and let the BIOS choose which system to boot. Is this possible? If the BIOS provides a list of disks to GRUB that has the USB as the first device and eMMC as the second, there isn't much grub can do about it. In my laptop I have two SATA devices, and the BIOS always provides them to GRUB in the order of the ports, even though I have it set to boot from the second one. It's a bit annoying, but at least it is consistent about it. Would be nice if yours put the fixed devices before the removable devices, but some systems are stupid. -- Len Sorensen