LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 01:57 PM   #1
wookieface
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Rep: Reputation: 0
Change grub install from kubuntu to opensuse


About one month ago i decided to install kubuntu on my box, on wich i already have opensuse and windows. Opensuse had installed grub, and it's configuration files was on my suse root partition. But then when i installed kubuntu, it somehow overwrote my grub install from opensuse, and it's configuration files was now placed on my kubuntu partition. No big problem so far. But then i decided to format my kubuntu partition, because i didn't like kubuntu. But now each time i boot, i get the grub error 15 file not found. And it's before i can choose wich kernel to boot, so it's not because of that I have bad entries im my grub list file, but because grub can't find it. I would like to know how to pint grub to it.

I have tried installing it by using the first opensuse 10.2 cd, by going to repair-->expert-->install boot loader, and there i have tried playing around with the different settings, but none seemed to work.
 
Old 05-09-2007, 02:14 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If your Windows doesn't boot you will probably have to repair your Windows MBR and then install grub from your Suse CD.
 
Old 05-09-2007, 03:01 PM   #3
wookieface
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb
If your Windows doesn't boot you will probably have to repair your Windows MBR and then install grub from your Suse CD.
I haven't tried booting windows, because of that i can't access it, but i think it sounds like a good solution, so i will try it right away.
 
Old 05-10-2007, 06:24 AM   #4
wookieface
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb
If your Windows doesn't boot you will probably have to repair your Windows MBR and then install grub from your Suse CD.
I have now tried doing what you suggested, but i ran into another problem. None of my windows discs would boot. But I'm now trying to install ubuntu, to use it's bootloader for as long as it takes to fisx opensuses. Apparently the problem is that my already installed grub in the MBR, points to some config files, that aren't available.
 
Old 05-11-2007, 08:22 AM   #5
wookieface
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Well I managed to install ubuntu, an I'm now using Ubuntu's grub, but if I format my ubuntu partition, i would get the same problem. So my point is, how do i change grub in the MBR, so it uses the config files on my opensuse partition, instead of the ones on my ubuntu partition?
 
Old 05-11-2007, 10:16 AM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
It will require changing your grub config, it is referred to as chain loading and there are many threads in these forms and an articles on this site covering it.
 
Old 05-11-2007, 10:43 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
OK you guys may not know it is just a piece of cake to restore Grub.

Each time a Linux is installed all the Grub information is inside that partition. To be precise it is in /boot/grub of that Linux. You only lose it if you format the partition. That Grub can be put into the MBR any time you wish to. The tool to use is a Grub shell available in 90% of the CD.

Just boot up a Live CD like Ubuntu, no need to install it. Type "sudo grub" to activate a Grub shell. Say your Suse partition or its /boot is in partition (hd0,2) and you want it to take over the MBR then the commands in a Grub shell are just
Code:
root (hd0,2)
setup (hd0)
Similarly if you fancy a Linux in (hd1,7) to control the MBR just do
Code:
root (hd1,7)
setup (hd0)
You can kill the Linux but before you do you can copy /boot/grub directory into any partition and execute the above then Grub will be available even after you nuke the Linux.

Remember you can put Grub into a data-only partition, a floppy, a CD, an external hard disk or a pen drive this way.

If you want Grub to work as a slave for you take a look at the Grub Manual.
 
Old 05-11-2007, 12:47 PM   #8
wookieface
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by saikee
OK you guys may not know it is just a piece of cake to restore Grub.

Each time a Linux is installed all the Grub information is inside that partition. To be precise it is in /boot/grub of that Linux. You only lose it if you format the partition. That Grub can be put into the MBR any time you wish to. The tool to use is a Grub shell available in 90% of the CD.

Just boot up a Live CD like Ubuntu, no need to install it. Type "sudo grub" to activate a Grub shell. Say your Suse partition or its /boot is in partition (hd0,2) and you want it to take over the MBR then the commands in a Grub shell are just
Code:
root (hd0,2)
setup (hd0)
Similarly if you fancy a Linux in (hd1,7) to control the MBR just do
Code:
root (hd1,7)
setup (hd0)
You can kill the Linux but before you do you can copy /boot/grub directory into any partition and execute the above then Grub will be available even after you nuke the Linux.

Remember you can put Grub into a data-only partition, a floppy, a CD, an external hard disk or a pen drive this way.

If you want Grub to work as a slave for you take a look at the Grub Manual.
Thank you saikee, you just saved my day , it works, and now at last i can move on to try to install gentoo.
 
  


Reply

Tags
boot loader, grub


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
OpenSuse 10.2 style Kmenu and kubuntu drko Suse/Novell 2 02-09-2007 11:35 AM
Editing DrakLive-Install (change default grub options) Val-Ent Linux - General 0 01-05-2007 03:11 AM
Kubuntu vs openSUSE vs Mandriva BlahBlah_X Linux - Distributions 6 12-09-2006 06:27 AM
LXer: DistroWatch Weekly: Kubuntu vs openSUSE, Quo vadis Linux distribution LXer Syndicated Linux News 1 08-28-2006 08:32 AM
GRUB gives error messages after a OpenSuSE install attempt on a External HD mandrakethepenguin Linux - General 1 01-19-2006 03:37 PM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration