LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-29-2009, 12:33 PM   #1
emuuu
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Windows XP + GRUB not playing nice


Hey there!

I've just installed Arch Linux. After hours of tinkering with my /boot/grub/menu.lst file, I got Linux it to boot properly. :P

But now Windows doesn't want to work. When I choose Windows from the GRUB selection screen, it just opens a GRUB command prompt.

Here's how my hard drive is set up and partitioned and whatnot:

sda1: (supposed to be) Windows
sda2: swap
sda3: /boot
sda4: /

And here's what the Windows section of my /boot/grub/menu.lst looks like:

Code:
# (1) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
Like I said, when I choose the Windows option from the GRUB selection screen, it opens up a GRUB command prompt. I'm really hoping nothing happened to my Windows partition while I was moving it. :P

I don't know how obvious it is, but I know nothing about GRUB.

Anybody know what's wrong? Thanks so much in advance.
 
Old 08-29-2009, 02:52 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
To be sure that windows is on sda1 .
What is the outcome of the command fdisk -l (L lower case)
 
Old 08-29-2009, 03:26 PM   #3
emuuu
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Er, I can't copy and paste it, but I'm 98% sure it is. It looks something like this:

Code:
Device		Boot	Start	End	Blocks		Id	System
/dev/sda1	*	128	9308	big number	7	HPFS/NTFS
/dev/sda2		1	127	big number	82	Linux swap / Solaris
/dev/sda3		9309	9320	big number	83	Linux
/dev/sda4		9321	30401	big number	83	Linux
Yeah, it's kind of laid out in a weird way.

And I'm pretty sure I figured out my Windows partition is corrupt. That could have something to do with it. And seeing as I can't find my install disks, that could present a problem. XD
 
Old 08-29-2009, 06:08 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,439

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Looks like you installed grub into the XP partition - as well as the MBR.
Using fixboot from the XP install CD might fix it - sometime works, sometimes not. Doesn't need to be your XP CD; if you can find a mate with one, use that.
 
Old 08-29-2009, 06:10 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I'm guessing you have a 250GB drive (30401 cylinders @ 8.2MB each)

Windows: ~75GB---OK
~1G swap---OK
~ 90MB (for /boot, I assume)---OK
~ 170GB for Linux /root--OK

Out of curiousity, why is it setup this way? Many folks would have left the Windows partition at the front end and just re-sized it down.

If you had grub setup the way you show, and you selected Windows and go a grub prompt, that would suggest the GRUB had been installed to the Windows partition.

One thing that would help would be to tell us the steps you went thru to get where you are.
 
Old 08-29-2009, 06:59 PM   #6
emuuu
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hah, long story, actually.

I was following a guide that told me my boot partition had to be first. I guess this just applies to older BIOS?. Anyway, I wasn't aware of this at the time. I moved my Windows partition forward to make room for it. I guess something went wrong in the moving process, because after that I wasn't able to access my Windows partition at all after it.

Anyway, I found some system restore disks, so I totally reformatted my hard drive and I'm starting anew. XD

I guess since we came to no real conclusion, this thread can be deleted. :P

Thanks for your help, though!
 
Old 08-29-2009, 07:06 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,439

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
If you had given us all the relevant info at the start maybe we could have come to a "real conclusion".
Windows is very intolerant of being moved. As you discovered.

And yes, the advice about the boot partition is to cover (old) BIOS restrictions. Out of habit I still do it though - but put it on before allocating any other partition.
 
Old 08-29-2009, 07:27 PM   #8
emuuu
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
So if I create a boot partition after a fresh Windows install it will/should work just fine? Or is it even a good idea to have a separate boot partition?

Last edited by emuuu; 08-29-2009 at 07:49 PM.
 
Old 08-29-2009, 08:51 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by emuuu View Post
Hah, long story, actually.

I was following a guide that told me my boot partition had to be first.
Not a Linux Guide, I trust.......Linux does not care where its partitions are on the drive. (If you have a document saying that Linux needs to be first, we would like to see it......heads will roll...)

If you are starting over, do you want any hints on how to set things up so everything "just works"?

Short answer:

Install Windows on the first partition, which is maybe 15-20 GB

Install Linux on another partition--also ~15 GB, with swap at the end.

Keep the rest of the disk empty (unpartitioned). When everything is working, then set up one or more partitions for shared data.

Last edited by pixellany; 08-29-2009 at 08:53 PM.
 
Old 08-29-2009, 09:31 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,439

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Quote:
Originally Posted by emuuu View Post
So if I create a boot partition after a fresh Windows install it will/should work just fine?
Yes - on any BIOS from the last 5 years or so
Quote:
Or is it even a good idea to have a separate boot partition?
Not required, but I use a lot of different distros, and if you delete the one that has grub, guess what happens ...
I like a separate boot partition.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
server not playing nice!!! Raouligan Linux - Server 1 03-17-2007 07:57 AM
Ubuntu and XP not playing nice. kojima Linux - Distributions 8 10-13-2004 06:29 PM
Grub and XP not playing nice kojima Linux - Software 1 10-13-2004 10:07 AM
Windows not playing nice.... absolute0net Linux - Networking 0 07-07-2003 09:03 AM
samba and fstab not playing nice kc8tbe Linux - General 3 03-07-2003 04:13 PM


All times are GMT -5. The time now is 10:21 PM.

Main Menu
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