LinuxQuestions.org
Review your favorite Linux distribution.
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 10-18-2010, 09:12 AM   #1
loftus49
Member
 
Registered: May 2010
Location: Phoenix
Distribution: Ubuntu, CentOS5, Fedora
Posts: 77

Rep: Reputation: 16
Boot Loader Failure


I have a system with 2 hard drives. One drive (D) is my Ubuntu 10.04 system and the other drive (C) is my Windows XP system.

When I boot, I get BIOS then GRUB. If I choose the XP selection I am taken to a Boot Loader that now longer works. I get an error saying: "Windows could not start because the following file is missing. <windows root> system32\hal.dll Please reinstall a copy of the above file.

Can I remove the boot loader and let Grub take me directly to the C:/windows? If so how?

If not, how do I fix this?
 
Old 10-18-2010, 10:27 AM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,953

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
Can you boot into Ubuntu?
Is Ubuntu a new install?
Did you use the default installation for Ubuntu?
Have you been able to boot xp at all since Ubuntu installation?
Which drive (xp or Ubuntu) is set to first boot priority?

If you are able to boot Ubuntu, open a terminal and run the following command to get partition information and post it here: sudo fdisk -l(Lower Case Letter L in the command)

Also, if you can boot Ubuntu, find the file grub.cfg which should be in the /boot/grub directory abd post it here.
 
Old 10-18-2010, 10:30 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
One thing I would try is use a live CD to copy hal.dll to where it is supposed to be ... unless the drive is corrupt, of course.
 
Old 10-18-2010, 04:08 PM   #4
Voidcrow
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 1
Quote:
Originally Posted by loftus49 View Post
I have a system with 2 hard drives. One drive (D) is my Ubuntu 10.04 system and the other drive (C) is my Windows XP system.

When I boot, I get BIOS then GRUB. If I choose the XP selection I am taken to a Boot Loader that now longer works. I get an error saying: "Windows could not start because the following file is missing. <windows root> system32\hal.dll Please reinstall a copy of the above file.

Can I remove the boot loader and let Grub take me directly to the C:/windows? If so how?

If not, how do I fix this?
You need to follow TexMex's suggestion, as Windows isn't going to boot with a hal.dll.

Also, it might be an idea to run a full disk surface test via chkdsk, as there's a reason your hal.dll disappeared, and bad blocks are a potential cause. I think it's:

chkdsk C: /R

You'll need to run that from a windows boot disk, from the cmd console.
 
Old 10-19-2010, 12:02 AM   #5
loftus49
Member
 
Registered: May 2010
Location: Phoenix
Distribution: Ubuntu, CentOS5, Fedora
Posts: 77

Original Poster
Rep: Reputation: 16
UPDATE: Thank you all for the help. I've got it working (sort of) by doing the following. I used Ubuntu to edit the Windows boot.ini file with language from a back-up boot.ini.



Now, I can load both Ubuntu and Windows. The process is BIO to GRUB where I can select either Ubuntu or Windows. If I select Ubuntu, it immediately loads it. If I select Windows it goes to a boot loader that has "default Windows" on it twice. The second one works. The first one does not.

My boot.ini reads:

[boot loader]

timeout=5

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

I don't know if I can eliminate the boot loader completely or how to eliminate the 2 "default Windows" that appear when I go from GRUB to the boot loader.

My configuration is now C: Windows XP, D: Ubuntu, F: (external HD) Windows XP and Backups.

Progress.

Last edited by loftus49; 10-19-2010 at 12:07 AM. Reason: Additional info
 
  


Reply

Tags
boot loader, grub


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
I want to remove ubuntu boot loader and use windows boot loader RUshabh55 Linux - Newbie 9 11-29-2009 07:01 PM
boot loader install failure ultra81 Linux - Newbie 17 08-06-2008 12:55 PM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM
RH9 Software Raid 1 hard drive failure - GRUB loader errors Mynar Linux - Newbie 1 01-28-2004 10:25 AM


All times are GMT -5. The time now is 12:27 AM.

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