Results 1 to 10 of 33
Okay, I need some help because I cant boot my computer and it just goes into an endless loop when it tries to load Grub. I turn on the computer ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-28-2007 #1
Grub Endless Loop
I'm running two hard drives with Windows XP on my master and Ubuntu 6.06 on the slave. I tried reinstalling Ubuntu and Grub and everytime the installation goes fine and GRUB will work fine until I run windows and shut down (it seems shutting down from windows causes the grub loop). So then I ran the windows xp cd and fixed the mbr so I can boot windows but now I cant load ubuntu, and any time I have tried to reinstall Grub I get errors. So then I tried to put Grub on a floppy and it gives me an error (I think it's error code 20 or something). I'm new to linux and I am out of ideas.....
- 01-29-2007 #2
install GRUB in MBR of Ubuntu Harddisk and keep Windows MBR intact. thats the best way in Two Harddisks dual boot set up.
un-plug Winodws Harddisk and Plug-in Ubuntu Harddisk as Primary Master. Install Ubuntu.
plug-in Windows Harddisk as Secondary ( Slave ) and keep Ubuntu harddisk as Primary Only.
Boot up Ubuntu and add an entry for Windows in its GRUB.
- 01-29-2007 #3
I thought about doing that, but I was going to switch the windows hd back to the master. But I'll do it your way and then just set windows as the default (since other members of the family would complain otherwise).Thanks for making the executive decision for me... What would we do without you casper?
- 01-29-2007 #4
Okay, I went ahead and set up my Linux HD as my master and my windows hd as my slave, installed grub and so far grub is working fine with ubuntu, but I cant get windows to load. I edited the menu.lst to add windows and it says:
Booting 'Windows XP'
filesystem type unknown, partition type x42
And it just freezes there and doesnt load.... Any ideas? It is possible I have the root wrong because I dont entirely know what I am doing, I just know enough to get myself in trouble.
- 01-29-2007 #5
You need to use map. You can look it up, or wait for casper to post the correct usage.'Tis better to be silent and be thought a fool, than to speak and remove all doubt.'
- 01-30-2007 #6
you have to edit two files. device.map and menu.lst
add this line in device.map file
title Windows Xp root (hd1,0) map (hd0) (hd1) map (hd1) (hd0) chainloader +1
in case it doesn't work, post the output of 'sudo fdisk -l' here.
- 01-30-2007 #7
Alright, we are slowly making progress. I did try mapping the hard drive before because I know windows wants to be on the first disk, but I didnt know that I had to edit the device.map file. That being said, it will now begin to boot windows, the Loading Windows screen comes up but then it crashes and the computer restarts and repeats. Any ideas what would cause that? Thanks again guys, everyone on this forum has been awesome in trying to help out and I just hope I'll learn enough to repay the favor soon.
- 01-30-2007 #8
do one thing, unplug Linux Harddisk and check if windows boot up properly. Windows MBR is intact and if it boots up correctly, we would know that problem is in menu.lst file only.
post the contents of menu.lst file here.
- 01-30-2007 #9
Okay I disconnected the linux hd and put the windows hd in it's place and windows booted up fine. Here is my menu.lst:
title Windows Xp
map (hd0) (hd1)
map (hd1) (hd0)
title Ubuntu, kernel 2.6.15-27-386
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hda1 ro quiet splash
title Ubuntu, kernel 2.6.15-27-386 (recovery mode)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/hda1 ro single
title Ubuntu, memtest86+
- 01-30-2007 #10
add savedefault and makeactive lines.
title Windows Xp root (hd1,0) map (hd0) (hd1) map (hd1) (hd0) savedefault makeactive chainloader +1