Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZQI6N-0006AH-4j for mharc-grub-devel@gnu.org; Fri, 14 Aug 2015 12:45:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQI6K-00067c-HX for grub-devel@gnu.org; Fri, 14 Aug 2015 12:45:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQI6F-0008RR-DL for grub-devel@gnu.org; Fri, 14 Aug 2015 12:45:04 -0400 Received: from mail.csclub.uwaterloo.ca ([129.97.134.52]:39131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQI6F-0008RH-9Q for grub-devel@gnu.org; Fri, 14 Aug 2015 12:44:59 -0400 Received: from caffeine.csclub.uwaterloo.ca (caffeine.csclub.uwaterloo.ca [129.97.134.17]) by mail.csclub.uwaterloo.ca (Postfix) with SMTP id 4509720A1B for ; Fri, 14 Aug 2015 12:44:57 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (sSMTP sendmail emulation); Fri, 14 Aug 2015 12:44:57 -0400 From: "Lennart Sorensen" Date: Fri, 14 Aug 2015 12:44:57 -0400 To: The development of GNU GRUB Subject: Re: i386-pc target and no block lists Message-ID: <20150814164457.GN29198@csclub.uwaterloo.ca> References: <20150814122923.GA14446@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150814122923.GA14446@aepfle.de> 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 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: Fri, 14 Aug 2015 16:45:06 -0000 On Fri, Aug 14, 2015 at 02:29:23PM +0200, Olaf Hering wrote: > Last night I finally got around to update my grub1 chainloader to grub2. > During install of the bootloader I ran into this issue: > > grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. > > I think everyone just gets around this message by always passing > --do-it-anyway to grub2-install. At least the distro I'm using does > this. > > But since the system I just reinstalled is still fresh I wonder what > needs to be done to avoid the --do-it-anyway option? Right now I can not > imagine how the partition/filesystem layout has to look like. > > Olaf > > > esprimo:~ # parted -s /dev/disk/by-id/wwn-0x50014ee2590ff8f9 unit s print > odel: ATA WDC WD6400BEVT-2 (scsi) > Disk /dev/sda: 1250263728s > Sector size (logical/physical): 512B/512B > Partition Table: msdos > > Number Start End Size Type File system Flags > 1 2048s 4196351s 4194304s primary ext3 boot, type=83 > 2 4196352s 6293503s 2097152s primary ext2 type=83 > 3 6293504s 23070719s 16777216s primary linux-swap(v1) type=82 > 4 23070720s 1250263727s 1227193008s extended lba, type=0f > 5 23072768s 111153151s 88080384s logical ext4 type=83 > 6 111155200s 199235583s 88080384s logical fat32 type=83 > 7 199237632s 287318015s 88080384s logical ext4 type=83 > 8 287320064s 375400447s 88080384s logical ext3 type=83 > 9 375402496s 463482879s 88080384s logical ext4 type=83 > 10 463484928s 1250263727s 786778800s logical xfs type=83 > > > esprimo:~ # /usr/lib64/grub2-chainloader/sbin/grub-install --verbose /dev/disk/by-id/wwn-0x50014ee2590ff8f9-part1 So instead of installing grub to a partition, install it to the disk, which will place it after the partition table in the almost 2048 sectors before the first partition. Certainly Debian by default installs grub to the MBR (aka the disk), not to the partition. I would be surprised if any other distribution does it differently. -- Len Sorensen