PDA

View Full Version : How to add Ubuntu & Kubuntu to my boot list


kazaanova
24th November 2009, 06:50 AM
Unhappy How to add Ubunut & Kubuntu to my boot list
Hi all,

I hope you can help me.

I've installed Fedora 12 but now i can not login to Ubuntu 9.10 or Kubuntu 9.10
i see in my menu list just fedora & win 7
i add ubuntu & kubuntu to menu.lst Such as the previous illustration
Quote:
Yes, but add a line in there to tell Grub where Ubuntu's root partition is. For example:

title Ubuntu 8.10, kernel 2.6.27-14-generic
root=(hd0,2) <adjust for your drive and partition numbers
uuid 38cf1a5d-849c-441e-b7df-51d5b3a1cb10
kernel /boot/vmlinuz-2.6.27-14-generic root=UUID=38cf1a5d-849c-441e-b7df-51d5b3a1cb10 ro quiet splash
initrd /boot/initrd.img-2.6.27-14-generic
quiet
now appeared but ..
When I try to enter the Ubuntu Give me Error 17 : Cannot mount selected partition
& Kubuntu Give me Error 22 : No such partition
What is the solution :confused:

glennzo
24th November 2009, 07:45 AM
The solution, as I see it, is to re-install the Ubuntu 9.10 boot loader. Ubuntu 9.10 uses grub2. I don't believe that grub 0.97 can boot a grub2 system but grub2 will boot the OS's that use grub 0.97. Grub2 will pickup on all of the installed OS's. Re-installing the Ubuntu 9.10 bootloader is probably the easiest solution.

kazaanova
24th November 2009, 10:10 AM

The solution, as I see it, is to re-install the Ubuntu 9.10 boot loader.
How I do That I am still a child crawling in this world :3ayoo6:

glennzo
24th November 2009, 10:30 AM
Look here http://kubuntuforums.net/forums/index.php?topic=3106368.0 or here https://help.ubuntu.com/community/Grub2. Probably a million more links about how to reinstall grub2 on the Internet.

bob
24th November 2009, 11:33 AM
One other option, which I'm using, is to use a chainloader entry in Fedora's grub.conf, which passes the boot from the 'old' style grub to grub2:

title Ubuntu
rootnoverify (hd0,5)
chainloader +1

Adjust to your drive partition info.

glennzo
24th November 2009, 11:36 AM
Hey, if that works then it is by far the easier alternative. Bob, you know a lot more about this Linux stuff then you give yourself credit for.

bob
24th November 2009, 12:15 PM
Linux stuff? You mean we're using LINUX??? Oh wow, something new every day... :D

Yeah, I'm still booting a few things with configfile, although it's getting harder every day to find the right combo. Ext4 won't boot that way and you're absolutely right about grub2. The easiest method with that is to let it run the whole show and do the update every time you change kernels in any distro. It will pick up the new kernel entries and new distros very nicely. The problem is that you end up with a LONG list of boot options if you have multiple distros on your drives. In my case, I'm booting 9 distros/versions and it's a bit unwieldy.

Edit: Just as an example, in Ubuntu, after running "sudo grub-mkconfig -o /boot/grub/grub.cfg" to update my grub.cfg, here's how it looks (attached file). Want to boot THAT all day?

glennzo
24th November 2009, 01:32 PM
Can't really read the file at the moment as I'm viewing in Windows Notepad but it looks to be a couple average pages long. I generally get rid of all but one kernel for each distro that I'm booting but I make a backup copy of /boot/grub/menu.lst before I edit. Of course, if the new kernel has issues I can always restore the last backup. That way I avoid a list like yours :eek:

So, kazaanova, all fixed up are we? Things back to normal?

bob
24th November 2009, 05:04 PM
Looks like Kazaanova has taken off for awhile; hope he updates us on success/failures.

Glenn; yeah, it's really a chunk and a half of text involved, but you have to remember that with grub2, you're going into very deep waters when you try to edit/modify it and the next update will just post it all over again. That's one reason I'm looking to cut back on my side-distro exploits and to avoid using grub2 until the last possible moment.

glennzo
25th November 2009, 01:36 AM
There was an update for Ubuntu 9.10 that I ran this morning on the laptop. That would explain why I booted the thing tonight, walked away and came back to Vista staring me in the face. There are now 2 Ubuntu kernels listed so the default OS moved down 1 notch :rolleyes: Have to get into Ubuntu and fix that ..

bob
25th November 2009, 01:45 AM
I think that will be "gedit /etc/default/grub"

kazaanova
26th November 2009, 01:16 PM
Thanks bob & glennzo
Solution is very simple
Decreasing the number of one of the partition
Example (hd0.3) Become (hd0.2)
Problem has been resolved successfully and enter the Ubuntu & Kubuntu
And with your permission bob I will explain the problem in a new topic
&
One other option, which I'm using, is to use a chainloader entry in Fedora's grub.conf, which passes the boot from the 'old' style grub to grub2:

title Ubuntu
rootnoverify (hd0,5)
chainloader +1
not working

Edit: And sorry for the delay I was very busy

bob
26th November 2009, 01:25 PM
Well, glad you got it working. Don't know why the chainloader didn't work for you; it's working fine here, but whatever it took, good enough!

kazaanova
26th November 2009, 01:30 PM
Thanks again bob and I hope that you accept my friendship
amir

Edit: Thanks again bob and I hope that you accept my friendship
amir

bob
26th November 2009, 01:33 PM
Accepted with thanks.