How to get back Linux Grub screen | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

How to get back Linux Grub screen

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-21-2005
er.pankaj er.pankaj is offline
Registered User
 
Join Date: Feb 2005
Last Activity: 25 March 2005, 5:22 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
How to get back Linux Grub screen

I had Linux and win98 installed on my PC, then I installed winXP and it has replaced the Grub Bootloader, now on booting up I get to see only win98 and winXP to choose from, Now how do I get Back the Grub screen with Linux as a option or how do I boot into linux.

Sponsored Links
    #2  
Old 02-21-2005
locustfurnace locustfurnace is offline Forum Advisor  
Registered User
 
Join Date: Aug 2004
Last Activity: 20 November 2005, 5:03 PM EST
Posts: 232
Thanks: 0
Thanked 0 Times in 0 Posts
Boot on your GNU/Linux distro's recovery CD or floppy recovery disk you made when you installed your system. Once booted up, mount your filesystem. Once you have your root partition mounted, just chroot to the mounted filesystems. The re run your grub installation.

Bascially, boot up, create a mount point, mount the necessary partitions accordingly. I am not sure of the command to re-run grub, as I only use LILO.

For example after booting the recovery medium:

cd /
mkdir /mnt2
mkdir /mnt/boot
mkdir /mnt/usr

mount /dev/hda1 /mnt2
mount /dev/hda2 /mnt/boot
mount /dev/hda3 /mnt2/usr

chroot /mnt2

Then re-run your grub bootloader as per instructions.
Sponsored Links
    #3  
Old 02-21-2005
cbkihong cbkihong is offline Forum Advisor  
Advisor
 
Join Date: Sep 2002
Last Activity: 4 May 2014, 6:22 AM EDT
Location: Hong Kong, China
Posts: 1,622
Thanks: 0
Thanked 9 Times in 8 Posts
The command to install a GRUB bootloader is

grub-install /dev/whatever
    #4  
Old 03-25-2005
er.pankaj er.pankaj is offline
Registered User
 
Join Date: Feb 2005
Last Activity: 25 March 2005, 5:22 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanx alot guys, I got my grub back

I did it this way
Invoked Grub,

Set the GRUB's root device1 to the partition containing the boot directory, like this:
# grub> root (hd0,0)

If you are not sure which partition actually holds this directory, use the command find,This will search for the file name /boot/grub/stage1 and show the devices which contain the file.
# grub> find /boot/grub/stage1

#grub> setup (hd0) --This command will install the GRUB boot loader on the Master Boot Record (MBR) of the first drive.

If you want to put GRUB into the boot sector of a partition instead of putting it in the MBR, specify the partition into which you want to install GRUB like this:
#grub> setup (hd0,0)

Cheers
Pankaj
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grub screen issue while booting...... Amol21 Red Hat 5 07-27-2009 12:28 PM
Blank GRUB Screen panchpan Solaris 2 10-17-2007 07:50 AM
Is there a way to get rid of GRUB and any OS selector so that Linux starts.... mattzway UNIX for Dummies Questions & Answers 0 07-12-2005 11:43 AM
in need of serious help with Grub and Linux, Windows XP mattzway UNIX for Dummies Questions & Answers 11 07-12-2005 11:34 AM
Can't get GRUB to boot Linux!!! cstovall UNIX for Dummies Questions & Answers 2 03-03-2003 03:15 PM



All times are GMT -4. The time now is 07:56 AM.