Solved

rebuild boot loader ?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
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.

929 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

17 Experts available now in Live!

Get 1:1 Help Now