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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-29-2004, 01:31 PM
|
#1
|
LQ Newbie
Registered: Sep 2003
Location: kingston, ontario
Distribution: fedora Core 2
Posts: 3
Rep:
|
GRUB and WinME/hal.dll issue with linux reinstall
So, here's the story. I have a home PC which shipped with a 40GB drive and WinME. Wanting a Linux option for home, I purchased a 60GB drive and installed Redhat 7.1 on that disk, creating a nice functional dualboot system. GRUB worked great, and everything went smoothly for ages.
Flash forward three years. I have the use of several newer Linux boxes, and the home machine hasn't booted linux in almost a year; it's become my wife's computer. So, i figure I'll free up the 60 gig secondary drive for use by Windows. I format the 60 gig drive... forgetting that the GRUB config file is located there. Whoops. Now NOTHING works.
So, I reinstall Linux on the 60 (using my dusty old RH7.1 disks in lieu of the freshly toasted Fedora Core 2 disks I use for work). Linux works great (again). But when I try to boot to my windows partition, it complains that /system32/hal.dll is missing or corrupted... which I find pretty suspicious.
Anyway, that's the situation. Ideally, I'd like to consign the machine to the world of windows forever, where it will run Rollercoaster Tycoon and the various Thomas the Tank Engine titles until it dies. However, I'd be willing to get it working as a dual boot box if necessary. The least desirable option is to boot to Linux, copy all of the FAT32 stuff onto a backup box, and use the WinME recovery disk to restore the box to factory condition... way too much mindless work.
So, if somebody can give me a pointer or two, that'd be great. Unlike many posters, my job doesn't depend on this, and I'm not looking down the barrel of a loaded gun from my boss. However, my wife is grousing about the home machine being unusable, so that should generate some empathy.
Thanks in advance for any support.
|
|
|
08-29-2004, 01:42 PM
|
#2
|
Senior Member
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513
Rep:
|
Last time I saw hal.dll problems, the computer had major hardware problems (cpu). Not trying to scare you, I can be something else.
This is more a workaround than a fix: try to use smart boot manager to boot the machine. bmgr is really nice. Maybe it can help you.
About bmgr:
http://btmgr.sourceforge.net/about.html
Download:
http://btmgr.sourceforge.net/3.7/
|
|
|
08-30-2004, 08:47 AM
|
#3
|
LQ Newbie
Registered: Sep 2003
Location: kingston, ontario
Distribution: fedora Core 2
Posts: 3
Original Poster
Rep:
|
I dunno about the major hardware problems. The CD burner does appear to be screwed up, but that's nothing new. Furthermore, WinME worked fine (as well as it ever did, anyway) until I brilliantly deleted the GRUB configuration file, and the new redhat install works fine.
When I mount the FAT32 partition from redhat, the /windows/system32 directory doesn't appear to even CONTAIN a hal.dll file. In fact, I didn't realize that the idea of a hardware abstraction layer was present in the non-NT-descended Windows OSes.
Nevertheless, I'll give bmgr a shot. Thanks for the input.
|
|
|
08-30-2004, 09:12 AM
|
#4
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
That indeed sounds very suspicous, you're right there is no HAL in win9x/me and such file does not exist.
Has there been any installation attempts of winnt/2k/xp on the system? Perhaps somehow nt os loader was accidentally installed?
Besides the previous suggestion you can give this a try as well:
Download BootPart
Get into Linux and backup the current partition bootsector
Code:
dd if=/dev/hda1 of=bootsect.old bs=512 count=1
put bootsect.old somewhere safe outside the harddrive, such as a floppy disk.
Boot with a dos floppy disk(put bootpart on there or somewhere in c: drive where its accessible).
then run
Code:
BOOTPART WIN95 BOOT:C:
Which will rewrite win95/98/me bootsector back into the partition
Also you need to make sure GRUB is configured properly(ie for the Winme entry it chainloads hda1 which should be (hd0,0))
Last edited by Demonbane; 08-30-2004 at 09:15 AM.
|
|
|
09-02-2004, 09:50 AM
|
#5
|
LQ Newbie
Registered: Sep 2003
Location: kingston, ontario
Distribution: fedora Core 2
Posts: 3
Original Poster
Rep:
|
Excellent. Thanks, Demonbane, that worked perfectly on the first try.
|
|
|
All times are GMT -5. The time now is 11:22 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
|
|