LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-02-2010, 10:08 AM   #1
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Rep: Reputation: 0
Smile grub fix help please


I have 3 os installed. I first already had windows xp installed on a raid striped drive, i then installed a sata drive and installed vista ultimate, then i inserted an ide drive and installed Ubuntu. well now ubuntu's boot loader was installed oh hd0 and when i boot i get an error 21 when booting hwo can i fix this. so that grub takes over the boot loader and i see all the other OS's. I have to boot now to cd using super grub in order to select the os i want to login into. how can i fix this so grub comes up and sees the raid config on the first windows xp partition where grub is installed.
 
Old 03-02-2010, 11:26 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Grub won't be able to read it's own stage1_5 files in /boot/grub if the grub directory is in a raid partition. It is best to have /boot on a non raid partition unless you are using Raid-1 and grub can access a partition member directly.

Another potential problem when mixing sata and pata drives is that at boot time, the drive order are seen differently then the kernel sees them after booting. You may need to edit the /boot/grub/device.map to fix this. Otherwise you won't be able to update the grub configuration. If grub booted before from hd0, see if this is the cause.
 
Old 03-02-2010, 12:13 PM   #3
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Smile grub

Quote:
Originally Posted by jschiwal View Post
Grub won't be able to read it's own stage1_5 files in /boot/grub if the grub directory is in a raid partition. It is best to have /boot on a non raid partition unless you are using Raid-1 and grub can access a partition member directly.

Another potential problem when mixing sata and pata drives is that at boot time, the drive order are seen differently then the kernel sees them after booting. You may need to edit the /boot/grub/device.map to fix this. Otherwise you won't be able to update the grub configuration. If grub booted before from hd0, see if this is the cause.

yes when i installed ubuntu it load grub to the hd0 drive. the raid config is on my MB which is a nvidia raid configed as a striped raid i dont knwo if that is raid 1 or raid 0. the options for config are striped and mirror. i did striped and both my hds are now one with space from 400gig a price to 800 gig or technically 740gig.

how can i fix grub? should i try and reinstall ubuntu to move the grub boot loader to a different Hd0.
 
Old 03-02-2010, 06:20 PM   #4
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
insight

Quote:
Originally Posted by jschiwal View Post
Grub won't be able to read it's own stage1_5 files in /boot/grub if the grub directory is in a raid partition. It is best to have /boot on a non raid partition unless you are using Raid-1 and grub can access a partition member directly.

Another potential problem when mixing sata and pata drives is that at boot time, the drive order are seen differently then the kernel sees them after booting. You may need to edit the /boot/grub/device.map to fix this. Otherwise you won't be able to update the grub configuration. If grub booted before from hd0, see if this is the cause.
can you give me some straightforward steps to accomplish this .
 
Old 03-02-2010, 06:27 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by gow1 View Post
I have to boot now to cd using super grub in order to select the os i want to login into.
If this works, it (probably) means everything is basically o.k. From Linux, get the bootinfoscript from sf.net, run it from a terminal and post the RESULTS.txt here so we can see what the bootloader is attempting to use.
 
Old 03-02-2010, 06:35 PM   #6
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
thanks

Quote:
Originally Posted by syg00 View Post
If this works, it (probably) means everything is basically o.k. From Linux, get the bootinfoscript from sf.net, run it from a terminal and post the RESULTS.txt here so we can see what the bootloader is attempting to use.
i will get that for you and post the output. thanks
 
Old 03-05-2010, 08:58 AM   #7
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
If this works, it (probably) means everything is basically o.k. From Linux, get the bootinfoscript from sf.net, run it from a terminal and post the RESULTS.txt here so we can see what the bootloader is attempting to use.
ok i was not able to find this file:

bootinfoscript

where do i go and how do i post the results.txt thanks for your help.
 
Old 03-05-2010, 04:06 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Go here - hit the "Download Now" button. Read it, run it.
 
Old 03-05-2010, 11:49 PM   #9
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
results.txt

Quote:
Originally Posted by syg00 View Post
Go here - hit the "Download Now" button. Read it, run it.
got it thanks for your help.
Attached Files
File Type: txt RESULTS1.txt (14.5 KB, 23 views)
 
Old 03-09-2010, 11:09 PM   #10
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
help

Quote:
Originally Posted by gow1 View Post
got it thanks for your help.

can anyone help?
 
Old 03-10-2010, 12:10 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sorry, missed your earlier response.
That looks very messed up. Try "configfile (hd4,0)" from the grub prompt and see if that gets you the boot menu. If it does, see if Windows will boot. Ubuntu probably won't boot - use the arrow keys to highlight the Ubuntu option, and hit "e" to edit it.
Then highlight the "root" line and hit "e" again and change it to "root (hd4,0)"
Then hit "b" to boot it.

If that (all) works, edit /boot/grub/menu.lst and change the (hd3,0) to (hd4,0). On the next reboot, instead of the configfile command, do this to update the MBR
Code:
root (hd4,0)
setup (hd0)
This may (probably will) break again if you add and/or remove any disks.

Last edited by syg00; 03-10-2010 at 12:12 AM.
 
Old 03-11-2010, 11:59 AM   #12
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by syg00 View Post
Sorry, missed your earlier response.
That looks very messed up. Try "configfile (hd4,0)" from the grub prompt and see if that gets you the boot menu. If it does, see if Windows will boot. Ubuntu probably won't boot - use the arrow keys to highlight the Ubuntu option, and hit "e" to edit it.
Then highlight the "root" line and hit "e" again and change it to "root (hd4,0)"
Then hit "b" to boot it.

If that (all) works, edit /boot/grub/menu.lst and change the (hd3,0) to (hd4,0). On the next reboot, instead of the configfile command, do this to update the MBR
Code:
root (hd4,0)
setup (hd0)
This may (probably will) break again if you add and/or remove any disks.

Try "configfile (hd4,0)" from the grub prompt :

do i do this within super grub?
 
Old 03-19-2010, 11:06 AM   #13
gow1
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
I am not going to be adding or removing any disks, please tell me how to do what you need so i can get this fixed please. thank you
 
  


Reply

Tags
grub



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
grub drops to grub prompt on boot, but can use commands to find menu... fix? greenmuzz Linux - Software 7 06-07-2009 03:07 AM
GRUB error 15: How to fix? DKMtnDrifter Slackware 15 04-21-2007 10:22 PM
How do I fix the Grub Error 18!?!?! pastordan Linux - General 3 03-09-2006 07:20 PM
how to fix grub problem? an2ny_18 Linux - Newbie 30 03-09-2006 04:58 PM
Please help me fix GRUB - error13 nyheat Linux - Newbie 8 08-31-2005 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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