LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   grub fix help please (https://www.linuxquestions.org/questions/linux-software-2/grub-fix-help-please-792650/)

gow1 03-02-2010 10:08 AM

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.

jschiwal 03-02-2010 11:26 AM

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.

gow1 03-02-2010 12:13 PM

grub
 
Quote:

Originally Posted by jschiwal (Post 3882833)
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.

gow1 03-02-2010 06:20 PM

insight
 
Quote:

Originally Posted by jschiwal (Post 3882833)
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 .

syg00 03-02-2010 06:27 PM

Quote:

Originally Posted by gow1 (Post 3882732)
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.

gow1 03-02-2010 06:35 PM

thanks
 
Quote:

Originally Posted by syg00 (Post 3883248)
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

gow1 03-05-2010 08:58 AM

Quote:

Originally Posted by syg00 (Post 3883248)
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.

syg00 03-05-2010 04:06 PM

Go here - hit the "Download Now" button. Read it, run it.

gow1 03-05-2010 11:49 PM

results.txt
 
1 Attachment(s)
Quote:

Originally Posted by syg00 (Post 3887498)
Go here - hit the "Download Now" button. Read it, run it.

got it thanks for your help.

gow1 03-09-2010 11:09 PM

help
 
Quote:

Originally Posted by gow1 (Post 3887878)
got it thanks for your help.


can anyone help?

syg00 03-10-2010 12:10 AM

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.

gow1 03-11-2010 11:59 AM

Quote:

Originally Posted by syg00 (Post 3892456)
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?

gow1 03-19-2010 11:06 AM

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


All times are GMT -5. The time now is 06:37 AM.