summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2013-January/022149.html
blob: 6816fbcdef947a32add008f4aec4d217c3c158aa (plain)
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
<!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=%3C5106DAB5.7060808%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="022091.html">
   <LINK REL="Next"  HREF="022156.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=%3C5106DAB5.7060808%40zen.co.uk%3E"
       TITLE="[Mageia-dev] Grub2 vs. Grub Legacy in M3">zen25000 at zen.co.uk
       </A><BR>
    <I>Mon Jan 28 21:08:21 CET 2013</I>
    <P><UL>
        <LI>Previous message: <A HREF="022091.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
        <LI>Next message: <A HREF="022156.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#22149">[ date ]</a>
              <a href="thread.html#22149">[ thread ]</a>
              <a href="subject.html#22149">[ subject ]</a>
              <a href="author.html#22149">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 27/01/13 15:24, Maurice Batey wrote:
&gt;<i> On Sun, 27 Jan 2013 12:31:37 +0000, Barry Jackson wrote:
</I>&gt;<i>
</I>&gt;&gt;<i> my &quot;master&quot; grub2 grub.cfg which is in a small grub
</I>&gt;&gt;<i> partition at the start of sda.
</I>&gt;<i>
</I>&gt;<i>    How does one acquire a 'small grub partition'?
</I>&gt;<i> (Just get GRUB2 package to install into an empty partition?)
</I>&gt;<i>
</I>Yes - in a nutshell
Create a partition preferably near the start of the drive and label it 
&quot;maingrub&quot; then:

mkdir -p /maingrub &amp;&amp; \
mount -L maingrub /maingrub &amp;&amp; \
grub2-install --root-directory=/maingrub /dev/sda

Now the MBR point to maingrub, but there is no menu yet.
You can manually create a simple grub.cfg - there are examples in the 
grub2 documentation - there's a link in the README
It won't be pretty, but can be made to look nice with a good colour choice.
You could let grub2 create a grub.cfg to get started, but it will be 
over complicated and point directly to the current kernels which is no 
use once kernels get updated. You really need entries that multiboot 
(into grub2) or chainload (into legacy linux).
My current grub.cfg is a bit big as I need to remove some old entries, 
however it may be a good reference for you. The theme references don't 
work - that was just experimental.
<A HREF="http://paste.kde.org/658670/">http://paste.kde.org/658670/</A>
Copy it quick I think it expires in 24 hours ;)

&gt;&gt;<i> My MBR points to this partition, so all
</I>&gt;&gt;<i> OS's are either chainloaded or multibooted from the manually created
</I>&gt;&gt;<i> entries in this grub.cfg
</I>&gt;<i>
</I>&gt;<i>    Which do you have in the MBR: GRUB2 or Legacy?
</I>Grub2 - have had for the last year or so, but you could also put grub 
legacy in there as well since they can coexist, then simply re-write one 
or the other to MBR to switch ;)

&gt;<i>
</I>&gt;&gt;<i> My limited understanding is that it is similar to chainloading but does
</I>&gt;&gt;<i> not need embedded code in the PBR.
</I>&gt;<i>
</I>&gt;<i>    Ah,now that's interesting!
</I>&gt;<i> (I assume you mean 'does not need GRUB2 installed in the PBR')
</I>
Yes
&gt;<i>
</I>&gt;&gt;<i> A useful side effect is that grub legacy may be installed to the PBR and
</I>&gt;&gt;<i> used if required,
</I>&gt;<i>
</I>&gt;<i>     I assume you mean the PBR of the 'small grub partition'.
</I>No - I mean that since grub2 is not using the PBR, legacy can, if you 
wish to have them installed side by side.

&gt;<i>
</I>&gt;<i> Mamy thanks, Barry, especially w.r.t to the 'bootloader' partition!
</I>&gt;<i>
</I>Note that the small grub partition is never mounted and never written to 
by any system (unless you need to modify it of course)
This means that no system can screw it up :) - only you :\
</PRE>













<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="022091.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
	<LI>Next message: <A HREF="022156.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#22149">[ date ]</a>
              <a href="thread.html#22149">[ thread ]</a>
              <a href="subject.html#22149">[ subject ]</a>
              <a href="author.html#22149">[ 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>