New user - grub question

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

New user - grub question

Postby costas100 » Jun 23rd, '12, 15:44

Hello to all at Mageia, my name is Costas Lazarou and presently I live in Canada. Just created an account in the Forum and I am now logged in. I do have a simple question below, which I hope can be answered before I proceed with my first installation of Mageia I am from Greece originally and a mixture of a few other Countries.

I have been using Ubuntu Linux for some years now (installed at least 10 different versions of Ubuntu and derivatives), mainly the Gmone versions and lately I tried Mint (based on Ubuntu)
I just wish to ask a basic question before installing my first Mageia distro in one of my computers. It will be a triple boot with one windows XP and two Ubuntu or Mint all in Gnome.
My basic question is if Mageia will manage to add to the existing grub the information required.
The most probable arrangement will be in a Lenovo computer which now has Ubuntu 10.04 and ubuntu 11.04 with XP pro in between. I plan to replace Ubuntu 10.04 with Mageia KDE version. Please let me know if I will face any serious problems with grub.

All the best to the Mageia team

Costas
costas100
 
Posts: 1
Joined: Jun 23rd, '12, 15:34

Re: New user - grub question

Postby isadora » Jun 24th, '12, 09:04

Costas100, very welcome to the Mageia forum!!!!

First, i have moved your message to a topic for it's own.
This way it gets better attention, and better chances for answers.
And for the same reason altered your subject (title) of the message.

It would even had been better, having split your introduction and your question into two different topics.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: New user - grub question

Postby jkerr82508 » Jun 24th, '12, 10:58

costas100 wrote:It will be a triple boot with one windows XP and two Ubuntu or Mint all in Gnome.

Which means that you are probably using Grub2, in which case you should read:
https://wiki.mageia.org/en/Mageia_2_Err ... stribution
and
http://docteam.mageia.nl/installer/cont ... xpert.html

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: New user - grub question

Postby laidlaws » Jul 31st, '12, 06:54

I wanted to pop this in somewhere useful.

I just managed to configure my Mageia Grub1 to take a Grub2 system following the instructions at http://docteam.mageia.nl/installer/cont ... xpert.html .

I already had a Mageia bootloader, and installed Calculate 12 (a Gentoo derivative) alongside it. Calculate 11 apparently used Grub 1, and I had a stanza in my existing Mageia booloader for that. For Grub 2, I merely replaced the Grub 1 chainload command (the last line of the stanza) with
Code: Select all
kernel /boot/grub/core.img
straight from the HOWTO. It worked first time. Jim would need a separate stanza for each Gnome system.
laidlaws
 
Posts: 287
Joined: May 24th, '11, 04:58

Re: New user - grub question

Postby tim » Jul 31st, '12, 12:33

Hello Costas,

I have currently 3 hard drives, 2 of them formatted with ntfs and the third one is my mageia drive. You just have to install the grub loader to the partition containing your Linux system, then it recognizes your windows installation (i have win7 32bit). Afterwards you have to edit your BIOS settings: the hard drive with linux installed has to be the one you boot first so grub starts automatically and not your windows system. With grub you can choose then which system to boot. And if you ever want to automatically boot Win again, just change your BIOS settings. Thats the easiest way I figured out in my several years of trial and error :D

tim

sorry for the spelling mistakes
tim
 
Posts: 8
Joined: Jul 31st, '12, 12:24

Re: New user - grub question

Postby gohlip » Jul 31st, '12, 12:51

Costas, I am also very new (to Mageia) but welcome.
The previous posts were helpful and would be the 'recommended' procedure but if you are still uncertain and unsure, the easiest option (at first) would be to chainload. It works either way, ie., from a grub 0.97 boot to grub2 OS or from grub2 boot to grub 0.97 OS.

Chainloading from grub 0.97 boot is as follows....
Code: Select all
title Ubuntu (grub 2)
root (hd0,x)
chainloader +1


Chainloading from grub2 is as follows

Code: Select all
menuentry "Mageia - Chainloader " {
    insmod part_msdos
    insmod ext2
    search --no-floppy --label --set=root xxx
    chainloader +1
}


you can use the following search lines instead...
Code: Select all
search --no-floppy --fs-uuid --set=root xxxxxxxxxxxxxxxxxxxxxxxx


And not so good (if you have more than 1 drive)
Code: Select all
set root=(hd0,x)


Always note that for a partition /dev/sdax
in grub 0.97 it is (hd0,(x-1))
in grub2 it is (hd0,x)

That is, sda3 will be (hd0,2) in grub 0.97 and (hd0,3) in grub2.

If you want to boot directly (without chainload) these are the entries.....
Code: Select all
menuentry 'Magea (grub-legacy)' {
   insmod part_msdos
   insmod ext2
   search --no-floppy --fs-uuid --set=xxxxxxxxxxxxxxxxxxxxx
   linux /boot/vmlinuz root=UUID=xxxxxxxxxxxxxxxx nokmsboot ro
   initrd /boot/initrd.img
}

title Ubuntu (grub 2)
kernel (hd0,x)/boot/grub/core.img


Good luck.

ps; if you want to convert your Mageia to grub2, there is an easier way from your Ubuntu OS
mount your Mageia partition to say, /media/Mageia
Code: Select all
sudo grub-install --boot-directory=/media/Mageia/boot /dev/sda
{watch out for spaces!}
or if to its own partition,
Code: Select all
sudo grub-install -f --boot-directory=/media/Mageia/boot /dev/sdax
Last edited by doktor5000 on Aug 5th, '12, 16:23, edited 1 time in total.
Reason: added code tags, to improve on clarity
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: New user - grub question

Postby doktor5000 » Aug 5th, '12, 16:24

@gohlip: Please use code-tags next time: ftp://ftp.mandrivauser.de/rpm/rpm/extra ... e_tags.ogv
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: New user - grub question

Postby gohlip » Aug 5th, '12, 18:51

doktor5000 wrote:@gohlip: Please use code-tags next time

Okay, got it.

Code: Select all
  Me not so much a forum guy. More comfortable with  mailing lists .


Cheers.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest