LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-26-2005, 01:29 PM   #1
Richgene
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
GRUB problem


HII,

I am having a very small problem with my RedHat Linux 9.0, recently I upgraded my windows xp sp1 to sp2 , after doing that when i restarted then instead of the GRUB boot loader window , windows xp automatically started and so now I don't have any way to login to linux, I tried to upgrade GRUB loader but it I'm still having the same problem. What should I do?
 
Old 08-26-2005, 01:43 PM   #2
Shaddy
Member
 
Registered: Apr 2003
Location: Germany
Distribution: PC1: Xandros 4 Prof, PC2: Debian Sarge, NB: SLED10+Windows XP
Posts: 39

Rep: Reputation: 15
Hi,

Windows XP has activated your windows-partition, so your system tries to boot from a partition, where only the windows bootloader is installed. Try booting with a live linux like Knoppix, open a shell and activate your boot partition via fdisk.

For that, go to shell an an edit the partition table of your disk you want to boot from, using the command "fdisk /dev/hda" (if the disk is primary master). if you type "h", you will get help over the given commands. with "p" you'll see the partitions table, and you'll see that your ntfs/fat32 partition is boot-flagged (*). Now type a (for toggle boot flag) and select your windows-partition, "a" again and choose your boot-partition. after that "w" for write and "q" for exit, and that's it. Note: you must be root.

If you done this, grub will be booted, maybe you have to add an entry fpr your windows xp in menu.lst.

Good luck :-)

Shaddy
 
Old 08-26-2005, 11:03 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Or.

You could try booting from the Install cd, and re-install grub to the MBR from there, after booting into a running version of Linux from CD..
 
Old 08-28-2005, 01:57 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
boot from the first cd of your distro:. after that type "linux rescue" at the grub prompt. this will bring the system in rescue mode. after that u will get a shell. now execute the command " grub-install /dev/hdX". change the letter X to a,b,c,d etc.... depending on your hard disk connection. /dev/hda denotes that it is primary master, /dev/hdb denotes it is primary slave etc...
if the prompt returns with no errormessages, exit twice. this will reboot the system and you will have the grub installed. vimal..........
 
Old 08-28-2005, 03:18 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,488

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Re: GRUB problem

Quote:
Originally posted by Richgene
... I tried to upgrade GRUB loader but it I'm still having the same problem.
?????.
How did you try to upgrade grub - similar to what vimal suggested ???. For a RH user, I agree this is likely to be the best answer.

Shaddy:
Sorry, but only Microsoft boot-loaders are so brain-dead to be as limited as you describe.
Once grub is restored to the MBR, the boot flag is irrelevant for Linux loading. Microsoft still check it, but there are other (brain-dead) checks they do as well.
 
Old 09-11-2005, 09:42 AM   #6
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
Generally GRUB FOR DOS can easily solve the problem.

Get GRUB for DOS at http://freshmeat.net/projects/grub4dos/

Place GRLDR and your menu.lst file in the same directory as NTLDR/BOOT.INI, normally in the root dir of C:, then add a new line to the end of BOOT.INI:

C:\GRLDR="START GRUB"

After rebooting the machine, you can enter GRUB by selecting the "START GRUB" menu item.

Note: NTLDR and BOOT.INI is hidden. You should unhide BOOT.INI first in order for you to edit it.
 
Old 10-31-2005, 12:38 AM   #7
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Rep: Reputation: 15

I also seem to have the same problem as Richgene,

When i tried to do what vimal suggested , after typing grub-install /dev/hda , it gave the following error

/sbin/grub not found

What should i do now.

Last edited by humble; 10-31-2005 at 12:43 AM.
 
Old 10-31-2005, 05:35 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,488

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Mmmmm - wonder if a chroot is needed in there.
After the "linux rescue", try "chroot /mnt/sysimage". then the grub-install.
 
Old 11-02-2005, 02:08 AM   #9
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Rep: Reputation: 15
Hii,

At last a success, thank you very very much all of u for helping.

But,
Now there is a new problem when i restarted and when the grub was loaded ,there appeared a number of choices,
1. Red Hat Linux (2.4.20-8smp)
2. Red Hat Linux (2.4.20-8bigmem)
3. Red Hat Linux (2.4.20-8BOOT)
4. Red Hat Linux -smp (2.4.20-8smp)
5.DOS

I have the following questions:

1.Out of these which one is my original(before having the grub problem)redhat.
2. how can I get rid of the unnecessary options.
3.When I loaded the first one i.e.Red Hat Linux(2.4.20-8smp), my modem did not work, when I ran kppp, it gave the error “unable to open modem”, what should I do ?
 
Old 11-03-2005, 02:25 AM   #10
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Rep: Reputation: 15
still waiting for a reply
 
Old 11-03-2005, 02:51 AM   #11
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
I am not able to answer. I just want to say something other. Your Linux may be too old: 2.4.xx. I think the latest distro will solve all problems.
 
Old 11-03-2005, 07:20 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Red Hat 9 is stable but 2.6 kernal can detect hardware a lot better so upgarding to Fedora Core (Version 4 already) would be a wise move.
 
Old 11-03-2005, 12:46 PM   #13
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Rep: Reputation: 15
I forgot to mention that before the grub problem , i was able to connect to the internet using my present modem but it isn't working anymore after i solved the prob.

Is there any other solution (for a newbie) to the above stated problems apart from upgrading?Also tell me that is there any connection between Redhat and Fedora Core . I used to think that they are separate distros

Last edited by humble; 11-03-2005 at 12:50 PM.
 
Old 11-03-2005, 08:29 PM   #14
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I haven't had a need to mess around with modem but knew RH9 isn't easy to configure a network card. I have a router which does not need a driver in XP and Linux.

If your modem worked before then try the other kernels to see if any one can kick start the modem.

Fedora Core is the son of Red Hat. Development is now concentrated on FC. You will recognise it when you install one. Newer kernels have been surprisingly good in detecting the hardware.
 
Old 11-04-2005, 10:40 AM   #15
humble
Member
 
Registered: Dec 2004
Distribution: Ubuntu
Posts: 56

Rep: Reputation: 15
After solving my GRUB problem , the GRUB loaded giving these OS choices.
1. Red Hat Linux (2.4.20-8smp)
2. Red Hat Linux (2.4.20-8bigmem)
3. Red Hat Linux (2.4.20-8BOOT)
4. Red Hat Linux -smp (2.4.20-8smp)
5.DOS

I have the following questions:

1.Out of these which one is my original(before having the grub problem)redhat.
2. how can I get rid of the unnecessary options.
 
  


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
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 10:36 AM
problem with grub deNiro Debian 4 06-05-2004 11:54 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
grub problem ianunderwood Linux - General 4 05-31-2003 06:45 AM
GRUB problem hfawzy Linux - Newbie 4 04-11-2003 01:17 PM


All times are GMT -5. The time now is 10:38 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration