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

Replies

Subject Author
Re: [gentoo-user] Grub1: Cant ? Re: keeping grub 1 Fernando Rodriguez <frodriguez.developer@×××××××.com>
Re: [gentoo-user] Grub1: Cant ? Re: keeping grub 1 Michel Catudal <mcatudal@×××××××.net>