LinuxQuestions.org
Register a domain and help support LQ
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 03-15-2004, 12:07 PM   #1
azacid
LQ Newbie
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 3
Posts: 18

Rep: Reputation: 0
Unhappy How to boot linux or XP from GRUB prompt?


Hi

Im dual booting XP and RedHat 8 using GRUB, which was working very well until today

Now all I get is the GRUB prompt, with no options to boot into either XP or RedHat.

Please, does anyone know how I can get back the options to either boot into XP or RedHat?

Thanks


 
Old 03-15-2004, 12:31 PM   #2
woodywellhung
Member
 
Registered: Feb 2004
Location: Lincoln, UK
Distribution: red hat 9
Posts: 67

Rep: Reputation: 15
did u make a boot disk?

if u did use it to boot linux and then find the grub install prog i think its called grub-install and reinstall it.
 
Old 03-15-2004, 12:40 PM   #3
azacid
LQ Newbie
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
This is on a loptop with no floppy drive

so I wasnt able to make a boot disk for either OS
 
Old 03-15-2004, 12:46 PM   #4
woodywellhung
Member
 
Registered: Feb 2004
Location: Lincoln, UK
Distribution: red hat 9
Posts: 67

Rep: Reputation: 15
oh dear...

has it got a cd rom?

if it has all i can suggest is that u use linux cd to boot and do a rescue install
 
Old 03-15-2004, 01:42 PM   #5
Farmchild
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8
Posts: 14

Rep: Reputation: 0
to boot to linux from a grub prompt you need to know the location of the kernel image, and the hdd & partition name

for example, my linux is installed on /dev/hda5 and kernel is in /boot/vmlinuz

i use these from a grub console at startup to boot to linux

root (hd0,4) #note that the partition number and hard drive numbers start at 0 instead of 1
kernel /boot/vmlinuz
boot

for xp i use the following (xp is on hda4)

rootnoverify (hd0,3)
makeactive
chainloader +1
boot

to get back the selection, you need a file in your /boot/grub directory usually, named depending on your distro...for the officla grub it is called menu.lst. Then just add these sections to that file and it will give you the menu at bootup instead of the prompt...for my settings above, this is my menu.lst:

default 0
timeout 10
title Slackware (2.6)
root (hd0,4)
kernel /boot/vmlinuz-2.6.3
title Slackware (2.4)
root (hd0,4)
kernel /boot/vmlinuz ro root=/dev/hda5 hdd=ide-scsi
title Windows XP
rootnoverify (hd0,3)
makeactive
chainloader+1

Last edited by Farmchild; 03-15-2004 at 01:43 PM.
 
Old 03-15-2004, 02:10 PM   #6
azacid
LQ Newbie
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 3
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks to all and in particular to Farmchild for your help

It works, this is what I was looking
 
  


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
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - Newbie 3 12-11-2005 09:26 PM
Can't Boot Grub Prompt pmrent Linux - Newbie 3 02-24-2005 01:11 AM
How do I use GRUB to boot linux at grub prompt? Mustbox Linux - General 2 02-15-2005 02:01 PM
GRUB doesn't boot linux when I enter "boot" at its prompt mark_nl Linux - General 17 09-19-2004 12:55 PM
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - General 5 06-19-2003 07:23 PM


All times are GMT -5. The time now is 12:40 PM.

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