LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-11-2005, 03:30 PM   #1
ChemBot
LQ Newbie
 
Registered: May 2003
Posts: 15

Rep: Reputation: 0
Dual boot WinXP/Debian, grub error booting WinXP


I installed Windows XP to a 20GB partiton on a 40GB drive and installed Debian to the remaining space. I installed Grub to the MBR and Debian automatically configured the menu.lst to boot to both OSes. Debian boots fine, but when I try booting to XP, I get this error message:

Code:
Booting 'Microsoft Windows XP Professional'
root(hd0,0)
error 24: attempt to access block outside partition
This is what my menu.lst looks like:

Code:
title		Debian GNU/Linux, kernel 2.6.14-1-k7 
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.14-1-k7 root=/dev/hda2 ro 
initrd		/boot/initrd.img-2.6.14-1-k7
savedefault
boot

title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1
I've run some scans from BartPE on the Windows partition and everything looks fine with it. Anyone know what the problem is?
 
Old 11-12-2005, 04:22 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Change it to "rootnoverify (hd0,0)".
 
Old 11-12-2005, 06:57 PM   #3
ChemBot
LQ Newbie
 
Registered: May 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you sir, that worked like a charm. I just wish the Debian installer had done that on it's own.
 
Old 11-18-2005, 09:48 PM   #4
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
GRUB and LILO always conflict with Windows. And GNU GRUB is not so robust, causing many problems during boot.

So try GRUB for DOS please. It is a cross-platform boot loader based on GNU GRUB. The GRUB.EXE can be started from DOS/Win9x; and GRLDR can be started from BOOT.INI of Windows NT/2K/XP/2003; and even more, the GRUB.EXE can be started from LINUX via the KEXEC tool.

By using GRUB.EXE or GRLDR, you don't have to touch your MBR. It is the safest way coexisting with DOS/Windows.

You needn't install GRUB for DOS. Just run GRUB.EXE from DOS, or append a line of "C:\GRLDR=START GRUB" into your BOOT.INI(restart and select the "START GRUB" menu item), that will do.

Download GRUB for DOS here: http://freshmeat.net/projects/grub4dos/

There is a fat12grldr.img file with the GRUB for DOS release. You can create a GRUB bootable floppy with this fat12grldr.img file.

Or, you can just copy GRUB.EXE to your DOS floppy and run GRUB.EXE to enter the GRUB environment.
 
Old 02-22-2007, 03:33 AM   #5
pawankumarch
LQ Newbie
 
Registered: Feb 2007
Posts: 11

Rep: Reputation: 0
Re: Dual boot in WinXP/Debian, Grub error while booting

Hi,

I'm trying to Install Debian on WindowsXP using Debian.exe, Its getting error once after completion of downloading saying the following 2

1. Error Opening File for writing
C:\grldr
2. Error Opening file for writing
C:\grub

It would be great if anyone helps me on this

Regards,
Pawan.
 
Old 02-22-2007, 04:13 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Don't go resurrecting (very) old threads.
Especially as you've multi-posted this all over LQ.
 
  


Reply



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
GRUB error -- dual booting Linux and WinXP j3nnifers Linux - Software 4 06-27-2006 02:13 PM
Dual-booting MEPIS and WinXP, I want Grub to default to WinXP jjf Linux - Newbie 8 01-19-2006 03:27 AM
configuring grub-dual boot debian winXP different HD's tshontikidis Linux - Newbie 1 07-14-2005 04:46 AM
Dual Booting WinXP/MDK with Lilo and Grub StealthSpectar Mandriva 5 11-09-2004 01:02 PM
GRUB: Dual booting Linux and WinXP with SCSI involved Judicator Linux - General 1 07-29-2003 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:20 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
Open Source Consulting | Domain Registration