LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   grub woes (https://www.linuxquestions.org/questions/linux-software-2/grub-woes-182115/)

gazaa526 05-16-2004 01:47 PM

grub woes
 
well i finally got agp gart and dri working in mandrake10. then i figured it would be a great time to install windows, and whaddaya know, it wiped the mbr.
i didnt make a rescue disk, cuz rescue disks are for pussies. and/or smart people. so i stuck in the 10 install cd, told it to reinstall the bootloader. it tried to fix lilo, which wouldve been fine, but i got error 2 and quit. lovely.
so i went to rescue and did grub-install --root-directory=/dev/hd0 it didnt work so i tried hda,b,1,etc etc. honestly i dont remember the partitions. i carved up the disks last night and im not sure what partition holds what.
i also tried "grub" and then grub>install but i couldnt get anywhere with that either.

im really not in the mood to reinstall after making a kernel that finally work well with my radeon. i dont care what bootloader i use, as long as its not the windoze one. i just need to get back into linux.

thanks

Covel 05-16-2004 01:59 PM

Assuming you only have one HD, to have a clue about your partition settings do

fdisk /dev/hda

then enter 'p'
then quit

to install grub run grub

grub> root (hd0,x)
grub> setup (hd0)
grub> quit

Replace x by the number of you root partition.

You also need /boot/grub/grub.conf set to your configuration. Se if you have a grub.conf.example and try to edit it for your configuration.


This is mine:

Code:

# Boot automatically after 30 secs.
timeout 15

# By default, boot the first entry.
default 0

# Fallback to the second entry.
#fallback 1

splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title Gentoo Linux
root (hd0,2)
kernel /boot/kernel-2.6.5-04.05.09 root=/dev/hda3 vga=792

# For booting WindowsXP
title WindowsXP
rootnoverify (hd0,0)
makeactive
chainloader  +1


Larcen 05-16-2004 02:15 PM

Gentoo w00ta!

This might even help to clear up Covel's reply:

http://www.gentoo.org/doc/en/handboo...le&full=1#grub

Covel 05-16-2004 03:47 PM

Gentoo handbook rules :D

Larcen 05-16-2004 08:39 PM

Yes, yes it does. :)


All times are GMT -5. The time now is 02:27 AM.