Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.