Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

A friend of mine is running Ubuntu and got GRUB RESCUE. Can they use Mint ISO to repair their Grub? As I don't have Ubuntu ISO?

share|improve this question
    
I guess yes, you can checkout this ubuntuhandbook.org/index.php/2013/11/… –  beginer Sep 1 at 13:31

2 Answers 2

up vote 5 down vote accepted

If the Ubuntu installation is still present (and only GRUB was lost), sure, you can use any distro that has live booting to do so. chroot into the Ubuntu installation and install and update Grub. If /dev/sda5 is the Ubuntu partition:

mount /dev/sda5 /mnt
mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
mount -t devpts none /mnt/dev/pts
chroot /mnt /bin/bash
#Inside the chroot
grub-install /dev/sda
update-grub
exit
# Unmount all those mounts:
for m in /mnt/{dev/pts,dev,proc,sys,}; do umount $m; done
# reboot

If all you need to do is install grub, and updating isn't necessary, then you don't need the chroot:

mount /dev/sda5 /mnt
grub-install --root-directory=/mnt /dev/sda

If you have a separate boot partition, remember to mount it as well, after mounting /mnt.

share|improve this answer

Since grub is standard boot loader, you can use any distro that uses grub as its bootloader.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.