Peppermint | Linux OS Community Forum
 
It is currently Sat May 26, 2018 12:03 am

All times are UTC - 5 hours [ DST ]





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: [One][Ice][Two] How to reinstall grub 2 from a live cd
PostPosted: Thu Aug 05, 2010 12:59 pm 
Offline
User avatar

Joined: Thu May 20, 2010 8:56 am
Posts: 2132
Class: Recovery how to for Grub
Difficulty: Requires a live CD, a knowledge of hard drive naming conventions, may carry a bit of risk
Time: Ten to fifteen minutes
Desirability: Hopefully you'll never need it

Aging Technogeek writes: "This is not actually my idea. It was posted on the Mint forum by proxima_centauri and he probably read it somewhere on the Mint or Ubuntu forums."

If you end up with a Mint, Ubuntu, or Peppermint partition that can not be used because Grub has been destroyed (say, by installing a version of Windows and having it overwrite the boot sector) you can reinstall Grub by using the live installation CD. (Assuming the Linux partition is intact except for Grub)

1. Boot the live CD to the desktop.
2. Open a terminal and enter "sudo mount /dev/sda1 /mnt". replacing sda1 with the proper partition number for your Linux / (root) partition.
3.Once the Linux partition is mounted, reinstall Grub by entering "sudo grub-install --root-directory=/mnt/ /dev/sda".
4. Reboot to check that it worked.

In the situation described where a Windows installation destroys Grub, you should get the full dual boot menu. If not, but the Linux OS boots, try running "sudo update-grub" to pick up the Windows Partition.

Aging Technogeek
(John)
Mint Forum Moderator

_________________
Admin


Top
 Profile  
 
 

Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL