LinuxQuestions.org
Review your favorite Linux distribution.
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, 12:48 PM   #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, 01: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: 112Reputation: 112
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 01:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:51 AM
GRUB not reinstalling jboo Linux - Software 5 10-02-2005 11:55 AM
reinstalling GRUB 0perat0r Linux - Newbie 7 05-02-2005 03:30 PM
reinstalling grub ELconkestador Linux - Software 1 02-12-2005 11:22 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 05:03 AM


All times are GMT -5. The time now is 05:33 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration