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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-29-2009, 11:33 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2009
Posts: 4
Rep:
|
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. 
|
|
|
|
08-29-2009, 01:52 PM
|
#2
|
|
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,354
Rep: 
|
To be sure that windows is on sda1 .
What is the outcome of the command fdisk -l (L lower case)
|
|
|
|
08-29-2009, 02:26 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2009
Posts: 4
Original Poster
Rep:
|
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
|
|
|
|
08-29-2009, 05:08 PM
|
#4
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
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.
|
|
|
|
08-29-2009, 05:10 PM
|
#5
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
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.
|
|
|
|
08-29-2009, 05:59 PM
|
#6
|
|
LQ Newbie
Registered: Aug 2009
Posts: 4
Original Poster
Rep:
|
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!
|
|
|
|
08-29-2009, 06:06 PM
|
#7
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
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.
|
|
|
|
08-29-2009, 06:27 PM
|
#8
|
|
LQ Newbie
Registered: Aug 2009
Posts: 4
Original Poster
Rep:
|
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 06:49 PM.
|
|
|
|
08-29-2009, 07:51 PM
|
#9
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
Quote:
Originally Posted by emuuu
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 07:53 PM.
|
|
|
|
08-29-2009, 08:31 PM
|
#10
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
Quote:
Originally Posted by emuuu
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:15 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|