1 |
On Thursday 27 Aug 2015 19:31:34 Fernando Rodriguez wrote: |
2 |
> On Thursday, August 27, 2015 2:23:56 PM Fernando Rodriguez wrote: |
3 |
> > On Thursday, August 27, 2015 8:49:13 AM Mike Gilbert wrote: |
4 |
> > > On Wed, Aug 26, 2015 at 6:27 PM, Michel Catudal <mcatudal@×××××××.net> |
5 |
> > |
6 |
> > wrote: |
7 |
> > > > Le 2015-08-26 13:37, Fernando Rodriguez a écrit : |
8 |
> > > >> This may not be complete and some of these may be possible to some |
9 |
> |
10 |
> extent |
11 |
> |
12 |
> > > >> with |
13 |
> > > >> legacy grub: |
14 |
> > > >> |
15 |
> > > >> 1. Grub Legacy is 32-bit only, so you need 32-bit libraries or use |
16 |
> |
17 |
> grub- |
18 |
> |
19 |
> > > >> static. Grub2 is portable, even beyond Intel architectures. |
20 |
> > > >> 2. Grub2 has been rewritten to be modular. Instead of Grub's stages |
21 |
> |
22 |
> model |
23 |
> |
24 |
> > > >> it |
25 |
> > > >> uses a core image and a bunch of modules. |
26 |
> > > >> 3. EFI support without chainloading or other hacks. |
27 |
> > > >> 4. Better filesystem support. Including loopback devices. |
28 |
> > > >> 5. Graphics and theming support. |
29 |
> > > >> 6. Grub2's config file (the one it tells you not to edit manually) |
30 |
> > > >> is scriptable |
31 |
> > > >> using a shell-like script language. |
32 |
> > > >> 7. Password support for each entry. |
33 |
> > > > |
34 |
> > > > I've had serious problems in the past getting to to install on a |
35 |
> |
36 |
> partition |
37 |
> |
38 |
> > > > and gave up. Is that bug fixed? It insists on installing on the MBR |
39 |
> > > > which |
40 |
> > |
41 |
> > is |
42 |
> > |
43 |
> > > > unacceptable. |
44 |
> > > |
45 |
> > > It's not a bug, and it won't be "fixed". Installing on a partition is |
46 |
> > > simply not supported. |
47 |
> > |
48 |
> > I just got it to work with these steps: |
49 |
> > |
50 |
> > 1. Mount the partition to /mnt/usb |
51 |
> > 2. Run: |
52 |
> > |
53 |
> > #grub2-install --directory /usr/lib/grub/i386-pc --boot- |
54 |
> > directory=/mnt/usb/boot --force /dev/sdb2 |
55 |
> > Installing for i386-pc platform. |
56 |
> > grub2-install: warning: File system `ext2' doesn't support embedding. |
57 |
> > grub2-install: warning: Embedding is not possible. GRUB can only be |
58 |
> |
59 |
> installed |
60 |
> |
61 |
> > in this setup by using blocklists. However, blocklists are UNRELIABLE |
62 |
> > and their use is discouraged.. |
63 |
> > Installation finished. No error reported. |
64 |
> > |
65 |
> > 3. Set the partition as active with fdisk. |
66 |
> > |
67 |
> > And it booted. To verify that it didn't overwrite the mbr I overwrote it |
68 |
> |
69 |
> with |
70 |
> |
71 |
> > syslinux's mbr as follows: |
72 |
> > |
73 |
> > sudo dd conv=notrunc bs=440 count=1 if=/usr/share/syslinux/mbr.bin |
74 |
> |
75 |
> of=/dev/sdb |
76 |
> |
77 |
> > Still boots! |
78 |
> |
79 |
> It is a good idea to make all grub2 files in /boot immutable to avoid |
80 |
> problems. |
81 |
|
82 |
You beat me to it. Yes GRUB2 can be installed on a partition instead of the |
83 |
MBR and yes it complains about it. However, it works regardless. I have done |
84 |
it a couple of times so far, just as you describe above. In my case I |
85 |
chainload GRUB2 with NTLDR or modern equivalent and this is how I know that |
86 |
the MBR was not being overwritten by it. |
87 |
|
88 |
-- |
89 |
Regards, |
90 |
Mick |