Computing.Net > Forums > Linux > lost windows xp after LINUX GRUB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

lost windows xp after LINUX GRUB

Reply to Message Icon

Name: bbimaginex
Date: May 4, 2003 at 00:32:25 Pacific
OS: windows xp/linux
CPU/Ram: 512
Comment:

hi. i lost my windows xp (i assume since i can't boot into windows xp) after i did a linux install of GRUB boot loader.
heres exactly what happen.
i have windows xp on my c drive
i installed red hat linux 9.0 on another drive with the LILO boot loader. afterwards, i didn't like the LILO loader so i installed GRUB with the following command:
grub-install /dev/hda

i didnt remove LILO or anything(didn't know how). when i rebooted. the LILO loader was still there. after i clicked on DOS, the GRUB loader pops up and i repeatedly click on DOS but GRUB just reloads itself. i couldn't boot into windows. i started messing around with it and got into a GRUB prompt. i typed the following command:
rootnoverify (hd0)

dunno why i did that, but i still couldn't boot into windows. SOMEONE help please. thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: hesoez
Date: May 4, 2003 at 10:11:41 Pacific
Reply:

hi

I suppose you can still boot in linux with grub.

first run 'grub' as root
you'll get a command line from grub
then type:
'root (hd0,0)' #this is your bootpartition(/boot) (hd0,0=hda1, hd0,1=hda2, etc...)
then
'setup (hd0)' #this will put grub in the MBR and overwrite any other loaders(such as lilo)
then type
'quit'
to get out of the command line

Now you'll have to edit /boot/grub/grub.conf

it's somthing like this:

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Linux
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3

title=Windows
root (hd0,5)
chainloader (hd0,5)+1

The last section is to be able to boot up windows with grub, so you'll probably just have to add that part.
Now just reboot and see if it works.

grtz
hesoez


0

Response Number 2
Name: peter4u
Date: May 4, 2003 at 22:15:54 Pacific
Reply:

I doubt, that this resolves the problem. bbimaginex hat his/her XP on the c drive. I'd assume the Windows part should look lioke:

title=Windows
chainloader (hd0,0)+1

At least it should be worth to try it.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: lost windows xp after LINUX GRUB

dual boot Windows Xp and linux www.computing.net/answers/linux/dual-boot-windows-xp-and-linux/6141.html

Dual Boot XP/SuSE Linux-Grub Issue? www.computing.net/answers/linux/dual-boot-xpsuse-linuxgrub-issue/20219.html

Dual boot: Windows XP and Linux www.computing.net/answers/linux/dual-boot-windows-xp-and-linux/13992.html