LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2005, 12:19 PM   #1
Northy
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Using GRUB to boot WinXP


I've just installed Ubuntu and the GRUB was put in the MBR (as recommended by the installation program). While beeting into Linux works fine, when I select Windows XP it just hangs.

The commands it has are:
root (hd0,0)
savedefault
makeactive
chainloader +1

When I do it manually in the command line, it all works fine until I run 'boot'.

Any help anyone can give me? Have I somehow screwed up my Windows installation?

-----
Northy
 
Old 09-10-2005, 12:51 PM   #2
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
Here's entry to boot Win2K:
Code:
title Microsoft Windows 2k SP4
rootnoverify (hd0,2)
chainloader +1
makeactive
boot
'rootnoverify' must be instead of simply 'root'. hd0 - first hard drive. The number after comma is the number of the partition which holds the windows loader. makeactive makes windows think it was booted from its partition and it's active. Try this.
 
Old 09-10-2005, 05:14 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Do a geometry (hd0) at grub prompt to check your partition table.
 
Old 09-19-2005, 12:56 AM   #4
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,118

Rep: Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549
Boot into linux. Look in /etc/fstab and see which partition windows is on. hda1 or sda1 is drive 0, partition 0. hdb3 or sdb3 is drive 1 partition 2. I hope you can grasp the concept. Drives and partitions both start out at 0, but partitions start out at hda1 or sda1. There is no hda0 or sda0.

In /etc/fstab there should be a partition that is NTFS filesystem. Look at what it is.

In /boot/grub/menu.lst:

title windows
root (hd0,0)
chainloader +1

That is if windows is on drive 0, partition 0.

title windows
root (hd0,2)
chainloader +1

That is if windows is on drive 0, partition 2
 
Old 09-19-2005, 06:12 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
It has caught my attention recently that in many XP installations a partion (could be hidden) may have been inadvertently set up by the user for the purpose of backing up XP system data or working as a swap. This partition may have been mistakedly picked up by Grub to boot as the XP.
 
  


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 05:13 PM
/boot mysteriously empty, but i can still boot into Linux/WinXP via grub. hypoglycemic Linux - Software 4 07-18-2005 06:42 AM
lilo and grub won't boot winXP mshahwan Linux - Software 2 10-21-2004 08:57 PM
Winxp won't boot thanx to GRUB DaBlade Linux - Newbie 22 09-14-2004 11:04 AM
Using GRUB to boot RedHat and WinXP monroepq Linux - Newbie 6 05-28-2002 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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