Solved

rebuild boot loader ?

Posted on 2004-04-30
3
984 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now