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 11-20-2005, 11:54 PM   #1
Hit3k
Member
 
Registered: Nov 2005
Location: Australia
Distribution: Ubuntu, Slackware, Gentoo
Posts: 32

Rep: Reputation: 15
Grub is messed up


I was installing gentoo I got it all right I configured grub did grub-install /dev/hda and when i rebooted I didnt get a choice I got the grub command line any ideas how i can fix this(I also installed ubuntu overwriting the gentoo partitions and it did the same thing)
 
Old 11-20-2005, 11:55 PM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
Have you tried running "startx" to see if it will start the gui so you can check out in your control center how the bootloader is configured. Did you make sure to put grub in the MBR? It may or may not work if you put it somewhere else. I use Lilo and never had a single problem but I've heard of people having problems with both b/c of where they put them.
 
Old 11-20-2005, 11:58 PM   #3
Hit3k
Member
 
Registered: Nov 2005
Location: Australia
Distribution: Ubuntu, Slackware, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
I'm gonna try lilo and I cant boot into linux I'm on windows at the moment -sigh- I'll try it on the weekend I got to much school work due
 
Old 11-21-2005, 07:08 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Seem to me your haven't installed Grub in both cases.

Should have kept an eye on Grub after you issued the Grub-install command because Grub always reports back.

Is your disk a Sata? Are you sure you disk is named hda, not sda, not hdb etc?

hda means you have an IDE and is hooked to the primary master position in the motherboard.

Also you can boot your Linux manually with Grub command.

geometry (hd0) allows you to see the partitions in disk 0
help allows you to see the commnads available

to boot a Linux in partition (hdi,j) <--- jth partition of disk i you need to type these lines

Root (hdi,j)
kernel /boot/vmlinuzxxxxx root=/dev/hd?? ro
initrd /boot/initrdxxxxx
boot

where hd?? is your partition known in Linux, like hda3, Grub's notation is (hd0,2)
vmlinuzxxxx and initrdxxxx are the knernel and initrd ram disk file names. These files are always stored in /boot directory of your Linux which you can access by booting the PC to a Live CD.

Last edited by saikee; 11-21-2005 at 07:17 PM.
 
Old 11-22-2005, 01:05 AM   #5
Hit3k
Member
 
Registered: Nov 2005
Location: Australia
Distribution: Ubuntu, Slackware, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
My Linux Partition is /dev/hdb my boot partition is /dev/hdb1 so on so forth. I did everything the gentoo handbook told me to do for genkernel It said it installed succesfully without errors i even used the grub command this time from the live cd maybe I'll try grub-install again
 
Old 11-22-2005, 01:35 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
try the following instead - presuming you are chroot'd correctly and copied /proc/mounts
Code:
grub-install --root-directory=/boot /dev/hda
grub-install is just a script, and defaults to /root, whereas I presume you did the Gentoo way, and used /boot.
Try it and let us know. Although if the handbook is wrong, I'm sure others would have screamed by now.
 
Old 11-22-2005, 01:59 AM   #7
Hit3k
Member
 
Registered: Nov 2005
Location: Australia
Distribution: Ubuntu, Slackware, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
Cool I'll try it thanks
 
Old 11-22-2005, 04:11 AM   #8
Hit3k
Member
 
Registered: Nov 2005
Location: Australia
Distribution: Ubuntu, Slackware, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
It doesnt work.. It says it needs to be --root-directory=DIR/boot i just dunno maybe I'll install gentoo as my primary OS
 
Old 11-22-2005, 04:20 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
No good giving up that easily - try the following from the grub prompt you get on booting
Code:
root(hd1,0)    # hit "enter"
setup(hd0)    # "enter" again
boot    # again ...
 
Old 11-22-2005, 06:07 AM   #10
Hit3k
Member
 
Registered: Nov 2005
Location: Australia
Distribution: Ubuntu, Slackware, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
I tried the first two commands no boot though I'll try thanks(I'm on my windows partition at the moment just thought I'd point that out)
 
  


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
Grub loader messed up Sousuke Linux - General 1 08-12-2005 06:07 PM
messed up grub with hd install what to do? gonus Debian 5 09-29-2004 09:16 PM
Grub is all messed up...ahhhhhh!!! dontfuxwithtux Linux - Newbie 3 01-17-2004 03:53 PM
Grub install messed up hda lokee Linux - Software 5 11-20-2003 06:01 PM
GRUB loader messed up filkacik Linux - Software 6 10-04-2003 03:39 PM

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

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