Gentoo Archives: gentoo-user

From: Fernando Rodriguez <frodriguez.developer@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Grub1: Cant ? Re: keeping grub 1
Date: Thu, 27 Aug 2015 18:32:28
Message-Id: BLU436-SMTP2377EC98D2E85EC6CAE5FF08D6F0@phx.gbl
In Reply to: Re: [gentoo-user] Grub1: Cant ? Re: keeping grub 1 by Fernando Rodriguez
1 On Thursday, August 27, 2015 2:23:56 PM Fernando Rodriguez wrote:
2 > On Thursday, August 27, 2015 8:49:13 AM Mike Gilbert wrote:
3 > > On Wed, Aug 26, 2015 at 6:27 PM, Michel Catudal <mcatudal@×××××××.net>
4 > wrote:
5 > > > Le 2015-08-26 13:37, Fernando Rodriguez a écrit :
6 > > >
7 > > >> This may not be complete and some of these may be possible to some
8 extent
9 > > >> with
10 > > >> legacy grub:
11 > > >>
12 > > >> 1. Grub Legacy is 32-bit only, so you need 32-bit libraries or use
13 grub-
14 > > >> static. Grub2 is portable, even beyond Intel architectures.
15 > > >> 2. Grub2 has been rewritten to be modular. Instead of Grub's stages
16 model
17 > > >> it
18 > > >> uses a core image and a bunch of modules.
19 > > >> 3. EFI support without chainloading or other hacks.
20 > > >> 4. Better filesystem support. Including loopback devices.
21 > > >> 5. Graphics and theming support.
22 > > >> 6. Grub2's config file (the one it tells you not to edit manually) is
23 > > >> scriptable
24 > > >> using a shell-like script language.
25 > > >> 7. Password support for each entry.
26 > > >>
27 > > >>
28 > > >
29 > > > I've had serious problems in the past getting to to install on a
30 partition
31 > > > and gave up. Is that bug fixed? It insists on installing on the MBR which
32 > is
33 > > > unacceptable.
34 > > >
35 > >
36 > > It's not a bug, and it won't be "fixed". Installing on a partition is
37 > > simply not supported.
38 > >
39 >
40 > I just got it to work with these steps:
41 >
42 > 1. Mount the partition to /mnt/usb
43 > 2. Run:
44 >
45 > #grub2-install --directory /usr/lib/grub/i386-pc --boot-
46 > directory=/mnt/usb/boot --force /dev/sdb2
47 > Installing for i386-pc platform.
48 > grub2-install: warning: File system `ext2' doesn't support embedding.
49 > grub2-install: warning: Embedding is not possible. GRUB can only be
50 installed
51 > in this setup by using blocklists. However, blocklists are UNRELIABLE and
52 > their use is discouraged..
53 > Installation finished. No error reported.
54 >
55 > 3. Set the partition as active with fdisk.
56 >
57 > And it booted. To verify that it didn't overwrite the mbr I overwrote it
58 with
59 > syslinux's mbr as follows:
60 >
61 > sudo dd conv=notrunc bs=440 count=1 if=/usr/share/syslinux/mbr.bin
62 of=/dev/sdb
63 >
64 > Still boots!
65
66 It is a good idea to make all grub2 files in /boot immutable to avoid problems.
67
68 --
69 Fernando Rodriguez

Replies

Subject Author
Re: [gentoo-user] Grub1: Cant ? Re: keeping grub 1 Mick <michaelkintzios@×××××.com>