LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-01-2003, 09:54 AM   #1
donge
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Rep: Reputation: 0
boot problem with GRUB


Hi,

I installed RedHat 9 using a boot partition. The installation went well but when I boot the PC, I can't see the boot loader menu but only get the text "GRUB" on the screen, then the pc hangs. I can't event boot into the XP.

I used the PQMAGIC to check the partitions: the windows xp, linux boot/root/swap partitions are all there.

Anyone has any idea about this, please help.

Thanks very much!

Donge
 
Old 08-01-2003, 11:11 AM   #2
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Do you see the command prompt like this?

grub >

If you do, type in commands like this.

grub > rootnoverify (hdx,y)
grub > chainloader +1
grub > boot

* pls note that (hdx,y) is your windows partition.
hda1 ----> (hd0,0)
hda2 ----> (hd0,1)
.............
hdb1 ----> (hd1,0)
hdb2 ----> (hd1,1)
.............

if you can boot up windows, you should have no problems at all. Just boot into linux using the boot disk created during installation. Go to /boot/grub/ and edit the file grub.conf (or menu.lst). Post the file here if you dunno how to.
 
Old 08-02-2003, 05:22 AM   #3
donge
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks koyi

NO, I can see the command like 'grub >'. I only see

GRUB -

I think the '-' is the cursor. But whatever I type, the cursor just does want to move - I can type anything onto the screen, the pc just hangs...

Any idea about this problem?

Thanks very much

Donge
 
Old 08-02-2003, 05:28 AM   #4
donge
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Original Poster
Rep: Reputation: 0
I meant I CAN't see the command prompt. Sorry about the typing error.

Also I don't have a book disk as I don't have a flopy driver with my notebook.

Donge
 
Old 08-02-2003, 05:29 AM   #5
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
boot from a bootable floppy.try lilo instead of grub.
 
Old 08-02-2003, 05:30 AM   #6
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
try reinstalling,with lilo as bootloader
 
Old 08-02-2003, 06:12 AM   #7
donge
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Arunshivanandan

Is Lilo better than Grub?

I have to say that I got this problem only when I reinstall RetHat using a boot partition. The Grub worked well when I only had a root and a swap partitions. I created a boot partition and reformated all the linux partitions during the installation. Then I get this problem.

is that because of the boot partition?

Thanks for your help

Donge
 
Old 08-02-2003, 09:39 AM   #8
donge
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Hi,

just wanted to add a bit more to the pre post:

I don't have a boot disk as I don't have flopy driver
with my pc. I can boot the pc from a KNOPPIX cd and
can see the files in all partitions. However, I don't
have the permission to open the boot/grub.conf file.

Any idea to fix this? Thanks very much.

Donge
 
Old 08-02-2003, 08:56 PM   #9
GordGray
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Unhappy I have similar problem

I had Windows NT 4 running just fine on one hard drive. I installed redhat 9 on another hard drive (partitions on hdb are /boot, swap and /)

Now nothing boots. After POST, it just says "GRUB _".

Can anyone please HELP !!!

Thanks,

Gord.
 
Old 08-02-2003, 10:51 PM   #10
Electboy
Member
 
Registered: May 2003
Location: VietNam
Distribution: RedHat 9.0
Posts: 79

Rep: Reputation: 15
Hi Donge. Did u install GRUB or LILO in MBR ? If so Windows will never boot
 
Old 08-02-2003, 11:10 PM   #11
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
Quote:
Originally posted by donge


Is Lilo better than Grub?
Not really..Grub is newer and is more flexible.lilo suits a newbie/first time installer and is easily configurable.I think grub is more complex.

Quote:
is that because of the boot partition?
may be some problem with the configeration of the bootloader after adding the boot partition.

the best method(i think) is to reinstall linux(try lilo instead).
 
Old 08-03-2003, 02:54 AM   #12
donge
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Electbody,

>Did u install GRUB or LILO in MBR ? If so Windows will never boot

NO, I installed the GRUB in the first sector of the boot partition

Thanks

Donge
 
Old 08-03-2003, 03:28 AM   #13
shamen
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
Try boot from 1st redhat 9 CD. then type: linux rescue.

Then chroot na /dev/???. So, then you can config lilo, to be your bool loader.
 
Old 08-03-2003, 04:41 AM   #14
donge
LQ Newbie
 
Registered: Jul 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Shamen

I guess /dev/??? is pointing to the boot partition? But how about 'na'? I did try chroot but could only use

chroot /mnt/sysimage

as the rescue says.

Also I am using GRUB. How do I configurate it? My grub.conf file is:

-----------------------------------------------
default=1
timeout=10
splashimage=)hd0,3)/grub/splash.xpm.gz
password --md5 ....
title Red Hat Linux (2.4.20-8.img
root (hd0,3)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title WinXP
rootnoverify (hd0,0)
chainloader +1
------------------------------------------------

Any idea? Thanks very much.

Donge
 
Old 08-03-2003, 10:28 AM   #15
shamen
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
linux rescue

now, you are running chrooted to boot image.

So, do st. like this:

mkdir /mnt/test
mount /dev/??? /mnt/test
chroot /mnt/test

:-)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Boot problem with GRUB pengStudent Linux - Newbie 3 01-09-2004 11:04 PM
boot problem with GRUB! djkoe Linux - Laptop and Netbook 1 01-04-2004 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:47 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