1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Grub2 vs. Grub Legacy in M3
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Grub2%20vs.%20Grub%20Legacy%20in%20M3&In-Reply-To=%3C51051E29.7040003%40zen.co.uk%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="021872.html">
<LINK REL="Next" HREF="022091.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Grub2 vs. Grub Legacy in M3</H1>
<B>Barry Jackson</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Grub2%20vs.%20Grub%20Legacy%20in%20M3&In-Reply-To=%3C51051E29.7040003%40zen.co.uk%3E"
TITLE="[Mageia-dev] Grub2 vs. Grub Legacy in M3">zen25000 at zen.co.uk
</A><BR>
<I>Sun Jan 27 13:31:37 CET 2013</I>
<P><UL>
<LI>Previous message: <A HREF="021872.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI>Next message: <A HREF="022091.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#22084">[ date ]</a>
<a href="thread.html#22084">[ thread ]</a>
<a href="subject.html#22084">[ subject ]</a>
<a href="author.html#22084">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 20/01/13 17:42, Maurice Batey wrote:
><i> On Sun, 20 Jan 2013 14:50:06 +0000, Barry Jackson wrote:
</I>><i>
</I>>><i> I repeat - "Installing the grub2 package"
</I>><i>
</I>><i> OK - so you differentiate between "installing with GRUB2" and
</I>><i> "installing the GRUB2 packge?
</I>><i>
</I>I am differentiating between "# urpmi grub2" and the use of the
"grub2-install" command.
><i> Does the former include the latter?
</I>><i> Or do you mean one can install with GRUB Legacy and then go on to
</I>><i> install the GRUB2 *package* (which presumably doesn't do anything but
</I>><i> make itself available for the purposes you described)?
</I>><i>
</I>Exactly, except that it does create a menu and builds it's kernel
(core.img) which it places in the /boot/grub2 directory ready for use.
It does no more than this and does not affect the existing MBR or PBR in
any way.
>><i> This automatically creates core.img in /boot/grub2/i386-pc/ which
</I>>><i> allows
</I>>><i> you to boot into it from either grub2 using the multiboot command or from
</I>>><i> legacy, using the menu entry shown in the readme.
</I>><i>
</I>><i> What/where is the 'multiboot command'?
</I>
multiboot is a grub2 command to boot using core.img directly.
Below is my entry for Mga3 in my "master" grub2 grub.cfg which is in a
small grub partition at the start of sda. My MBR points to this
partition, so all OS's are either chainloaded or multibooted from the
manually created entries in this grub.cfg
menuentry 'Mageia-3' {
search --no-floppy --label --set=root mageia-3
multiboot /boot/grub2/i386-pc/core.img
My limited understanding is that it is similar to chainloading but does
not need embedded code in the PBR. Since grub2 can read the filesystem
(with the appropriate modules loaded) it can navigate to the location of
core.img and launch it.
A useful side effect is that grub legacy may be installed to the PBR and
used if required, using:-
menuentry 'Mageia-3 {
search --no-floppy --label --set=root mageia-3
chainloader +1
}
>><i> Did you test it in Mageia as described in the README.Mageia ?
</I>><i>
</I>><i> The GRUB2 I tried was from Ubuntu 12.01 and Mint 13, not Mageia.
</I>><i>
</I>>><i> If you add Mageia (grub2) entry to menu.lst as described and boot into
</I>>><i> the Grub2 menu it will have all your legacy systems listed. Do they
</I>>><i> not boot? .
</I>><i>
</I>><i> Good question. The "GRUB2-to-Grub Legacy' boots I attempted via GRUB2
</I>><i> in the MBR all failed.
</I>><i> Next time I get the netbook out I will try booting a GRUB Legacy
</I>><i> install via a GRUB Legacy boot menu entry for booting a GRUB2 install.
</I>><i> (Remember, it has GRUB Legacy in the MBR.)
</I>
Yes that's fine
><i>
</I>><i> But I expect the result to be the same as booting GRUB legacy from
</I>><i> GRUB2 in the MBR.
</I>><i>
</I>:<i>\
</I>
><i> If the failure to boot was caused by a faulty GRUB2 component, as has
</I>><i> been suggested, then the test will have to await my installing Mageia-3
</I>><i> with GRUB2, which may not happen very soon.
</I>><i>
</I>
Have fun ;)
Barry
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="021872.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI>Next message: <A HREF="022091.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#22084">[ date ]</a>
<a href="thread.html#22084">[ thread ]</a>
<a href="subject.html#22084">[ subject ]</a>
<a href="author.html#22084">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|