They offer different flash templates with latest features.

Forgot password
Written by:
Score: 52
votes: 68
Format: Article

 Reinstall grub2 from LiveCD

These instructions are based on the instructions from the ubuntu help website - from LiveCD
Il try and make them easier to understand as when i first saw them it looked a bit complicated. Please dont look at this post thinking its gonna take forever it wont. Just take your time and follow them correctly.

1. Ok 1st thing you want to do is boot into your LiveCD of Mint. (best to use the same version as the one you are running on your computer)Once everything is loaded and your at the mint desktop. Open the Mint Menu and type "Gparted" into the filter text box.When it loads you should see all the partitons that are on the hard drive. Linux Mint partitions will probaly be EXT4 and the windows partitions will probaly be NTFS.

2. Look at the list of partitons and see what one is the Linux Mint partiton.You can tell this by looking at the Mount Points of the partitons. You should see one with a "/" under Mount Point and its File system will likely be EXT4. When you have located this partition look to the left and see what it is called. For example mine is called dev/sda6 (yours may be something different like dev/sda1 etc)Now that you know what partition is the Linux Mint partition, just leave gparted open so you can look back at it again incase you forget. Now open up a Terminal by clicking the Mint menu then clicking "Terminal" under System.
Now we need to mount the Linux Mint partition so that we are able to use it (access it) . To do this copy and paste this code into the terminal sudo mount /dev/sdXY /mnt
You will need to change the XY part of the code to match the name of your Linux Mint partition. For example my mint partition is dev/sda6 so i would change the code to - sudo mount /dev/sda6 /mnt

Now that you edited the line of code to match your mint partiton, go ahead and press Enter on your keyboard then type in your password if your asked for it then press Enter again.(When your entering in your password you will not see any characters, letters numbers etc). It may look as if nothing has happened, but your Linux Mint partition will now be mounted. The terminal will display nothing after the $ sign like it did when you 1st open it.

3. Now we need to tell the computer to reinstall grub2 to the Linux Mint partition we just mounted. To do this copy and paste this line of code into the terminal sudo grub-install --root-directory=/mnt/ /dev/sdX
Again you will need to change this line of code to match your Linux Mint partition. Change the "X" at the end to match your mint partiton. My partition is dev/sda6 so i will change the the line of code to - sudo grub-install --root-directory=/mnt/ /dev/sda
It is IMPORTANT that you do not enter any number just the letters of the partitions.
When you have edited the line of code press Enter on your keyboard. You should then see a message saying Grub installer finished or something like that. Now close the terminal and gparted and reboot your pc/laptop without the livecd in the disc drive. To restart click the mint menu then click "Quit" then "Reboot".

*Note after you reboot you should see the grub2 menu you had before you installed/repaired windows. You may need to refresh (update) this menu so that it detects the new windows partition.
This can easily be done by logging into your Linux Mint, opening a Terminal then copying and pasting sudo update-grub then press Enter then enter your password then hit Enter again. You will then see it detecting all the bootable partitons on the Hard drive. When you it displays 'Done', reboot again and you should be able to boot into windows again.

I know this isn't the best tutorial for reinstalling grub but i hope it helps someone.

Tags: Reinstall grub2 mint Livecd
Created: 5 years ago.
Last edited: 5 years ago.
Read 6809 times.

3 months ago

Doesn't work for me. I get an errormessage. It tries to install some i386. I'm on amd64. Debian Betsy, lmde 2.
If anyone has a suggestion I'll be happy. ☺
Hopefully boot-repair can sort me out otherwise.
3 months ago

To put things into the right order, both options --boot-directory and --root-directory accomplish the same, although only the former is mentioned by the man page of grub-install v2.02 ;-)  
4 months ago

That fdisk -l is fdisk dash lower case L (elle)

Also, the link I provided has a screen cut of me doing it in terminal.
4 months ago

I took this an ran with it today on MINT 17. Made a couple changes because I am a grouchy old guy and I'm irascible and lazy. Documented it here

shell to root su -
fdisk -l
note the linux partition, eg /dev/sda4
then do as you said above
mount /dev/sda4 /mnt
grub-install --root-directory=/mnt/ /dev/sda

Worked as you said. No problems. October 2015
6 months ago

The --root-directory option worked fine for me today, as i installed linux Mint Qiana Mate 32 bit for a dual boot on an ASUS Eeepc. The installer was unable to detect the partition /sda5 for installing GRUB. So following this guide and thanks to the --root-directory option i was able to install GRUB and to have a dual boot working Eeepc.

Thank you so much cra1g321.
7 months ago

grub-install has no “--root-directory” option anymore, so this will no more work either!  
1 year ago

This was helpful. according to a linux forum post a manual partitioning/install from a usb stick to a second hd (disk0)deletes the gnu grub2.
i misunderstood the last little bit of your instructions, but finally, this morning, booted back to the hd with windows 7 (Drive 1) and got the grub2 screen. This started out as a windows install of linux mint cinnamon 17.1 64 bit from a usb stick.
everything works more zero disk space message or having to boot from usb.I did do a boot repair suggested from another google search as a way to get grub2 installed, but i think your instructions are the solution.
thank you for your post, sncalaska
Linux is a bit different from windows...
1 year ago

Thank you kind sir  
1 year ago

another method that works 99% of the time:

1. insert live dvd or usb
2. boot from that disk
3. once in live environment, open a terminal and enter:

sudo grub-install /dev/sda
sudo update-grub

4. reboot as normal (remove live dvd/usb)
you will now see boot screen with available OS!

1 year ago

1 year ago

Worked 100% for me after upgrading ( fresh install ) from Mint 15 to 17 - thanks!!!  
1 year ago

Thank you, thank you, thank you. I too got the canonical path of /cow error, but Linux booted fine, and doing the sudo update-grub command worked like a charm.

1 year ago

Great tutorial. No need to panic because this solved it al. I had "failed to get canonical path of /cow" error , but everything seems to work. Thanks !  
1 year ago

for "grub-probe: error: failed to get canonical path of /cow."
instead of running grub-install, run cmd below:
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt
grub-install /sd#
1 year ago

Brilliant tutorial Cra1g, many, many thanks for this - it's saved the day when my install of Mate 17 came up with the "symbol 'grub_term_highlight_color' not found" error came up on rebooting. But following your instructions got me booting into Qiana in a couple of minutes. Thanks again.
1 year ago

Yes, in did worked for me like a charm, thank you.
Never guessed that could be so ("simple")considering my panic.
1 year ago

Thanks for your efforts to help those of us who desperately need assistance.
I must regretfully say I have found that many of the tutorials here, while always helpful to those of us who know little to nothing of these matters, that sooner or later, with each new distro version, they become worth less and less, until they are finally out of date.

Unfortunately, while I learned a lot from your tutorial, it didn't help me solve my particular problem.
I needed a tutorial for Mint 15 or later, and upon re-reading, I noticed this tutorial was written three years ago.

There have been major changes to Mint in the interim, and in my case they have impacted my problem greatly due to the incorporation of kernel encryption.

Don't think I am complaining though, encryption is one of the main reasons I chose to use this outstanding distro, another reason being the tremendous assistance afforded to others, like me, who are beginners with Linux.

For instance, with Mint 15 and 16, Gparted and GRUB2 no longer are installed by default when one chooses to encrypt their root directory, though they may still be installed if one decides to use them.

But now there is a definite need for an updated tutorial for maintaining the encrypted boot partition.
Unfortunately I am definitely not qualified to undertake that task.

I am fortunate to have made a separate backup of my system disk, using a Windoze utility no less, because otherwise I would have to start from scratch.
My backup will but me back a little over a month, but at least I will save the major effort I have put into VirtualBox that would have otherwise been lost.

Again, thank you and if I may be so bold to ask, could you spare a little more of your time and effort for an updated version?
Sorry, but I just had to give it a try.
1 year ago

Will this replace the original MBR wtih grub? I have done a non traditional installation of linux mint. Please see video for better understanding.

I want to put grub on my linux mint partition and not on the MBR.
2 years ago

nice tutorial  
2 years ago

super clear. I learned so much basic stuff!

I tried this from within my installed Mint (not from live CD)and it did its thing but it didn't solve the problem. (I can boot into Mint on a one-time basis from a rescue disk that does not permanently solve the problem.)

Do I have to do this process specifically from the live CD?

When I boot, I get to a grub command line and I don't know what to do from there. By pressing tab I get all kinds of choices but none of them look right.
2 years ago

@janochek  i got the same error but the grub was updated anyway.  
2 years ago

Nice tutorial, simple and well explained, you don't need a PHD to understand this unlike most tutorials on the web.
I think this will help a lot of people, unfortunately not me, I got an error "grub-probe: error: failed to get canonical path of /cow.".
I will have to look further and hope to find a well explained solution for my problem. I bought a new HP pavilion with preinstalled Windows 8, have no problems to boot and work from the live DVD of MINT 15, had no problems installing MINT, but it won't boot, only windows.
2 years ago

Apologies for not helping out with the comments/replies.

I wrote this 2 years ago, back when LM was my main OS.
2 years ago

tnx...very usefuuullll...!  
2 years ago

Crankshaft, he means to use the menu in the lower left corner, and search for Gparted. I think that Gparted may have been included with previous distributions of mint (don't quote me), but now you would have to open Software Manager and install it. You can also find the same info in a program called Disks, which does come pre-installed with Mint 15.  
2 years ago

Open the Mint Menu and type "Gparted" into the filter text box. ok where is the menu and what is the filter box , how to get there.  
2 years ago

Thanks a ton for this great tutorial. It recently proved to be a lifesaver when I messed up the partitions on my hard disk after installing Mint 15. Worked like a charm and got me to the login screen in no time!  
2 years ago

Thanks very much for this info. I was starting to sweat when firstly presented with Gparted then GRUB I am well on my way to being converted to Linux Mint. It might be useful, if you haven't included this in another tutorial, to note that the latest LMDE installer does all this for you. BUT you need to know basics like setting partition size and linux-swap partition size and file system it seems ext4 is the one to use. Once again I can't thank you enough if this info wasn't available I would have been going round in circles for a considerable time.
Andrew Gilbert (Converted and up and running)
3 years ago

I have look ALL over the place for how to do this, almost gave up until I found this! Thank you very much!  
3 years ago

Excellent tutorial, you just saved my data after my heat sink got lose and the crash damaged grub!

Thank you :D
3 years ago

very good  
3 years ago

Excellent tutorial. Got me through when the Install Linux Mint application failed to produce a bootable machine.  
3 years ago

I get this error:

mint@mint ~/Desktop $ sudo grub-install --root-directory=/mnt/ /dev/mapper/isw_eaajiabbia_M17X_RAID0p5
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.
3 years ago

Simple and Best Explaination.
3 years ago

Very useful , thank you.  
3 years ago

@pintyoo33, Try CHROOT method from the link below: GRUB 2
3 years ago

Hi guys! The tutorial is clear, and usefull! Need to thank, but I got some mistake. I followed your steppes, but I got an error message.
mint@mint ~ $ sudo mount /dev/sda2 /mnt
mint@mint ~ $ sudo grub-install --root-directory=/mnt/ /dev/sda
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
/usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported.

Can sbd help me to solve this problem? :|
4 years ago

Thanks for this great tutorial. Easy to follow steps in newbie language. Made a daunting task easy for a first-timer.  
4 years ago

This saved me from submitting a problem and waiting for a solution.

This repair tutorial is just what I needed, exactly when I needed it.

Thank you.
4 years ago

Thank you!.  
4 years ago

Very useful.  
4 years ago

Glad to hear it helped you, groucho1989  
4 years ago

Worked first time to recover grub menu lost after installing PCLinux OS as a 2nd OS to Mint11. Thank you.  
4 years ago

Im no linux expert, so im not completely sure what the error means. The grub-probe is the tool im assuming used for detecting what OS exist on the computer. The error is 'Cannot find a device for /boot' which i think means that it can't find a partition that is used for /boot, but i think dont think this makes any difference because ubuntu/linux mint and most distros dont actually create a /boot partition during installation, only one i know which does off the top of my head is Arch Linux.
So i dont think its error to be worrying about, its more just a notification rather than a error IMO.
4 years ago

I will add my "thank you" for this tutorial.

However, I too received the error message:

/usr/sbin/grub-probe: error: cannot find a device for /boot (is /dev mounted?).
Install successful. No errors were reported

What's the source of the error, and is it safe to ignore? My system booted fine.

4 years ago

Glad it helped you Rikstation :)  
4 years ago

Very well written for newbies, The main things i was looking for were easy to find when scanning the page as they were in bold.
Promoted, Many thanks
4 years ago

@sayan_acharjee +1 ;)  
4 years ago

A really easy to use Live CD that fixes the GNU GRUB in seconds is Rescatux:
1. Download the ISO, burn it onto a CD or create a bootable USB stick.
2. Boot the Live CD/USB and a nice wizard named Rescapp will guide you through your rescue tasks: just choose "Restore GRUB / Fix Linux Boot" to restore the GRUB.
3. Run "update-grub", then restart your computer.

Currently Rescatux only restores GRUB to the MBR, but more features should be available in the next versions.
4 years ago

This did not work in my case, the grub-install command gave this error:
grub-probe: error: cannot find a device for /boot (is /dev mounted?).

Then I tried Method 3 of the tutorial below by using CHROOT, then only it worked. GRUB 2
4 years ago

Very nice tutorial! I already knew all the info in here, but man, it took a looong time to figure out... my life would be MUCH easier if I met this tutorial before. "sudo grub-install --root-directory=/mount/LABEL /dev/sdX" is really a life-saver command.

A few comments, hints and questions:
- Maybe for begginers step #1 and #2 would be easier if replaced by something like:

"Open Nautilus (Menu -> Computer), find your Linux/Mint partition (something like "xx GB Filesystem on xxx GB Hard Drive") and double-click it. That will mount it. Now mouseover the recently mounted partition and write down the mount point (something like /media/XXXX)"

That avoids using several programs (including the newbie-dangerous gParted), and its 100% GUI. It only needs Nautilus

- Why do i always get a mysterious error when i use install-grub from a LiveCD? The output is something like this:

$ sudo grub-install --root-directory=/mount/LINUX /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /boot (is /dev mounted?).
Install successful. No errors were reported

It does work, and my grub is restored, as if actually no errors had happen. So i usually just ignore that message... but always wondered what does that mean. It only happen when using a LiveCD. Using Mint 10 here (both Live and in LINUX partition. Any clue?
4 years ago

OMG i saved someones life ;)

Glad to hear it helped you.
4 years ago

Perfect, saved my life ;)  
5 years ago

Plz vote if everything works fine for you ;)  
5 years ago

I am going to try this and will let you know the result here, but its look quite useful. :D
5 years ago

Very useful. Thank you!  
5 years ago

I like the tutorial, but it might also help to have an addendum for those poor souls like myself that made their lives more complicated by putting linux on an entirely different hdd.  
5 years ago

Plz leave a reply if you voted, so i can say thanks :)  
5 years ago

really surprised no one has made a tutorial on how to do this. This week I will be condensing this tutorial and my other tutorial (removing windows 7 from dual boot) so that they are clearer to read and understand.  

Other tutorials from cra1g321

No other tutorials.