LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-07-2015, 05:29 PM   #1
hearthstone
Member
 
Registered: Dec 2005
Distribution: Debian Stable
Posts: 109

Rep: Reputation: 4
Lost my grub on wheezy - how to fix grub from the "outside"?


I run wheezy on IBM Thinkpad T43.
Somehow I lost grub, cannot boot up.
Is there a way I can install grub to the MBR? How?
Thanks - Hearthstone.
 
Old 04-07-2015, 09:22 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Use the install media to run, as root: grub-install /dev/sda

that is if you want to install to the mbr of the first drive (sda). Did you mount the partition to check to see if any grub files, particularly grub.cfg still exist? You might have to chroot to the partition and run: update-grub, or grub-mkconfig to create a new grub.cfg file if it doesn't exist.
 
Old 04-16-2015, 06:18 AM   #3
hearthstone
Member
 
Registered: Dec 2005
Distribution: Debian Stable
Posts: 109

Original Poster
Rep: Reputation: 4
SOLVED: I installed another Debian stable alongside on an empty partition, and a new grub on the MBR.
Thanks, Hearthstone.
 
  


Reply

Tags
grub, mbr



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
[SOLVED] GRUB bootloader "issues" on Debian Wheezy 7.5 (multiboot with Windows 7) vvladimir Linux - Newbie 3 06-01-2014 08:35 AM
[SOLVED] Now I've done it - Debian dual boot (Sid, Wheezy) grub overwritten, lost Wheezy? ShaneRoach Debian 23 02-02-2014 02:28 PM
How to fix Grub rescue - "exception Emask" error? yangiss Ubuntu 7 10-31-2011 06:44 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
How do I fix a "Grub read error"?? Tiyogi Linux - Newbie 1 06-02-2004 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:59 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
Open Source Consulting | Domain Registration