LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 10-24-2009, 11:37 PM   #1
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 431

Rep: Reputation: 32
installing grub in Ubuntu Karmic Koala Beta


Hi,

I am trying to install grub on my laptop running Ubuntu. I have installed Mandriva (with / mounted on /dev/sda7), Slackware (with / on /dev/sda13) and Ubuntu (with / on /dev/sda10). I had modified grub on /dev/sda7 to make booting into the three distros along with Windoze.

The question is I want to use the grub from Ubuntu for booting. Sowhile in Ubuntu, as root I issued the command grub and at the grub prompt, I issued the following commands -

Quote:
grub> find /boot/grub/stage1
(hd0,6)
(hd0,12)
so it is evident that it is not finding stage1 in /boot/grub in the root partition of Ubuntu. I tried update-grub, which created menu.lst at /boot/grub/. However grub still fails to find stage1 in Ubuntu. Any idea where I am going wrong?
 
Old 10-25-2009, 04:55 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,550

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Are all the other Grub files in the /boot/grub partition? Is the kernel file in the boot directory? If you are booting from Mandriva, there is no need for any of the stage files in Ubuntu but you would need the kernel.
 
Old 10-26-2009, 02:01 AM   #3
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 431

Original Poster
Rep: Reputation: 32
Thanks for the prompt reply!

I have the following files in the /boot/grub/ folder -

Quote:
menu.lst
grubenv
default
by kernel files if you mean vmlinuz* files, then they are present in /boot/ folder. Am I missing anything?
 
Old 10-26-2009, 10:45 AM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,550

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
You're missing a number of files. Not sure what selection you made for bootloader during Ubuntu installation but the stage1, stage2 and stage1.5 files as well as device.map are not there. If you boot from Mandriva, they're not necessary but, if you want to boot from Ubuntu, they are.

If you have your Ubuntu Live CD or installation CD, you could load it and create a mount point for your Ubuntu installation and copy the grub files to the Ubuntu /boot/grub directory and then run the grub install commands. If you don't know how to do this, post back and you should get some help.
 
Old 10-26-2009, 11:39 AM   #5
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 431

Original Poster
Rep: Reputation: 32
Ok!

A small problem though. I have a live CD of ubuntu 9.04, but I have upgraded to Karmic Koala beta online. Can I use the 9.04 live cd to copy the grub files?
 
Old 10-26-2009, 01:31 PM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I would doubt it, Koala uses GRUB 2, which is radically different from the GRUB we have been used to for years.

Just grab a 9.10 cd and use the "fix broken sysstem" option to reinstall the bootloader.
 
Old 10-27-2009, 02:38 AM   #7
adityavpratap
Member
 
Registered: Dec 2004
Location: Hyderabad, India
Distribution: Slackware 13, Ubuntu 12.04
Posts: 431

Original Poster
Rep: Reputation: 32
Ok! I'll try that.
 
Old 10-27-2009, 05:28 AM   #8
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Hmm, according to the release notes, upgrades do not replace GRUB with GRUB2 so that 9.04 cd may work after all...
 
Old 10-27-2009, 07:10 AM   #9
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,229

Rep: Reputation: 286Reputation: 286Reputation: 286
See this tutorial from the ubuntu wiki about grub2:
https://wiki.ubuntu.com/Grub2
It describes how to fully upgrade from grub legacy in 9.04 to grub2 in 9.10. Once you are fully upgraded to grub2 you should be able to just run sudo update-grub to add all your operating systems to grub2's
/boot/grub/grub.cfg file.
If any of you operating systems are not detected after updating grub, create a custom entry in /etc/grub.d as is discussed under "User-defined Entries" in that tutorial. The run "sudo update-grub" again.
I had to add a custom entry to boot my Slackware64 partition. The advice from that tutorial worked perfectly.
I did a clean install of Karmic though, so I did not have to upgrade from grub legacy to grub2.

Last edited by tommcd; 10-27-2009 at 07:13 AM.
 
  


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
LXer: Upgrade Ubuntu 9.04 (Jaunty Jackalope) to Ubuntu 9.10 (Karmic Koala) Beta LXer Syndicated Linux News 0 10-12-2009 07:50 AM
LXer: Karmic Koala beta ships, praised for fast boots LXer Syndicated Linux News 0 10-08-2009 12:50 AM
update to karmic koala beta YellowHammer Ubuntu 2 10-04-2009 11:14 AM
LXer: Install The Proposed Comunity Themes For Ubuntu Karmic Koala, In Ubuntu Jaunty LXer Syndicated Linux News 0 09-17-2009 02:20 AM
LXer: What's New In Ubuntu 9.10 Karmic Koala Alpha 5 (With Screenshots) LXer Syndicated Linux News 0 09-04-2009 05:10 PM


All times are GMT -5. The time now is 02:41 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