From 3cf598bf83d504e8a3ddf6ff6cf3e76fe3d7832f Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Wed, 25 Apr 2012 08:25:05 +0000 Subject: - new version (2012-04-25) --- setupBootloaderExpert.html | 314 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) create mode 100644 setupBootloaderExpert.html (limited to 'setupBootloaderExpert.html') diff --git a/setupBootloaderExpert.html b/setupBootloaderExpert.html new file mode 100644 index 0000000..43f8ba5 --- /dev/null +++ b/setupBootloaderExpert.html @@ -0,0 +1,314 @@ + + + + + Bootloader expert use + + + + + + +
+
+
+
+

Bootloader expert use +

+
+
+
+ + + + + + + + + + + + + + + + + + + +

If you haven't done so + yet, please read the section called “Bootloader main + options” first. +

+ + +
+
+
+
+

Adding a GRUB2 based system + manually +

+
+
+
+ + + +

A GRUB2 based system + may be added to the Mageia boot menu as follows: +

+ + +
+
    +
  • + +

    Boot into the + system in question and in order to determine the grub version, in a terminal run the command: +

    + + +

    sudo + grub-install --version

    + + +

    or if that + fails try: +

    + + +

    sudo + grub2-install --version

    + +
  • +
  • + +

    If this returns + "GNU GRUB version 0.97" (possibly with a custom suffix), then it is + using GRUB (otherwise called GRUB legacy) not GRUB2 and your system + should be correctly identified by Mageia during installation and added + automatically to the menu. +

    + +
  • +
  • + +

    If this returns + (GRUB) 1.98 or 1.99 or 2.xx, then you are using GRUB2. +

    + + +

    Make a note of + the version and enter this command to identify the root partition: +

    + + +

    df / +

    + + +

    This will + output something like : +

    + + +

    Filesystem Size Used + Avail Use% Mounted on

    + + +

    /dev/sdb11 15G 7.0G 7.0G + 50% /

    + + +

    The "sdb11" + part is the root partition - make a note of it. +

    + +
  • +
  • + +

    You can now + shut down the system and install Mageia. +

    + +
  • +
  • + +

    In your new + running Mageia system, open a terminal and as root edit the file + /boot/grub/menu.lst. as follows: +

    + +
  • +
  • + +

    To become root + use: +

    + + +

    su

    + + +

    (enter root + password) +

    + +
  • +
  • + +

    To open the + file in an editor use: +

    + + +

    kwrite + /boot/grub/menu.lst

    + + +

    (replace + "kwrite" with "gedit" if you are using Gnome) +

    + +
  • +
  • + +

    Add the + following entry for your (e.g. Ubuntu) system possibly as the second + stanza: +

    + + +

    title + Ubuntu

    + + +

    root + (hd1,10)

    + + +

    kernel + /boot/grub/core.img

    + +
  • +
  • + +

    If the GRUB2 + version is 2.xx then change the last line to : +

    + + +

    kernel + /boot/grub/i386-pc/core.img

    + + +

    If you needed + to use "grub2-install" earlier then change /grub/ + to /grub2/ in the last line. +

    + +
  • +
  • + +

    Save the file + and re-boot. You should now see your "Ubuntu" entry in the menu and be + able to boot from it. +

    + +
  • +
+
+ + +
+ + + + + + + + +
[Note]Note
+ +

The "sdb" + indicates the second hard drive hd1, (sda would be hd0), likewise sdb11 + indicates partition 11 which in GRUB legacy (counting from zero) is + partition 10. +

+ + +

So: +

+ + +

sdb11 = + (hd1,10)

+ + +

sda1 = + (hd0,0)

+ +
+
+ +
+ + +
+
+
+
+

Using an + existing GRUB2 boot loader +

+
+
+
+ + + +

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”

+ + +
+ + + + + + + + +
[Note]Note
+ +

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 : + https://forums.mageia.org/en/viewtopic.php?p=13547#p13547 +

+ + +

To make the fix + permanent so that it will survive an Ubuntu kernel update, the Mageia + entry should be added to /etc/grub.d/40_custom

+ +
+
+ +
+ +
+ + -- cgit v1.2.1