From: "Lennart Sorensen" <lsorense@csclub.uwaterloo.ca>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: i386-pc target and no block lists
Date: Fri, 14 Aug 2015 12:44:57 -0400 [thread overview]
Message-ID: <20150814164457.GN29198@csclub.uwaterloo.ca> (raw)
In-Reply-To: <20150814122923.GA14446@aepfle.de>
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
next prev parent reply other threads:[~2015-08-14 16:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 12:29 i386-pc target and no block lists Olaf Hering
2015-08-14 12:32 ` Olaf Hering
2015-08-14 13:05 ` Andrei Borzenkov
2015-08-14 13:18 ` Olaf Hering
2015-08-14 14:12 ` Andrei Borzenkov
2015-08-14 16:44 ` Lennart Sorensen [this message]
2015-08-14 17:22 ` Andrei Borzenkov
2015-08-14 19:11 ` Lennart Sorensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150814164457.GN29198@csclub.uwaterloo.ca \
--to=lsorense@csclub.uwaterloo.ca \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).