LinuxQuestions.org
Register a domain and help support LQ
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, 11: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, 12:26 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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, 01: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, 07: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, 07:27 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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, 07: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, 09: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, 05:06 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Go here - hit the "Download Now" button. Read it, run it.
 
Old 03-06-2010, 12:49 AM   #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, 9 views)
 
Old 03-10-2010, 12:09 AM   #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, 01:10 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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 01:12 AM.
 
Old 03-11-2010, 12:59 PM   #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, 12:06 PM   #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


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


All times are GMT -5. The time now is 08:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration