LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GRUB is gone... After installed Windows... (https://www.linuxquestions.org/questions/linux-newbie-8/grub-is-gone-after-installed-windows-222130/)

d_kote23 08-25-2004 04:32 AM

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! :cry: ... How to repair GRUB ?

d_kote23 08-25-2004 04:36 AM

In addition... Sorry I don't have Rescue CD... I just have one bootable installation Fedora Core 2 DVD.

Baldrick65 08-25-2004 04:39 AM

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

Baldrick

insyte 08-25-2004 04:56 AM

Just download a GRUB bootdisk, log on to the grub interface and reinstall grub to your mbr :)

WhiteChedda 08-25-2004 05:30 AM

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! :cry: ... 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.

Harp00 08-25-2004 07:19 AM

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.

d_kote23 08-25-2004 10:08 AM

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.


Harp00 08-26-2004 09:51 AM

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

dsegel 08-26-2004 10:24 AM

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


d_kote23 08-27-2004 01:36 AM

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


:o


All times are GMT -5. The time now is 05:23 PM.