LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-11-2006, 12:02 AM   #1
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Rep: Reputation: 15
RHEL-First boot Issue-GRUB


OK-I just installed RHEL4 (32bit) from DVD and all went fine. I remove the disk at the end of the install and then reboot only to have the system hang after post with a simple "GRUB" being the last bit of progress.

I've double checked and tweaked the boot order, pulled out any non critical parts and so forth. Any ideas on what might be hanging?

TIA!
 
Old 02-11-2006, 06:25 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If Grub has not been installed properly you may have to manually boot your RHEL4.

Task G of "Just Booting Tips" in my signature refers. You need to make a bootable Grub floppy first.

The manual booting instructions are the steps you ultimately needed to put into /boot/grub/menu.lst.
 
Old 02-12-2006, 12:13 AM   #3
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks for the reply. You have put some great stuff together as reference!

Let me give a little more detail just in case...this is just "feeling" like more then GRUB being broken since I have run the install several times now. My fear is that some of my hardware is too new and I'm just up a creek. I am however not in an area of strength for me and I'm glad it happens to be one of yours.

I have 3 "drives".
/sda [this is a 130GB stripe on a 3ware add on card]

/sdb [this is a 238GB mirror on the same add in card](I want to format this FAT32 later and share between the two systems but I'll wait to break that after I have a system running)

/sdc [this 80GB JBOD is where XP and GRUB are installed via the onboard nVidia SATA controller. C:/ of XP system]

/sdd [agains JBOD via nVidia controller. d:/ of XP system]

During the RH setup it asks me what drives to include as part of the install and I proceed with only /sda being selected with the option of "remove all linux partions".

I recently (last weekends project) had the REHL4_64 installed and running just fine but removed it and started this install after several problems that were becoming too much for me to handle at this early stage.

Anyhow, if any of this chnages anything then please let me know and thanks again for you time.
 
Old 02-12-2006, 03:16 AM   #4
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Original Poster
Rep: Reputation: 15
New problem-internal clock?

OK-I got past the GRUB error I was having. At least for now.

I unplugged the other drives save /sda and installed GRUB to this same drive. I'd assume I can now go in and tweak GRUB to also offer my XP install on /sdc as an option.

The problem I'm having now is a whole new deal. I'm running up2date to get things patched up and I notice my machine is typing duplicate letters every once in a while. Then all of a sudden the screen saver cam on even though I was browsing the internet at the time. Like the default 10 mins had passed in an instant. Now I can't type the password in fast enough bacause the second I hit a key I type maybe 5-20 characters.

Anyone have any ideas here? My thought is to let it keep running up2date and then reboot if I can to see if any of the patches clean things up.
 
Old 02-12-2006, 03:34 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You setup looks fine to me. As long as the disk order is not changed between sda and sdd your two systems should work satisfactory.

It is quite common for an installer to fail to implement the boot loader and many a time I have to boot the system without any configuration file.

In order to boot a Linux you need to know its kernel and initrd names which are always stored in /boot directory. This information is accessible as long as you have a Live CD or the installlation CD, which has a rescue mode as it is a Red Hat.

My guess is you got a possibly defective /boot/grub/menu.lst created by RHEL's installer. So using a Grub floppy is the best way to kick start it as you can release the booting instruction one line at a time, as per /boot/grub/menu.lst. Grub will respond to each line and so you can see and sort out the problem pretty quickly. 90% of the problem is to do with the partition references.

You can make the Grub floppy with the current system now.

Just boot up with the installation CD and into the rescue mode so that you have kernel up and running. Ask Linux to tell you where is the directory with Grub's stage1 by
Code:
find / -name stage1
You should find the Grub's two essential files stage1 and stage2 are stored in directory like /usr/share/grub/i386-pc-RedHat. Just change directory to it, drop in a floppy and "dd" these two files across
Code:
dd if=stage1 of=/dev/fd0 bs=512 count=1
dd if=stage2 of=/dev/fd0 bs=512 seek=1
Once you got the Grub floppy made you are half way there. Just follow "Just booting tips"

If you run into trouble list the content of (the "l" here is a small "L")
Code:
fdisk -l
here as it tell us the partitioning scheme of your 4 Sata disks and enable us to guess the root partition of your RHEL. If you have let RHEL a free hand to partition the disk it should have installed it in multiple partitions and possibly using LVM too.

Your disk order should be defined by /boot/grub/device.map

List the content of /boot/grub/menu.lst if you can't make it boot both systems.

Finally when RHEL is booted it will load the partitions according to the instruction in /etc/fstab so this file is usefull for others to diagnose your booting problem.
 
Old 02-12-2006, 05:11 AM   #6
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Original Poster
Rep: Reputation: 15
Awesome stuff!
It seems 2.6.9.x_SMP has issues with dual core CPUs. I've just spent 24 hours getting this thing to boot but I'm now been able to run up2date so we'll see if the new kernel will help.
I'm pretty beat so I think I'll head to bed so I don't ruin what I've managed to scrap toether already. I'll try to fix GRUB in the AM. Thank you very much for the help thus far saikee.
 
Old 02-12-2006, 08:03 PM   #7
devinnull
Member
 
Registered: Dec 2005
Location: UT-USA
Distribution: RHEL 3/4 Servers - FC 5 x64 on the desktop - Edubuntu for the kiddies
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks saikee...

saikee. Thank you for the help! I now have RUB up and running with the option to boot to XP or my RHEL install. Thank you!

I did move GRUB back to the MBR on /sdc so that I didn't have two instances of it. I can just see me forgetting in a couple months and breaking the wrong GRUB.
 
Old 02-12-2006, 08:10 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Great news!

So we all can enjoy Linux.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB does not boot - blank screen - BIOS issue? Big E Linux - General 4 01-14-2006 12:45 PM
Can't boot RHEL 3.0 AS and 2003Server with Grub w3bbuilder Linux - Newbie 2 11-02-2004 05:19 AM
Ahh help! (Grub Boot Loader Issue). RoaCh Of DisCor Linux - Software 9 09-09-2004 05:39 AM
Grub dual boot issue simvan Linux - Newbie 8 06-04-2004 05:13 AM
grub boot loader issue mbegovic Linux - Software 2 04-17-2004 05:59 PM


All times are GMT -5. The time now is 07:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration