Solved

rebuild boot loader ?

Posted on 2004-04-30
3
989 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use question mark (?) in filename with html 25 136
IMAP copying tool 14 76
AWS Linux EC2 question on group 7 91
apache does not start on Kali linux 4 98
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

751 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