LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2012, 10:11 AM   #1
anirban
LQ Newbie
 
Registered: Feb 2012
Location: India
Distribution: openSUSE, Chakra,PCLinuxOS
Posts: 7

Rep: Reputation: Disabled
Question confused with GRUB legacy and GRUB2. help wanted!


Hi,I am a noob inching towards intermediate state.
Simply put,when I face problems, I look up in google and troubleshoot accordingly and that's that.
Also I am a distro hopper, but keep openSUSE 11.4 KDE installed permanently. A couple days back I tried to install PCLOS 2012.2 and mint12 KDE along with win 7(games only! ) making it a triple boot (dual boot+1) machine. Now as PCLOS uses grub legacy and mint uses grub2 I am having either mint+7 or PCLOS+7 but not all three. I tried installing the bootloaders on their respective /boot partitions and also on MBR(stupid eh?).
Also tried "redo-mbr" from PCLOS which was supposed to make it alri8.
now when I use 2 distro both using grub2, it's all fine and sunshine, but not with grub1 and grub2.
What do I need to do?
plz offer complete guidance.
long live LQ.
 
Old 02-21-2012, 11:18 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Since the two versions of grub aren't compatible, you could boot PCLinuxOS in the same manner as boot windows: use the chainloader +1 configuration to boot PCLinuxOS from OpenSuse's grub menu.

Grub2 in OpenSuse should detect grub2 in the Mint installation and add an entry in the grub2 menu for you, just run update-grub from OpenSuse after installing Mint.

Question: after installing PCLinuxOS, did you run update-grub from OpenSuse to see if PCLinuxOS would be added to the grub2 menu in OpenSuse?

Last edited by bigrigdriver; 02-21-2012 at 11:21 AM.
 
Old 02-21-2012, 11:22 AM   #3
anirban
LQ Newbie
 
Registered: Feb 2012
Location: India
Distribution: openSUSE, Chakra,PCLinuxOS
Posts: 7

Original Poster
Rep: Reputation: Disabled
@bigrigdriver, please give me details..how to chainload. or direct me to a tutorial.
Also from which os should i do this? (the one with grub1 or the other?)
 
Old 02-21-2012, 11:23 AM   #4
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 123

Rep: Reputation: 26
Neither grub legacy or grub2 always find every available operating system. In grub legacy, you have to edit the menu.lst. You would have to edit whatever the equivalent in grub2. This is usually fairly simple when some are already detected because you have sort of a template to go by. So choose one or the other and stick with it until every system is available. Then make a copy of the appropriate file for future reference.
 
Old 02-21-2012, 11:32 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
The grub2 manual (GNU GRUB Manual 1.99) section (4.1.2 Chain-loading an OS) describes chainloading. Since OpenSuse is the distro you keep permanently, you should do it from OpenSuse. That way, you can change other distros at will without affecting your OpenSuse installation in any adverse way.
 
Old 02-21-2012, 11:37 AM   #6
anirban
LQ Newbie
 
Registered: Feb 2012
Location: India
Distribution: openSUSE, Chakra,PCLinuxOS
Posts: 7

Original Poster
Rep: Reputation: Disabled
@bigrigdriver, but openSUSE has grub legacy. Currently I cant get into the other linux os (the one that uses grub2)
So how do I do it?
@liberalchrist, in openSUSE I can look around and find the menu.lst but do i write in it? a mere mentioning of the other distro(mint) sure won't make it bootable?
 
Old 02-21-2012, 11:47 AM   #7
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 123

Rep: Reputation: 26
If you are going to hop around different distros, you need to learn as much as you can about booting. It took me a long time to learn about grub. I later switched to lilo, and that took a while as well. Go to the grub homepage, http://www.gnu.org/software/grub/, and read the documentation. I personally find legacy easier to understand, but you may want to be more progressive. Yes, you do want to write in the menu.lst. That is the only way you can make changes.
 
Old 02-21-2012, 01:07 PM   #8
anirban
LQ Newbie
 
Registered: Feb 2012
Location: India
Distribution: openSUSE, Chakra,PCLinuxOS
Posts: 7

Original Poster
Rep: Reputation: Disabled
@lc,so i went to openSUSE's bootloader, added mint, specified it's /boot partition and rebooted. -> mint didn't boot
again I went to bootloader, edited mint and specified it's / partition and rebooted -> mint didn't boot.
(Is this the same thing as editing menu.lst? coz both time the menu.lst showed mint as an entry...)
 
Old 02-21-2012, 01:55 PM   #9
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 123

Rep: Reputation: 26
If your new entry is showing up as a boot option, you are on the right track. Post a copy of your menu.lst.
 
Old 02-21-2012, 02:11 PM   #10
anirban
LQ Newbie
 
Registered: Feb 2012
Location: India
Distribution: openSUSE, Chakra,PCLinuxOS
Posts: 7

Original Poster
Rep: Reputation: Disabled
just to make sure this is not mint's fault,installed chakra 2012.2 and tried again. same result.
here's menu.lst of openSuSE
"# Modified by YaST2. Last modification on Tue Feb 21 22:20:30 IST 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,4)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 12.1
root (hd0,4)
kernel /vmlinuz-3.1.0-1.2-default root=/dev/disk/by-id/ata-Hitachi_HTS545032B9A300_100203PBP306Q6FV57TL-part6 resume=/dev/disk/by-id/ata-Hitachi_HTS545032B9A300_100203PBP306Q6FV57TL-part7 splash=silent quiet showopts vga=0x317
initrd /initrd-3.1.0-1.2-default

###Don't change this comment - YaST2 identifier: Original name: windows 3###
title windows 7 (Loader)
rootnoverify (hd0,2)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.1
root (hd0,4)
kernel /vmlinuz-3.1.0-1.2-default root=/dev/disk/by-id/ata-Hitachi_HTS545032B9A300_100203PBP306Q6FV57TL-part6 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317
initrd /initrd-3.1.0-1.2-default

###Don't change this comment - YaST2 identifier: Original name: other###
title Chakra 2012.2
rootnoverify (hd0,9)
makeactive
chainloader +1 "

what am i doing wrong?
 
Old 02-21-2012, 02:39 PM   #11
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 123

Rep: Reputation: 26
First, you need to decide what operating system you are trying to install and stick with it. Only one bootloader can be installed on the MBR at one time. This needs to be openSuse because this is your permanent system. Assuming this is the bootloader you have installed, each time you add or change another distro, you need to edit this menu.lst with a text editor. In order to chainload, you would have to choose the option to install Grub in the root partition when installing Chakra. I don't know how chainloading works between Grub Legacy and Grub2, but I doubt that the quotation marks at the end of the chainloader +1 belong there.

Normally, between linux installations it is better to use a regular grub entry such as the one's you have for openSuse. It would look something like this. You have to make sure you are identifying the right partition in your root line and the right kernel and initrd locations in your other entries.

title Chakra 2012.2
root (hd0,9)
kernel /boot/vmlinuz-3.1.0 root=/dev/sda10
initrd /boot/initrd-3.1.0-1.2-default

Read this tutorial. Also read all the Grub website documentation for your brand of Grub as I suggested in my earlier post. You will not get a complete tutorial in a post on this forum.

Last edited by liberalchrist; 02-21-2012 at 02:43 PM.
 
Old 02-21-2012, 03:46 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
You refer in one of your post to a separate boot partition for Mint as well as the root partition for the filesystem. Have you now removed Mint and replaced it with Chakra? Do you actually have a separate boot partition? I use PCLinux to boot Ubuntu, Mint, etc.. with an entry like this:

Quote:
title Ubuntu-10.10
root (hd0,4)
kernel /boot/grub/core.img
#savedefault
##boot
Ubuntu is on sda5 so you will need to change your entry to (hd0,9) if your system is on sda10.
I'm not sure why your chainloader entry didn't work. You might try googling bootinfoscript, downloading it and running it from Opensuse and posting the results.txt file it produces. It will show a lot of details about your system and boot files which should help to resolve your issue.
 
Old 02-21-2012, 08:13 PM   #13
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I fail to see why chainloading a Linux OS is a good idea. Using the installed legacy grub, you need to point it to a valid kernel, and a valid initramdisk (assuming the target Linux uses one).
Code:
title     Your Target OS, whatever it is
root      (hdx,y)
kernel    /boot/vmlinuz-2.6.xx.yy-something root=/dev/hdxn 
initrd    /boot/initrd-2.6.xx.yy-something
You will have to figure out what to use to tell grub which partition it is supposed to use to find the boot directory for the specified OS. The parameters 'x' and 'y' in the example should be replaced by the hard-disk number (starting from zero) and the partition number on that disk, also numbered from zero, respectively. If you have three hard disks, and the target OS is on the third one, and the boot partition is the second partition on that disk, the root parameter would look like
Code:
root      (hd2,1)
This tells grub how to find a partition. Now, tel grub what files make up the bootable OS:
Code:
# From a Debian 5 installation
kernel          /boot/vmlinuz-2.6.26-2-686 root=/dev/hda1 ro 
initrd          /boot/initrd.img-2.6.26-2-686
The specified directories are expected to be found on the partition identified to grub as the 'root', above. The kernel name and initrd are simply the names of the respective files in the specified directory. Give the kernel a pointer to what it is supposed to mount as a root filesystem. Use Linux syntax (/dev/hdc1) rather than grub syntax.

You can mount the various partitions on your system to poke around and find where the desired boot directories are. Use the kernel and initrd images that you find there.

--- rod.

Last edited by theNbomr; 02-21-2012 at 08:16 PM.
 
1 members found this post helpful.
Old 02-21-2012, 08:27 PM   #14
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 123

Rep: Reputation: 26
I agree with theNbomr, chainloading makes no sense. I do know, however, that some distributions have tweaked themselves so much that they need a whole list of boot options appended to their kernel line to present themselves the way they want. Even so, the boot options can be transcribed to the working menu.lst.
 
Old 02-22-2012, 01:55 AM   #15
anirban
LQ Newbie
 
Registered: Feb 2012
Location: India
Distribution: openSUSE, Chakra,PCLinuxOS
Posts: 7

Original Poster
Rep: Reputation: Disabled
@lc, I'l surely go through whatever documentation I can find on grub1 and 2,somehow I feel this area has been overlooked from a noob's perspective.
@yancek, yes I installed Chakra over the partitions of Mint. that means / of Chakra was on / of mint (formatted) and /boot on /boot.
And yes I have two /boot now. one of openSUSE and other of chakra(which was mint BEFORE).
@Rod, I learned the (hdx,y) thing the hard way, but how do I get access to the /boot partitions of chakra while I'm on SUSE? it's plain impossible to view the files even if I grant root privilege.

Damn! I already feel I should stick with dual booting . Also I appreciate the help you all are trying to give, but plz understand that I have already tried rescatux,super grub cd,Dedoimedo's tutorials on his website and few others. and I am yet to find a result.
Can sum1 tell me if I can install Grub2 on openSUSE?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load grub2 from grub legacy or grub4dos miros84 Linux - Software 6 01-26-2011 11:51 AM
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 04:03 AM
[SOLVED] How do I boot up In Grub2 If It is using grub legacy now ? obnascar Linux - Software 2 10-22-2009 01:08 PM
Help converting grub-legacy to grub2 ssenuta Linux - General 4 08-29-2009 11:04 AM
Grub Legacy or Grub2? RAVC Linux - Software 2 01-21-2006 10:43 AM


All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration