LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-14-2007, 09:48 AM   #1
njac
Member
 
Registered: Feb 2007
Posts: 38

Rep: Reputation: 15
win XP won't boot EVERY time!!


Hi ! at my workplace, i have 64bit machine with two ata hard discs. first is for win xp and second is for SUSE 10.1 and bootloader installed is GRUB. problem is that XP won't boot every time. it's thrue, sometimes it will, and sometimes it won't in dependence of how SUSE was shut down. when suse is in failsafe mode, and i swich off computer using 'halt' so that i have to turn it off with button, windows will boot next time. elsewhere, it will (when i select win in bootloader) just display text from grub's menu.lst file
chainloader(hd0,0)+1
I have tried many things, including grub configuring, but without sucess. grub is instaled on MBR. does it have something to do with ACPI?
i am waiting for your help,
thanks!
 
Old 02-14-2007, 10:55 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
The customary GRUB entry for an XP boot looks like this:
Code:
title WinXP
        rootnoverify (hd0,0)
        chainloader +1
Your chainloader (hd0,0)+1 should work, although the "noverify" part may be why GRUB is complaining.

Try a temporary edit when GRUB displays the chainloader message: Press the "e" key to open the editor, and replace the "chainloader" line with the two lines shown above (edit instructions a shown on the GRUB edit screen), and press "b" to boot from the temporary new lines. If they work, replace the single chainloader line in your GRUB configuration file with those two lines.

Another alternative is to use the XP boot loader, and set C:\boot.ini to offer Linux as an option. To do that:

1) Copy the current MBR to a file on the XP C: drive. If you've mounted the XP drive as, say, /mnt/WinXP/c, something like
Code:
sudo dd if=/dev/hda of=/mnt/WinXP/c/linux.bin b=512
should do the trick.

2) Boot XP (however you can do that) and edit C:/boot.ini to look like this:
Code:
$ cat /mnt/WinXP/c/boot.ini
[boot loader]
timeout=5
default=C:\linux.bin

[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP" /noexecute=optin /fastdetect
C:\linux.bin="Fedora"
(The timeout, default, and labels in quotes are all, of course, whatever you want to use. What you see are my choices, and suggestions only.)

3) Boot from your XP installation CD, go into rescue mode, and use the fixmbr to replace the GRUB MBR with XP's one.

4) Reboot, and -- if all goes well -- XP should boot and (if you used my values) after 5 seconds the GRUB boot screen should be displayed.

Note: I don't know if this will "fix" your problem. (Which sounds quite strange -- how you shut down Linux should have no effect, whatsoever, on the MBR. It might have some effect your next Linux boot, but XP should be unaffected.)
 
Old 02-14-2007, 11:01 AM   #3
skarland
LQ Newbie
 
Registered: Feb 2007
Distribution: Redhat Fedora 6 (AMD 64 bits and Intel 32 bits)
Posts: 3

Rep: Reputation: 0
Because Windows Xp needs to assume it is the first drive, otherwise it won't boot. So it's better to add the following in the /boot/grub/menu.lst

map (hd0) (hd1)
map (hd1) (hd0)

after Windows XP entry.

Quote:
Originally Posted by njac
Hi ! at my workplace, i have 64bit machine with two ata hard discs. first is for win xp and second is for SUSE 10.1 and bootloader installed is GRUB. problem is that XP won't boot every time. it's thrue, sometimes it will, and sometimes it won't in dependence of how SUSE was shut down. when suse is in failsafe mode, and i swich off computer using 'halt' so that i have to turn it off with button, windows will boot next time. elsewhere, it will (when i select win in bootloader) just display text from grub's menu.lst file
chainloader(hd0,0)+1
I have tried many things, including grub configuring, but without sucess. grub is instaled on MBR. does it have something to do with ACPI?
i am waiting for your help,
thanks!
 
  


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
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 07:04 PM
how would you install win xp, win vista(beta), and slackware with a tri boot? whited Linux - General 3 07-02-2006 12:12 PM
Thunderbird @ Linux and Win at the same time? rntm Linux - Software 1 04-20-2005 02:32 AM
Getting ready to shutdown Win XP for the last time kersten78 Slackware 14 12-13-2004 07:29 PM
Rebooting mdk 9.2 (win 98 dual boot) after win hd fails jnt Mandriva 3 04-05-2004 06:57 PM


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