LinuxQuestions.org
Register a domain and help support LQ
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-25-2004, 05:32 AM   #1
d_kote23
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 14

Rep: Reputation: 0
Unhappy GRUB is gone... After installed Windows...


Hi all,
My Laptop, I has Pre-installed Windows XP Home Edition, then I installed Fedora Core 2,
after that, I always use GRUB from Fedora Core 2, to select and boot between Windows and Linux...
I Just wanted to upgrade Windows XP from Home to Pro, the thing was going fine. But after upgraded that Windows, I think the installation deleted GRUB !... There's no more GRUB now, when turn on the laptop, it boots Windows directly... And I cannot select or boot Linux no more...
Help me please! ... How to repair GRUB ?
 
Old 08-25-2004, 05:36 AM   #2
d_kote23
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

In addition... Sorry I don't have Rescue CD... I just have one bootable installation Fedora Core 2 DVD.
 
Old 08-25-2004, 05:39 AM   #3
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
If the FC2 DVD is bootable, then reboot with it and there should be a rescue option to reinstall GRUB.

Baldrick
 
Old 08-25-2004, 05:56 AM   #4
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 307

Rep: Reputation: 30
Just download a GRUB bootdisk, log on to the grub interface and reinstall grub to your mbr
 
Old 08-25-2004, 06:30 AM   #5
WhiteChedda
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Mandrake 9.1 for now
Posts: 205

Rep: Reputation: 30
Re: GRUB is gone... After installed Windows...

Quote:
Originally posted by d_kote23
Hi all,
My Laptop, I has Pre-installed Windows XP Home Edition, then I installed Fedora Core 2,
after that, I always use GRUB from Fedora Core 2, to select and boot between Windows and Linux...
I Just wanted to upgrade Windows XP from Home to Pro, the thing was going fine. But after upgraded that Windows, I think the installation deleted GRUB !... There's no more GRUB now, when turn on the laptop, it boots Windows directly... And I cannot select or boot Linux no more...
Help me please! ... How to repair GRUB ?
This is normal, windows installs its own boot loader which overwrites grub. The bootable CD should suffice, just boot off of it, and reinstall grub to the MBR.
 
Old 08-25-2004, 08:19 AM   #6
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Rep: Reputation: 30
Insert fedora disk1 and when it ask you what you want to do type vmlinuz root=/hdxy noinitrd (x is generally a and y is the number of your partition).

After login, as superuser type grub-install /dev/hdx.
 
Old 08-25-2004, 11:08 AM   #7
d_kote23
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks alot Harp00,
there's only one harddrive, but I have 6 partitions,

C: NTFS: Windows XP
G: NTFS:
H: NTFS:
I: NTFS
J: NTFS:

And I installed Fedora to drive K, and it should be 3: boot patition and Linux partition and Swep partion...
What hdxy... x = a and how about y ?

Thank you all.


Quote:
Originally posted by Harp00
Insert fedora disk1 and when it ask you what you want to do type vmlinuz root=/hdxy noinitrd (x is generally a and y is the number of your partition).

After login, as superuser type grub-install /dev/hdx.
 
Old 08-26-2004, 10:51 AM   #8
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Rep: Reputation: 30
You should know which one.
You know it is hda.
I am a newbie too, what i suggest you is to try to insert your Fedora DVD and try to install it. It will probably show you which partition is for Linux.
When you know it abort installation and try with the istructions i gave you.

Hope this help.
Bye
 
Old 08-26-2004, 11:24 AM   #9
dsegel
Member
 
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
1. Boot into a linux command prompt using your FC install disk 1 - at the boot: prompt type 'linux rescue' and press return. It should try to find your existing FC2 install and mount it under /mnt/sysimage (or something like that - it'll tell you where it's putting it.)

2. Find the grub binary and run it like this:

Code:
/mnt/sysimage/sbin/grub
Change the path as appropriate.

You'll now be at a grub prompt. Enter the following commands:
Code:
grub> find /boot/grub/stage1
This will show you the partition that has the grub boot files on it, such as (hd0,6).

Code:
grub> root(hd0,6)
This tells grub where your /boot partition is. Change the '6' to whatever the partition # is from the above command.
Code:
grub> setup (hd0)
This tells grub to install itself into the MBR.

Now quit out of grub and reboot:
Code:
grub> quit
bash-2.0b5# reboot
When your system starts booting now it should load the grub bootloader instead of the Windows bootloader, and assuming you had grub set up properly it should give you an option to boot into either OS. If you don't have an option to boot into Windows add something like this to your /boot/grub/menu.lst (or grub.conf) file:

Code:
###Windows XP###
title Windows XP
    rootnoverify (hd0,0)
    chainloader +1

Last edited by dsegel; 08-26-2004 at 11:36 AM.
 
Old 08-27-2004, 02:36 AM   #10
d_kote23
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks alot dsegel, everything is fixesd !



Quote:
Originally posted by dsegel
1. Boot into a linux command prompt using your FC install disk 1 - at the boot: prompt type 'linux rescue' and press return. It should try to find your existing FC2 install and mount it under /mnt/sysimage (or something like that - it'll tell you where it's putting it.)

2. Find the grub binary and run it like this:

Code:
/mnt/sysimage/sbin/grub
Change the path as appropriate.

You'll now be at a grub prompt. Enter the following commands:
Code:
grub> find /boot/grub/stage1
This will show you the partition that has the grub boot files on it, such as (hd0,6).

Code:
grub> root(hd0,6)
This tells grub where your /boot partition is. Change the '6' to whatever the partition # is from the above command.
Code:
grub> setup (hd0)
This tells grub to install itself into the MBR.

Now quit out of grub and reboot:
Code:

grub> quit
bash-2.0b5# reboot
When your system starts booting now it should load the grub bootloader instead of the Windows bootloader, and assuming you had grub set up properly it should give you an option to boot into either OS. If you don't have an option to boot into Windows add something like this to your /boot/grub/menu.lst (or grub.conf) file:

Code:
###Windows XP###
title Windows XP
    rootnoverify (hd0,0)
    chainloader +1
 
  


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
Not only can I not get the grub installed correctly... Hunter69 Fedora - Installation 2 03-06-2005 07:35 PM
Which is installed? Lilo or Grub? swdavison Linux - General 5 01-30-2005 04:47 PM
Installed Fedora, which installed Grub - how to boot to Knoppix? squall14716 Linux - General 3 03-15-2004 04:11 PM
removing grub from a new pc with no other os installed berrioshernan Linux - General 4 12-02-2003 02:06 PM
GRUB has installed itself over Windows Gramphos Red Hat 3 09-25-2003 04:36 PM


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