LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2006, 11:48 AM   #1
vineet7kumar
Member
 
Registered: Aug 2005
Posts: 75

Rep: Reputation: 15
reinstalling GRUB


how to reinstall grub if it's corrupted by a windows boot disk??
some of my frndz faced this problem?
thanx,
vineet
 
Old 01-15-2006, 12:02 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
You boot up a Linux Live CD, make a directory on /mnt, mount the unbootable Linux partition on it, change root to the unbootable Linux, do a Grub-install, exit and reboot.

As example if the root partition of your Linux is hda6, after boot up a Live CD (almost any one will do)
Code:
mkdir /mnt/temp
mount /dev/hda6 /mnt/temp
chroot /mnt/temp
grub-install /dev/hda
exit
reboot
If you use a Sata the hda6 should be sda6 and hda should be sda.

hda without the partition number means the whole disk and that is the MBR.

Last edited by saikee; 01-15-2006 at 12:03 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstalling grub. greythorne Ubuntu 23 12-03-2005 01:51 AM
GRUB not reinstalling jboo Linux - Software 5 10-02-2005 10:55 AM
reinstalling GRUB 0perat0r Linux - Newbie 7 05-02-2005 02:30 PM
reinstalling grub ELconkestador Linux - Software 1 02-12-2005 10:22 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration