LinuxQuestions.org
Visit Jeremy's Blog.
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 05-16-2004, 01:47 PM   #1
gazaa526
LQ Newbie
 
Registered: May 2004
Posts: 13

Rep: Reputation: 0
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
 
Old 05-16-2004, 01:59 PM   #2
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
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

Last edited by Covel; 05-16-2004 at 04:41 PM.
 
Old 05-16-2004, 02:15 PM   #3
Larcen
LQ Newbie
 
Registered: May 2004
Distribution: Gentoo Baby! Rock Solid!
Posts: 15

Rep: Reputation: 0
Gentoo w00ta!

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

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

Last edited by Larcen; 05-16-2004 at 02:16 PM.
 
Old 05-16-2004, 03:47 PM   #4
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
Gentoo handbook rules
 
Old 05-16-2004, 08:39 PM   #5
Larcen
LQ Newbie
 
Registered: May 2004
Distribution: Gentoo Baby! Rock Solid!
Posts: 15

Rep: Reputation: 0
Yes, yes it does.
 
  


Reply



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
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
grub booting woes :S kevingpo Fedora 1 06-17-2005 11:10 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
GRUB Installation woes with Gentoo ryan83vt Linux - General 3 02-19-2004 04:06 AM
Grub Woes terminaljunkie Linux - Software 4 03-19-2003 05:39 PM

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

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