LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Lost my grub on wheezy - how to fix grub from the "outside"? (https://www.linuxquestions.org/questions/debian-26/lost-my-grub-on-wheezy-how-to-fix-grub-from-the-outside-4175539038/)

hearthstone 04-07-2015 05:29 PM

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.

yancek 04-07-2015 09:22 PM

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.

hearthstone 04-16-2015 06:18 AM

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


All times are GMT -5. The time now is 08:07 AM.