LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2004, 07:49 AM   #1
daveman_t
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Rep: Reputation: 0
grub freezes :(


I was trying to edit my grub.confg file so i could boot xp pro from my other hard drive, but now when i reboot i get a message l'loading GRUB level 2" or something similar and then nothing. this message came up before but only for a split second before the grub menu appeared. Using the RH9 cd i booted into rescue mode and deleted the lines i added to grub.confg file, but still the same problem. I'm a bit of a newb, but is there a way of booting straight into my linux installation or fixing grub? is it possible to uninstall grub and install lilo as i have heard that it is easier to set-up dual boot?

thanks
 
Old 12-24-2004, 08:23 AM   #2
daveman_t
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
phew! got linux back using grub-install --recheck /dev/hdb, but unfortunately i did the same but for hda aswell, which is my xp disk, now if i set the bios to boot from my xp drive it loads a screwed up grub screen and goes nowhere! have i cocked up my windows installation? can i uninstall grub from this drive and restore it to as it was before?

thanks
 
Old 12-24-2004, 08:38 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
There could be a grub.conf.old in the /etc if you have not already overwritten it. If you haven't overwritten it, it is the old good grub.

Did you edit the grub as root when you did the rescue mode? It won't save if you were a user.

I don't know what other help I can be, grub should look something like this for a single boot machine. To add a windows drive to the boot options, do a search on LQ. I've seen that answered a few times here.

#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
root (hd0,0)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.5-1.358.img
 
Old 12-24-2004, 08:44 AM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Sounds like you may have hosed the NTbootloader on the windows drive. You can config grub to point to a windows drive and a linux drive. Thw windows drive is probably ok, just messed up windows boot loader ntloader.
 
Old 12-24-2004, 08:45 AM   #5
daveman_t
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for the reply. i've got grub working now on my linux hd, i'm more worried about what has happened to my xp drive now! in linux i have it mounted and it now says contains 0 objects

edit: quick second reply, thanks!

how do i go about restoring the proper bootloader on the xp drive? i'm a bit of a newb

Last edited by daveman_t; 12-24-2004 at 08:46 AM.
 
Old 12-24-2004, 09:01 AM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not for sure what can be done if winxp is hosed. Here is an example of my /boot/grub/grub.conf file. Don't know if you have done your winxp like this or not. hd0,0 points to harddrive #0 and partition #0 which is /dev/hda1

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/hda8
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora Core (2.6.10-rc2) Cdfs, Ntfs, Udf, Ufs, Acpi, Hermes
	root (hd0,1)
	kernel /vmlinuz-2.6.10-rc2 ro root=/dev/hda8 vga=793
	initrd /initrd-2.6.10-rc2.img
title Fedora Core (2.6.9-1.649)
	root (hd0,1)
	kernel /vmlinuz-2.6.9-1.649 ro root=/dev/hda8 vga=793
	initrd /initrd-2.6.9-1.649.img
title Memtest86+ (3.2)
	root (hd0,1)
	kernel /memtest86+-v3.2 ro root=/dev/hda8 vga=793
title Winblows XP Amateur
	rootnoverify (hd0,0)
	chainloader +1
Brian1
 
Old 12-24-2004, 09:04 AM   #7
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
If you want the windows boot loader back on the windows drive I think that you can boot up with the windows installation cd, boot to recovery console, and enter

fixmbr

That will restore the ntboot loader.

Mkae sure that you fix the right drive.

You can also have grub dual boot, Linux or Windows.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub freezes with "GRUB" text on HP Visualize X-Class trainpic Linux - General 3 10-27-2009 01:32 AM
Laptop freezes at GRUB west72 Linux - Newbie 4 08-23-2004 05:31 PM
GRUB _ FREEZES please help. leemoreau Linux - Newbie 1 01-22-2004 11:30 PM
Grub Freezes infamous41md Linux - Newbie 12 08-06-2003 09:14 AM
grub freezes at booting! help! econfan Linux - Newbie 5 05-29-2003 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 AM.

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