LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble with GRUB (https://www.linuxquestions.org/questions/linux-software-2/trouble-with-grub-21707/)

SilverSnake 05-24-2002 05:36 AM

Trouble with GRUB
 
I just made a clean install of RedHat Linux 7.3 and choose GRUB as my boot-whateveritscalled....

When I boot up, choose it will search for boot records on HDA-1 (in the bios) I get something like:

Searching for boot record..... Ok!
GRUB

and right after GRUB I got an input marker (blinking box or something like that), but it doesn't respond to any input at all... I've tried to modify the grub.conf and removed the option of booting into windows (which I can control via the BIOS instead) and make it timeout on 3 seconds and default on Linux, but I still cannot get past it...

Any tips or tricks? Maybe I can just scrap GRUB in some easy (??) way and make it just boot into RH right away as I can choose in the bios what HDD to select the boot record from, HDA-0 gives me Windows and HDA-1 gives me Linux...

Thanks in advance for any help.... :)

Bert 05-24-2002 08:45 AM

Make your 'menu.lst' file and place it in /boot/grub, then

% grub-install /dev/fd0

should do it for a floppy. If that works and grub boots from the floppy, then grub is working properly.

Try that first.

Bert

jglen490 05-24-2002 09:57 AM

Where exactly did you install GRUB? hda or hda1? And what is "choose it"?

SilverSnake 05-24-2002 10:03 AM

Putting the GRUB boot stuff on a floppy worked just fine... with the floopy in my drive it booted perfectly, no problems at all...

So, back to the original problem... the "choose it" was odd written by me.. I apologize... I'll try again:

hda0 holds WinXP and bootchooser for WinXP/Win2k.
hda1 holds Linux and grub, and during install I selected some option about "putting boot *something* first on the /boot partition (I think that was it)" which would be required if I wanted to dualboot with NT, and since both XP and 2000 is NT based I figured that'd be the right thing to do...

Hope that clears it out some... otherwise I'll try again... :) And please don't flame me for running both XP and 2000... I'm trying to convert myself gradually and hopefully I'll end up running Linux for most stuff and XP for gaming... :)

jglen490 05-24-2002 10:44 AM

Dual and triple booting is O.K. -- as long as you use 2 or 3 Linuxes :D :D !!

But seriously, it sound like you boot to the W2K boot.ini menu which gives you the option to further boot to Windoze or whatever else is in boot.ini such as Linux. There are some How-Tos and mini-How-Tos that tell exactly what is required, but what happens is that boot.ini has to have some image that it can use to perform the next step. It sounds like boot.ini doesn't know where to find the Grub instructions. You might check the Linux Documentation Project (http://www.linuxdoc.org/), and look into the How-Tos on multi-booting.

SilverSnake 05-24-2002 11:18 AM

Quote:

Originally posted by jglen490
It sounds like boot.ini doesn't know where to find the Grub instructions. You might check the Linux Documentation Project (http://www.linuxdoc.org/), and look into the How-Tos on multi-booting.
Well, I know it doesn't... thing is.. when I change some BIOS settings I get as far as to a "GRUB" promt (even tho graphical mode was selected) and a blinking inputmarker... But I get no respons from my keyboard at all... and even tho I got a 3sec delay and Linux selected as default, nothing happends.

jglen490 05-24-2002 02:56 PM

It may be that your BIOS settings and boot.ini and Grub are fighting each other. If you can, please display the contents of your boot.ini and Grub menu.lst files here. We may be able to figure out how to get you going. Just hang in there :) !

SilverSnake 05-24-2002 04:51 PM

Thanks... they come a bit down here... Just wanted to say I'm not in a panic mode as Bert's solution lets me boot Linux. It's just a floppy to be inserted instead of a bios setting to be changed or another selection from my Windows bootup menu...

Anyway... here goes.

Quote:

boot.ini

[boot loader]
timeout = 8
default = multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS = "Microsoft Windows XP Professional" /fastdetect
multi(0)disk(0)rdisk(0)partition(2)\WINNT = "Microsoft Windows 2000 Professional" /fastdetect

ack... cannot read anything on my boot floppy from Windows (which I currently happened to be running ;))... So, I'll just reboot in a min and I'll post the menu.lst from Linux instead.... sorry for any inconvieniece ;)

SilverSnake 05-24-2002 04:57 PM

Quote:

menu.lst
# 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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb4
# initrd /initrd-version.img
#boot=/dev/hdb1
default=0
timeout=3
splashimage=(hd1,0)/grub/splash.xpm.gz
title linux (2.4.18-3)
root (hd1,0)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hdb4 hdd=ide-scsi
initrd /initrd-2.4.18-3.img

This is the same one I got on the floppy (i.e. unedited after I made the floppy as Bert suggested above).

Bert 05-27-2002 07:03 AM

Personally, I only use a floppy to boot. I use Windo$e Me on my first partition.

The boot sector is one place Windows never like to share ever since MS got rid of real dos mode. As you probably found out SilverSnake, booting from a GRUB floppy is pretty quick and will save only 2 or 3 seconds if GRUB was on the hard drive. That's a time penalty I'm happy to accommodate personally.

Just a thought if the hassle gets to yer.:)

Bert

SilverSnake 05-27-2002 08:43 AM

Well, floopy it seems to be as no one seems to know how to solve the harddrive boot problem I got anyway... *shrugs* don't really mind it... Thanks Bert. :)

linuxcool 05-28-2002 04:40 AM

SilverSnake, are you trying to use xp's or w2k's boot loader to boot linux?

If you installed grub on the hdb1 ( /boot ) partition, you need to make a copy of its boot sector and copy it to either xp's or w2k's partition. Then add an entry for linux in your boot.ini file.

If you are trying to use your bios to boot linux, you should have grub installed in the mbr of hdb.

SilverSnake 05-28-2002 09:32 AM

Quote:

Originally posted by linuxcool
SilverSnake, are you trying to use xp's or w2k's boot loader to boot linux?
Right now it's XPs boot loader that's in the mbr of my primary master disk.

Quote:

Originally posted by linuxcool
If you installed grub on the hdb1 ( /boot ) partition, you need to make a copy of its boot sector and copy it to either xp's or w2k's partition. Then add an entry for linux in your boot.ini file.

If you are trying to use your bios to boot linux, you should have grub installed in the mbr of hdb.

I did install grub on the hdb1 (/boot) partition and I try to boot Linux via Bios... but I do get as far as seeing a prompt-like thing saying "GRUB", but I cannot type anything and the computer stops there. But you still think I'd manage if I added a "link" to the GRUB in XP's boot loader? (I found how to do that in another topic but figured it wasn't worth it unless I got it to work with booting Linux with bios' help).

I'll try it out later then... Thanks for the idea! :)

linuxcool 05-29-2002 04:08 AM

I think I see how you have it set up on hdb. You installed grub in the /boot ( hdb1 ) partition. The mbr has the original code in it and hdb1 is marked bootable. You then use your bios to boot from hdb instead of hda. But, you are having a problem getting it to boot. The grub disk you made works fine. Maybe you need to reinstall grub to hdb1. Just boot into linux and as root run
grub-install /dev/hdb1. Also, make sure that hdb1 is marked as bootable by using linux's fdisk. Then try it.

bmiller 12-05-2002 03:14 PM

I know this is an old thread BUT....
I just loaded Linux on my XP system on the B drive and had the EXACT same problem.
- when tring to launch grub from the NT loader I just get a blank screen with "GRUB" in the upper left and a flashing cursor -

Simple fix: Go into the CMOS and add the second drive!!

Ha, I could access the second drive from Windows as well as Install and boot Linux (from the floppy) without ever having added the drive to the CMOS.

I only though about it when DOS fdisk would only see one drive.

From my NT loader I boot
-WinME
-XP
-Win 2k Server
-Windows Recovery Console
-Linux (redhat 8)

Just thought I'd add a little closure to this thread....


All times are GMT -5. The time now is 03:54 PM.