Solved

rebuild boot loader ?

Posted on 2004-04-30
3
987 Views
Last Modified: 2013-12-06
I’m using red hat Linux 9, but recently I installed windows XP professional
So Linux boot loader (I’m used Grub) overwrite.
Now I have to use bootable Linux floppy to load the Linux
My question is that how to rebuild the boot loader of red hat Linux 9
Please help me out.

Thanks
0
Comment
Question by:ms_blaster
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 10962725
I'm guessing that by "Linux 9" you are referring to RedHat 9. If that's the case the procedure is to:

1) Boot from the 1st RH9 CD into "rescue mode" and allow it to find and mount your RedHat system.

2) Execute the commands:

# chroot /mnt/sysimage
# grub-install /dev/hda          (IDE system)
  --or--
# grub-install /dev/sda           (SCSI system)
# exit
Ctrl-Alt-Delete

or to boot from floppy and execute:

# grub-install /dev/hda          (IDE system)
  --or--
# grub-install /dev/sda           (SCSI system)

Since you have a bootable floppy the second procedure is the easiest.
0
 
LVL 1

Expert Comment

by:ramrajprabu
ID: 10965225
use /sbin/grub-install to rewrite the boot-loader
u might need to a chroot to your correct harddrive when u boot from floppy

chroot /mnt/sysimage
/sbin/grub-install <partition>

0
 
LVL 1

Expert Comment

by:ramrajprabu
ID: 10965227
oops somebody already posted it, sorry for repeating it :), this new experts-exchange  with the ad in the between the question and the comments is confusing
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question