LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 03-03-2005, 04:34 PM   #1
styggentorsken
Guest
 
Posts: n/a
Installed grub on my winXP-partition


What I did was that I started my installation-dvd and started rescue-mode and grub.
Then I wrote,
root (hd0,4)
setup (hd0)
setup (hd0,0)

everything went successfull.
But I dont think it was very smart. Now when I'm in GRUB and choose "other" (rootnoverify (hd0,0) chainloader +1), i get (Disk error, press a key to restart)

(I'm using FC3 and winXP dualboot and grub by the way)
 
Old 03-04-2005, 11:33 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,674
Blog Entries: 9

Rep: Reputation: 45
Well my /boot/grub/grub.conf looks like this

Quote:
default 1
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.10-gentoo-r6
root (hd0,1)
kernel /boot/kernel-2.6.10-gentoo-r6 root=/dev/ram0 real_root=/dev/hda5 init=/linuxrc splash=verbose
initrd /boot/initrd-2.6.10-gentoo-r6

title=Windows XP
root (hd0,0)
makeactive
chainloader +1
but of course the grub isn't actually installed in windows per se, but at the MBR (major boot record).

Id suspect, without really knowing much, that you may have to fire up your windows with the disc get it to do a repair i.e. repair the mbr with the windows boot loader and do another "repair" of the grub - sorry, I can't say how, but that's off the "top of my head" (which hasn't got much hair and is usually pretty empty )

regards

John
 
Old 03-04-2005, 04:49 PM   #3
styggentorsken
Guest
 
Posts: n/a
Thanks for your answer

I have tried to repair my XP installation, but nothing happened, just the same grub screen.
Maybe I didn't do it the right way? I hope I don't need to format my windows partition.

I think what I need to do is to remove grub from MBR. Then repair XP and then reinstall GRUB without "setup (hd0,0)" this time.

The problem is... How do I remove grub from (hd0) and/or (hd0,0)?
 
Old 03-04-2005, 05:11 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Quote:
Originally posted by styggentorsken
. . .
I have tried to repair my XP installation, but nothing happened, just the same grub screen.
Maybe I didn't do it the right way? I hope I don't need to format my windows partition.

I think what I need to do is to remove grub from MBR. Then repair XP and then reinstall GRUB without "setup (hd0,0)" this time.

The problem is... How do I remove grub from (hd0) and/or (hd0,0)?
You need to boot from your Win XP install disk, and get to the repair command consol (sorry, forgotten what they call it, one of the options when you select "repair"). When you get the DOS command prompt, enter "HELP MBR" (again, this is from memory. If I'm wrong, just "help" to list all the commands, and look for one with MBR in it. Perhaps it was "FIXMBR". )

When you find it, enter the command and it should write a new copy of the Windows MBR to the HD.
 
Old 03-05-2005, 01:38 PM   #5
styggentorsken
Guest
 
Posts: n/a
FIXMBR was it, but the result is "disk error, press any key to restart".
Cant see any alternatives to formating XP, I don't loose any personal data anyway.
 
  


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
Installed Fedora after Winxp, no grub =( colinexl Linux - Newbie 2 01-13-2005 12:45 PM
Grub didn't recognize RH9 nor WinXP Pro partition quentusrex Debian 3 08-18-2004 10:21 PM
installed GRUB over winxp slack and mandrake and LILO insyte LinuxQuestions.org Member Success Stories 0 08-12-2004 02:04 PM
i got RH8 & WinXP installed and properly working by GRUB. how can i reinstall WINXP? kublador Linux - Newbie 4 06-23-2003 01:00 PM
Lost WinXP when I installed RH8 GRUB HELPPPP!!! arvmenon Linux - General 2 04-29-2003 01:37 PM


All times are GMT -5. The time now is 05:25 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