LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-03-2006, 12:12 PM   #1
alaskazimm
Member
 
Registered: Mar 2004
Location: Watching it snow in bush Alaska
Distribution: *ubuntu, Smoothwall, WinXP Pro
Posts: 126

Rep: Reputation: 15
Chainloading other Linux


I dual boot Gentoo and Win2k and want to try other Linux distros. So I installed Ubuntu to it's own hard drive (Win = hda, Gentoo = hdb, Ubuntu = hdd, cdrom = hdc) and when it got to the grub install portion, I installed it to hdd. Then to boot into Ubuntu, I added this entry to the Gentoo grub
Code:
title=Ubuntu Linux
rootnoverify (hd2,0)
chainloader +1
But when that is chosen, I get an error saying there is no executable file found and grub errors out. However, when I add this entry to Gentoo grub
Code:
title=Ubuntu Linux
kernel /boot/vmlinuz-2.6.12-10-k7 root=/dev/hdd1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-k7
it works. Do I have the chainloader syntax wrong? Is it possible to chainload Ubuntu? If the Ubuntu kernel is upgraded via Synaptic, it automatically updates it's own grub. But then I still need to boot into Gentoo to update that grub to point to the right image, etc... Not difficult, just an added step.
 
Old 01-03-2006, 03:57 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'm still learning too---so take this with salt....

Chainloader sends the system to the boot sector of a partition---not to the mbr of the drive. When you installed grub, was it to the mbr or to the partition?

Also (I think) chainloader works from the same disk as where grub is. IF grub is on disk one, and you want to chain-load into partition 1 of diks, Im not sure how that works.

Take a look at THIS mind-blower: http://www.justlinux.com/forum/showthread.php?t=143973


Off-topic diversion: Faith is what you believe, and no more. None of us can claim to know the absolute truth--even if there is such a thing. I REALLY like another quote found here: "It is much more interesting to talk to those seeking the truth, than to those who think they have found it."
 
Old 01-03-2006, 04:07 PM   #3
alaskazimm
Member
 
Registered: Mar 2004
Location: Watching it snow in bush Alaska
Distribution: *ubuntu, Smoothwall, WinXP Pro
Posts: 126

Original Poster
Rep: Reputation: 15
I installed grub to the partition of /dev/hdd1 and not the member. I also modified the rootnoverify (hd2,0) to read root (hd2,0) per the thread you gave. 97? and I can hardly keep 3 straight. Anyway, it didn't work. I did have trouble installing grub and now i'm thinking it didn't take. I don't have anything important on Ubuntu so maybe I'll try a reinstall.

Off-topic reply: I do believe there is absolute truth as found in the Bible. The Bible is true, not because I believe it to be true, it is true whether or not I believe it. Also, faith is not merely what you believe. It is dependant on the object of your faith. Faith is worthless if what you believe is not true.
 
Old 01-03-2006, 05:25 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by alaskazimm
I don't have anything important on Ubuntu so maybe I'll try a reinstall.
That is often the best way---seems crude, but it really is often the easiest solution.

Good luck
 
Old 01-04-2006, 12:02 PM   #5
alaskazimm
Member
 
Registered: Mar 2004
Location: Watching it snow in bush Alaska
Distribution: *ubuntu, Smoothwall, WinXP Pro
Posts: 126

Original Poster
Rep: Reputation: 15
Yep, reinstalled. Grub installed fine, and can now chainload Ubuntu. As you said, crude but effective.
 
Old 01-04-2006, 04:14 PM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
As of post #1, you should have been able to write grub stage1 to the Ubuntu partition boot sector to fix the problem.

From Gentoo:

# grub
grub> root (hd2,0)
grub> setup (hd2,0)
grub> quit
#

If you used grub-install in your tests, then that may be why it failed. I find grub-install to be somewhat unreliable, as compared to configuring grub natively.

Barring any hardware/BIOS issues, it should have booted fine with chainloader as written. I have only run into one case where chainloading to another disk didn’t work and I think that was a BIOS issue.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Chainloading in Linux saikee LinuxAnswers Discussion 7 07-09-2010 05:16 PM
chainloading lilo mimithebrain Linux - Software 7 05-18-2005 05:31 PM
Grub difficulty chainloading 2000 and XP michapma Linux - General 2 05-17-2005 12:41 AM
dualboot grub chainloading copy and paste no success amarillo Linux - Distributions 4 02-23-2005 08:52 PM
grub and second linux, chainloading lacrimae Linux - Software 4 07-15-2002 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:49 AM.

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
Open Source Consulting | Domain Registration