Solved

rebuild boot loader ?

Posted on 2004-04-30
3
990 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses

617 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