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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
|
<!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=%3C510956E3.8080101%40jkerr82508.free-online.co.uk%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="022242.html">
<LINK REL="Next" HREF="022296.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Grub2 vs. Grub Legacy in M3</H1>
<B>James Kerr</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Grub2%20vs.%20Grub%20Legacy%20in%20M3&In-Reply-To=%3C510956E3.8080101%40jkerr82508.free-online.co.uk%3E"
TITLE="[Mageia-dev] Grub2 vs. Grub Legacy in M3">jim at jkerr82508.free-online.co.uk
</A><BR>
<I>Wed Jan 30 18:22:43 CET 2013</I>
<P><UL>
<LI>Previous message: <A HREF="022242.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI>Next message: <A HREF="022296.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#22243">[ date ]</a>
<a href="thread.html#22243">[ thread ]</a>
<a href="subject.html#22243">[ subject ]</a>
<a href="author.html#22243">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 30/01/2013 11:54, Maurice Batey wrote:
><i> On Sun, 20 Jan 2013 14:39:26 +0000, James Kerr wrote:
</I>><i>
</I>>><i> Grub2 created a boot menu that enables me to
</I>>><i> successfully boot the pre-existing Mageia2 installation.
</I>><i>
</I>><i> James, does the Mageia2 installation have GRUB-Legacy in the PBR?
</I>
No. Mageia 2's Grub boot-loader was installed to the MBR of the boot disk.
><i>
</I>><i> What is the GRUB2 boot stanza that boots Mageia2?
</I>
This is the stanza in /boot/grub2/grub.cfg for Mageia 2:
menuentry 'linux (on /dev/sdb1)' --class gnu-linux --class gnu --class
os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1
--hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1
20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root
20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz BOOT_IMAGE=linux root=LABEL=mga-root splash quiet
nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788
initrd /boot/initrd.img
I've attached grub.cfg, in case it's of some help.
os-prober creates a boot menu which lists the first entry from Grub's
menu.lst on the top-level Grub2 boot menu, even when the first entry in
menu.lst is not the default. As a result, in order to reach the menu
entry for Mageia 2, I have to access the second level "Advanced options"
menu.
On this system /dev/sdb is the boot disk.
Jim
-------------- next part --------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if loadfont unicode ; then
set gfxmode=1024x768x32
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd1,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511
else
search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511
fi
insmod gfxmenu
insmod png
set theme=($root)/boot/grub2/themes/maggy/theme.txt
export theme
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Mageia GNU/Linux' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' {
set gfxpayload=text
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511
else
search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511
fi
echo 'Loading Linux desktop ...'
linux /boot/vmlinuz-desktop root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-desktop.img
}
submenu 'Advanced options for Mageia GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' {
menuentry 'Mageia GNU/Linux, with Linux desktop' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-desktop-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' {
set gfxpayload=text
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511
else
search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511
fi
echo 'Loading Linux desktop ...'
linux /boot/vmlinuz-desktop root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-desktop.img
}
menuentry 'Mageia GNU/Linux, with Linux 3.8.0-desktop-0.rc5.1.mga3' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-desktop-0.rc5.1.mga3-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' {
set gfxpayload=text
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511
else
search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511
fi
echo 'Loading Linux 3.8.0-desktop-0.rc5.1.mga3 ...'
linux /boot/vmlinuz-3.8.0-desktop-0.rc5.1.mga3 root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.8.0-desktop-0.rc5.1.mga3.img
}
menuentry 'Mageia GNU/Linux, with Linux 3.8.0-desktop-0.rc4.1.mga3' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-desktop-0.rc4.1.mga3-advanced-f64c1cea-d7d7-44f6-8c3f-90d4dc886511' {
set gfxpayload=text
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 f64c1cea-d7d7-44f6-8c3f-90d4dc886511
else
search --no-floppy --fs-uuid --set=root f64c1cea-d7d7-44f6-8c3f-90d4dc886511
fi
echo 'Loading Linux 3.8.0-desktop-0.rc4.1.mga3 ...'
linux /boot/vmlinuz-3.8.0-desktop-0.rc4.1.mga3 root=UUID=f64c1cea-d7d7-44f6-8c3f-90d4dc886511 ro splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.8.0-desktop-0.rc4.1.mga3.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-9A008B35008B1801' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9A008B35008B1801
else
search --no-floppy --fs-uuid --set=root 9A008B35008B1801
fi
chainloader +1
}
menuentry 'Mageia 2 (2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz-all BOOT_IMAGE=install_beta_1 root=/dev/ram3 ramdisk_size=32000 vga=791
initrd /boot/all.rdz
}
submenu 'Advanced options for Mageia 2 (2)' $menuentry_id_option 'osprober-gnulinux-advanced-20599988-d027-4cd2-80c4-b834e1013a80' {
menuentry 'install cauldron (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-all--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz-all BOOT_IMAGE=install_beta_1 root=/dev/ram3 ramdisk_size=32000 vga=791
initrd /boot/all.rdz
}
menuentry 'linux (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz BOOT_IMAGE=linux root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788
initrd /boot/initrd.img
}
menuentry 'linux-nonfb (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=LABEL=mga-root nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b
initrd /boot/initrd.img
}
menuentry 'failsafe (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz BOOT_IMAGE=failsafe root=LABEL=mga-root failsafe
initrd /boot/initrd.img
}
menuentry 'desktop 3.3.6-2.mga2 (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.3.6-desktop-2.mga2--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz-3.3.6-desktop-2.mga2 BOOT_IMAGE=desktop_3.3.6-2.mga2 root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788
initrd /boot/initrd-3.3.6-desktop-2.mga2.img
}
menuentry 'desktop 3.3.8-2.mga2 (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.3.8-desktop-2.mga2--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz-3.3.8-desktop-2.mga2 BOOT_IMAGE=desktop_3.3.8-2.mga2 root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788
initrd /boot/initrd-3.3.8-desktop-2.mga2.img
}
menuentry 'desktop 3.4.24-3.mga2 (on /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.4.24-desktop-3.mga2--20599988-d027-4cd2-80c4-b834e1013a80' {
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 20599988-d027-4cd2-80c4-b834e1013a80
else
search --no-floppy --fs-uuid --set=root 20599988-d027-4cd2-80c4-b834e1013a80
fi
linux /boot/vmlinuz-3.4.24-desktop-3.mga2 BOOT_IMAGE=desktop_3.4.24-3.mga2 root=LABEL=mga-root splash quiet nokmsboot resume=UUID=a3dabcb9-c43e-4035-8bbe-576aa9c5573b vga=788
initrd /boot/initrd-3.4.24-desktop-3.mga2.img
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="022242.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI>Next message: <A HREF="022296.html">[Mageia-dev] Grub2 vs. Grub Legacy in M3
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#22243">[ date ]</a>
<a href="thread.html#22243">[ thread ]</a>
<a href="subject.html#22243">[ subject ]</a>
<a href="author.html#22243">[ 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>
|