LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2005, 12:46 AM   #1
shujja
LQ Newbie
 
Registered: May 2005
Posts: 20

Rep: Reputation: 0
Grub disappeared and no os found message


Hi friends,

I have window XP and redhat9 on the same hard disk. i tried to upgrade redhat9 to FC3, but failed. i restart the system, it give message no operating system found. i restart system from bootable cd, message appears

press any key to boot from cd.....(after few minutes) gurb stage2

and same grub screen appears. After system runs both os very well.

i think there is problem for gurb to boot from mbr.

what should i do to reinstall gurb on the mbr with the same configration.
 
Old 09-01-2005, 01:27 AM   #2
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Reboot off of the FC3 CD, and at the boot prompt, type this:

linux rescue

It will ask you a few questions, answer them appropriately (answer yes if it asks u to mount your currently installed system). It will then tell you how to chroot into your installed system....do this. It should be this command:

chroot /mnt/sysimage

Then run the command:

grub-install /dev/hda

Then reboot and all should be well

The configuration should be the same since the grub config file won't be changed during this process.

Let me know if it works. It did for me on CentOS 4...which is very similar to FC3.
 
Old 09-01-2005, 11:09 PM   #3
shujja
LQ Newbie
 
Registered: May 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Crashing grub and pink screen in place of booting redhat9

i used this trick with redhat9 and FC3.
but system gave message "command not found".

then i reinstall the window Xp, agin no os found message. i restart system with bootable cd and run window xp. i used window boot option by placing linux.bin file into 'C' partition.

i restart the computer from bootable cd and choosed linux on window boot option, the pink screen appeared.

plz help me what should i do to recover redhat9 without reinstalling.

thanks in advance
 
Old 09-01-2005, 11:31 PM   #4
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Use a live CD and chroot into your environment. If the rescue CD doesn't do this for you (and it should) you will need to tell it to (or use a different live CD, such as knoppix).

You will be required to know about your partitions. You can find some of this information by the command "fdisk -l". Identify where your Windows partition is, your "/" partition, and your "/boot" partition (if it is different than your "/" partition. In most cases it isn't).

You can see which partitions are mounted where by using the command "mount" on it's own. Once you have located where your "/" partition is currently mounted, go to that location. If it is not mounted, then mount it and go there.

Then type:
mount --bind /dev ./dev
mount --bind /proc ./proc
chroot .

From here, it will probably be a simple matter of:
grub-install /dev/hda

There may be complications in this procedure. If you have a separate /boot partition, you will likely need to mount it (I think you can do this after you chroot with "mount /boot", but you might need to mount it before, or something). Of course, the biggest complication is the thing that I happen to be forgetting

Above all, good luck, and post back.
 
Old 09-05-2005, 01:59 AM   #5
shujja
LQ Newbie
 
Registered: May 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Hi friends,

thank u very much of helping me. i fixed the problem finally as per your suggestions.

linux rescue

chroot /mnt/sysimage

grub-install --recheck /dev/hdc


reboot

gurb screen appears with same configartion.

thanx again.
 
  


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
Grub theme not shown/found by grub...please help.. deepclutch Debian 4 11-30-2005 06:33 PM
Grub disappeared? JimBass Linux - Newbie 1 09-27-2004 11:10 PM
Boot hangs with the 'GRUB' message - no solution found alxp Linux - Newbie 7 09-20-2004 02:23 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
Grub.conf disappeared? quintar_51 Linux - General 1 11-14-2003 12:23 PM


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