LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-14-2005, 11:15 PM   #1
Cybes51
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
Something wrong with GRUB


I have recently installed SuSe linux on my seccond hard drive, therfore i have microsoft on one and linux on the other, until now i have had no problems with grub. but unfortunately i have little experience with the coding...

There is a possibility that the partion that SuSe was on was damaged.

This is the message that i am receiving when i start up my computer.

GNU GRUB version 0.95 (639k lower / 1045696k upper memory)

[Minimal BASH-like line editing is supported. For the first work, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device filename.]

grub>

I receive this almost immediately after my intel screen, through this i am able to enter the bios.
 
Old 03-15-2005, 01:33 AM   #2
gerardt
Member
 
Registered: Feb 2005
Location: South Africa
Distribution: SuSE
Posts: 60

Rep: Reputation: 15
Grub has a find command in the command line. Find your kernel and ramdisk and boot manually

find /boot/vmlinuz
(should return something like (hd0,0))
root (hd?,?)
find /etc/inittab
kernel /boot/vmlinuz root=/dev/hd?? (add 1 to numbering so that hd0,0 would be hda1)
initrd /boot/initrd
boot

(This should enable you to boot, you will then need to check your menu.lst and fix the problem. It will need the same settings as you typed in to boot.)
 
Old 03-15-2005, 03:19 AM   #3
Cybes51
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
RE:

that seams logical but i think i have deleted the whole linux partion, (this is how my comp is set up i have 2 hard drives the first one is completely microsoft and the first half of the seccond one is un partioned, the other half of the seccond one had the 2 SUSe partions)
 
Old 03-15-2005, 03:25 AM   #4
gerardt
Member
 
Registered: Feb 2005
Location: South Africa
Distribution: SuSE
Posts: 60

Rep: Reputation: 15
when you typed find /boot/vmlinuz did it return a value?
 
Old 03-15-2005, 09:10 AM   #5
dylants
Member
 
Registered: Oct 2003
Location: Bath UK
Distribution: RedHat 7,9 RHEL 2.1-4 Suse 9.1, 9.2, Ubuntu, Centos 3-4, Fedora 3-5
Posts: 44

Rep: Reputation: 15
Might I suggest that you burn a cd with a live distro (like knoppix) and then use
Code:
fdisk -l /dev/hda

or 

fdisk -l /dev/hdb
to see what partitions you have installed on your harddrives. You should then be able to use this information to do what gerardt suggested to allow you to boot. If you have deleted the partition then you could try looking for a partition rescue tool (I'm afraid I don't know any) or re-install if there is nothing important to rescue.
 
Old 03-15-2005, 07:03 PM   #6
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
i had the same problem with Redhat 9...
i had to boot manually everytime i restart the server...
I can't seem to fix the problem for some reason, my grub.conf looks fine, I did this in grub prompt when i logged into the server:
Code:
device (hd0,0) /dev/hda
root (hd0)
setup (hd0)
Nothing works... Finally i reinstalled everything
 
Old 03-15-2005, 07:36 PM   #7
vdhussa
LQ Newbie
 
Registered: Dec 2004
Location: New Delhi
Distribution: Gentoo
Posts: 8

Rep: Reputation: 0
Grub is installed in the mbr by the following commands in the grub prompt...

grub> root (hd0,0) (Specify where your /boot partition resides)
grub> setup (hd0) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell)

However for you grub seems to be installed in the mbr alright, but it can't find the second stage... that is the grub.conf file.

Either you have not given the /boot partition address correctly or you have formatted the linux drive, in which case the only option is RE-INSTALL!!!
 
Old 03-15-2005, 07:47 PM   #8
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
Quote:
Either you have not given the /boot partition address correctly or you have formatted the linux drive, in which case the only option is RE-INSTALL!!!
Yup, that's what I did, thanks for the info though

The root and setup works on my P4 test system but not on my AMD64 server... weird... I wonder whether the problem is due to my hardware...
 
Old 03-16-2005, 06:18 AM   #9
gaganjain
LQ Newbie
 
Registered: Mar 2005
Location: noida
Posts: 4

Rep: Reputation: 0
I am not sure but you can try the following-
boot from the linux cd and type at the boot prompt
boot: linux rescue
after it loads the kernel and takes you to the shell prompt type the following set of commands-
sh# chroot /mnt/sysimage
sh# grub -install /dev/hda
sh# exit
sh# exit
the system will reboot and after that the grub will be mounted again.
 
Old 03-16-2005, 07:57 AM   #10
ponky2x
LQ Newbie
 
Registered: Oct 2004
Location: Phillipines
Posts: 2

Rep: Reputation: 0
im also had a trouble with grub. i had erase redhat 9 on my partition with win2k and whaen i boot i see the grub prompt luckily somebody thought me how to boot win2k using grub. my problem is how can i erase grub? ty
 
Old 03-16-2005, 08:42 AM   #11
Cybes51
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
NVM

Thanks for the help but it came too late i tried using microsoft cd and rewrote partition tables and it went downhill for there.
But i managed to get rid of it and then i got into microsoft setup and deleted both hd's and installed microsoft on the seccond one so i ran a program called eData and just unerased all my files off C: i can gladly say through this experience i have decided to never try to install a linux thing again and ill just stick with good old fun and fixable microsoft.
 
Old 03-16-2005, 10:28 AM   #12
young_greg
LQ Newbie
 
Registered: Jun 2004
Location: West Yorkshire
Distribution: Mandrake 10
Posts: 2

Rep: Reputation: 0
I probably have less experince than you with Linux installations.You described exactly my situation.I had Windows ME and Suse 9.2 in a dual boot situation.
I then had problems with Suse not booting.I tried the repair procedure but not successfully.
I then decided that since I had Suse on Dvd I would remove the Linux partitions,using 'Partition Magic' from Windows,and then start again.
However when I came to reboot I had the 'Grub' problem that you so accurately described.
My solution was to Boot using an ME boot disc, and then at the prompt type 'Fdisk /mbr' with a space between Fdisk and mbr..
Windows ME then booted correctly and I could the reinstall Suse 9.2 and all in the garden was beutiful again.
If you are using Windows XP get to a command prompt and type 'fixmbr', without the quotes of course.

Hope some the ramblings will be of assistance.
 
Old 03-16-2005, 05:44 PM   #13
Cybes51
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah that is what i did, but another person told me to enter fixboot and fixmbr, from the xp cd. and my partions were totally screwed on both drives, so, yeah after that i kinda lost control of the situation and said screw it.

But thanks for your reply,
 
Old 03-16-2005, 07:22 PM   #14
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
Nowsure about suse but i reckon it's pretty much the same for most linux distros. Always install windows first then linux, if not windows will overwrite the MBR and you won't be able to load Linux again. Of course there are steps to recover linux but when i was a newbie, i'd say screw it as well

Maybe you can google for "linux +xp dualboot" or something like that...

If you use fixboot and fixbmr, you can boot into your windows but not into your linux anymore. To boot into your linux again, I'd say try the linux boot CD method mentioned by gaganjain... I didn't use grub-install though, instead i went to grub prompt and did this (mine's Redhat 9 so grub's in /sbin):
Code:
# /sbin/grub
grub> device (hd0,0) /dev/hda
grub> root (hd0)
grub> setup (hd0)
grub> quit
Maybe you want to give this a try? Good luck!

Last edited by kenji1903; 03-16-2005 at 07:37 PM.
 
  


Reply


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
whats wrong with this code in grub? HmmLinux Linux - General 2 11-12-2004 04:50 AM
Problem With Grub, wrong partition. Alias5785 Linux - Newbie 9 09-20-2004 02:23 AM
Whats wrong with my GRUB config? Memzback Linux - Newbie 1 04-26-2004 12:25 AM
GRUB can't boot my new configure kernal. What's wrong? sabaka Linux - Newbie 1 11-23-2003 04:37 AM
Grub wrong can't boot *anything* Bruce Hill Linux - Newbie 3 07-23-2003 10:29 PM

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

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