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 03-15-2004, 11:07 AM   #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

I’m 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, 11:31 AM   #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, 11:40 AM   #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, 11:46 AM   #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, 12: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 12:43 PM.
 
Old 03-15-2004, 01: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



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

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

All times are GMT -5. The time now is 12:32 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
Open Source Consulting | Domain Registration