From e118bfd1011e4f0ef4789464dc9d0c8101fd186c Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski If you haven't done so
yet, please read the section called “Bootloader main
@@ -70,7 +76,8 @@
Boot into the
- system in question and in order to determine the grub version, in a terminal run the command:
+ system in question. In order to determine the GRUB2 version run the
+ following command in a terminal:
Make a note of
- the version and enter this command to identify the root partition:
+ the version and enter this command to identify the root
+ partition:
This will
@@ -118,16 +126,34 @@
Now check that
+ the /boot folder is in the same partition by entering the following
+ command:
+ The "sdb11"
- part is the root partition - make a note of it.
+ If the /boot
+ partition is different to the root partition then make a note and use
+ the /boot partition in the "root" line when editing menu.lst
+ below.
In your new
running Mageia system, open a terminal and as root edit the file
- /boot/grub/menu.lst. as follows:
+ /boot/grub/menu.lst as follows:
(enter root
@@ -180,8 +207,9 @@
Add the
- following entry for your (e.g. Ubuntu) system possibly as the second
- stanza:
+ following entry for your (e.g. Ubuntu) system, possibly as the second
+ stanza. The position the item appears in the menu will depend on its
+ position in the file:
df -h
+ / |(read; awk '{print $1; exit}')Filesystem Size Used
- Avail Use% Mounted ondf -h
+ /boot |(read; awk '{print $1; exit}')
If you needed
- to use "grub2-install" earlier then change /grub/
- to /grub2/ in the last line.
+ to use "grub2-install" earlier then change "grub"
+ to "grub2" in the last line.
+
If /boot was
+ on a separate partition, then remove "/boot" from
+ the last line.
If you didn't read the general part about using an existing bootloader yet, do so now. See - the section called “Using an - existing boot loader”
+ the section called “Using an + existing bootloader”There is a known - bug in OS-prober used during GRUB2 installation in some older versions of - Debian/Ubuntu that incorrectly creates grub.cfg when adding Mageia (or - Mandriva) systems. This is simple to work around and details of a fix - can be found in the Mageia forum here : + bug in OS-prober used during GRUB2 installation in some older versions + of Debian/Ubuntu that incorrectly creates grub.cfg when adding Mageia + (or Mandriva) systems. This is simple to work around and details of a + fix can be found in the Mageia forum here: https://forums.mageia.org/en/viewtopic.php?p=13547#p13547
-- cgit v1.2.1