LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-07-2008, 11:41 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 229

Rep: Reputation: 30
Two bootloaders: Install issue with ubuntu


I have a machine with two 40 gb sata hard drives. The master has WinXP on it.

I booted up Ubuntu 8.04 from the cd and told it to install to sdb in a guided (don't know why it's called guided when it doesn't ask me any other questions). It installed and told me to reboot.

It came back up with a grub prompt. I'm /guessing/ it installed the bootloader onto the sda drive over the windows bootloader, but something isn't working? I type "boot" and it tells me the kernel must be loaded first.

I looked up this issue as best I could and it was recommended to re-install and put the boot loader on sdb and boot to sdb.

That gives me a "graphical" boot loader (in that I can use the arrow keys to select all the OS options: ubuntu 1,2,3, and XP), but none of them actually boot an OS.

Before I see the graphical bootloader on sdb, I get:
Error 15 file not found

When I try to load ubuntu from the bootloader, I get the same error.

When I try to load XP from the bootloader, I get:
Error 13: Invalid or unsupported executable format

All options then just dump me back in the bootloader.

I lose!
 
Old 10-08-2008, 12:24 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
When you get to the grub menu (from memory here so read the screen as you do it):

Hit escape to go into edit mode.
Select the Ubuntu option
Hit E to edit

The lines used to boot probably have entries along the lines of

root (hd0,1)
kernel ....

etc.

Try changing "hd0" to "hd1" (or if it's saying hd1, change to hd0).

If that works, you can change it permanently by editing /boot/grub/menu.lst (or it could be called grub.conf in Ubuntu)

See how you go.
 
Old 10-08-2008, 01:27 AM   #3
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
When you get to the grub menu (from memory here so read the screen as you do it):

Hit escape to go into edit mode.
Select the Ubuntu option
Hit E to edit

The lines used to boot probably have entries along the lines of

root (hd0,1)
kernel ....

etc.

Try changing "hd0" to "hd1" (or if it's saying hd1, change to hd0).

If that works, you can change it permanently by editing /boot/grub/menu.lst (or it could be called grub.conf in Ubuntu)

See how you go.
I love you, dude.

Got Ubuntu working great with this switch.

Still haven't got windows to boot from here ... got an idea on that one? It was set initially on hd1,0 and hd0,0 has worked for all Ubuntu. Windows, I tried setting to 00, 01, 11, and 10, but none of them booted Windows. I just got the grub "Starting up..." and then a blinky cursor.

Maybe throwing in the windows xp disk and doing a recovery? Not sure if that would repair the windows bootloader (or even if that's the issue).
 
Old 10-08-2008, 02:13 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You will probably need to reinstall the Windows loader. I know you do it with a Windows install/rescue disk, but if you search LQ you'll find a description.

You'll need to fiddle a bit for the Windows side, because Windows likes to feel important (it needs to think it's on the boot device). Here's how I call it from grub:

Code:
title Windows
    rootnoverify (hd1,0)
    map (hd1) (hd0)
    map (hd0) (hd1)
    makeactive
    chainloader (hd1,0)+1
Adjust hd0 and hd1 accordingly

Last edited by billymayday; 10-08-2008 at 02:14 AM.
 
Old 10-08-2008, 02:26 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
See post #3

http://www.linuxquestions.org/questi...ows+bootloader

Sounds like you need fixmbr on the Windows rescue disk.
 
Old 10-08-2008, 02:55 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Actually, if you haven't changed anything yet, I'd try booting directly from your Windows drive (interrupt the BIOS boot process with the del key or whatever your copmputer uses and select the relevant HDD)
 
  


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
Ubuntu Install Issue - Please Help!! sarasr Ubuntu 2 05-24-2008 02:57 AM
Ubuntu "Gutsy" install issue crash_override_me Ubuntu 4 12-11-2007 02:35 AM
Ubuntu boot issue after install, no dual boot milad.hanna Linux - General 1 11-07-2007 02:32 PM
Ubuntu 7.04 SATA Drive Install Issue Adler Linux - Laptop and Netbook 6 05-23-2007 09:33 PM
Install issue with Ubuntu 6.06 when manually setting partitions hamster Ubuntu 9 10-22-2006 06:21 AM


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