How To Reinstall Grub2 After Windows

How To Reinstall Grub2 After Windows 4,0/5 2599votes
Install Grub2 From Windows

Some reasons to repair your boot-loader might include installing Microsoft Windows after you. The usual GRUB boot. This only works to reinstall to. Sep 30, 2011 Link = In this video you will see how to Re-install grub2 Live CD/USB after. Ubuntu and many other Linux distributions use the GRUB2 boot loader. If GRUB2 breaks—for example, if you install Windows after installing Ubuntu, or overwrite your. 13 related questions.

Copyright © 2010 jsd How to Reinstall Grub Onto Your MBR Executive summary: it is fairly easy to recover from certain situations where your machine won’t boot the way you want (or at all). • As discussed in, there are lots of ways the MBR (master boot record) can be damaged or changed in undesirable way. Will tell you how to reinstall or recreate a well-behaved MBR, without having to reinstall everything else. • Less commonly, the first stage of grub works OK, but later stages fail, due to a damaged grub.cfg file. Various scenarios that could cause this situation are discussed in, but for now let’s concentrate on getting out of the situation. Getting the System to Boot Here is a terse summary.

Every step in this section is covered in more detail in. You need to know which drive partition holds the target system, i.e. The Linux system you want to boot. For clarity, let’s discuss things using the shell variables $partition and $drive. An example might be: partition=/dev/sda6; drive=/dev/sda If you happen to know, based on experience, where the target system lives, define $partition and $drive accordingly, and skip to. If you need to figure it out, proceed as follows: • Get a list of disk drives: cd /dev/disk/by-label; ls -al With any luck, you will see something like this: drwxr-xr-x 2 root root 200 Mar 26 07:59.

Drwxr-xr-x 6 root root 120 Mar 26 08:00. Lrwxrwxrwx 1 root root 10 Mar 26 08:00 emu ->././sda9 lrwxrwxrwx 1 root root 10 Mar 26 08:00 linux-root ->././sda5 lrwxrwxrwx 1 root root 11 Mar 26 08:00 lnx ->././sda11 lrwxrwxrwx 1 root root 11 Mar 26 08:00 more ->././sda10 lrwxrwxrwx 1 root root 10 Mar 26 08:00 SERVICEV003 ->././sda1 lrwxrwxrwx 1 root root 10 Mar 26 08:00 SW_Preload ->././sda2 lrwxrwxrwx 1 root root 10 Mar 26 08:00 usrsrc ->././sda7 • If necessary, you can get additional information from cfdisk /dev/sda. This has the advantage of showing the partition size, along with the partition-type for each partition. • Identify which partition(s) might plausibly hold the target system’s root directory. In the example above, linux-root is almost certainly the right answer, but lnx is a semi-plausible alternative. • To make sure, mount each plausible partition and take a look at it. Mount /dev/sda11 /x ls -al /x/boot/vm* ls: cannot access /x/boot/vm*: No such file or directory That tells us that sda11 is definitely not the right answer.

So let’s try again: umount /x # unmount previous hypothesis mount /dev/sda5 /x ls -al /x/boot/vm* -rw-r--r-- 1 root root 4275712 May 30 2013 /boot/vmlinuz-2.6.39.4 -rw-r--r-- 1 root root 4678720 Aug 25 2013 /boot/vmlinuz-3.10.9 -rw-r--r-- 1 root root 4599824 Mar 23 18:45 /boot/vmlinuz-3.11.3+ -rw-r--r-- 1 root root 4599824 Mar 23 18:43 /boot/vmlinuz-3.11.3+.old. Reinstall grub: grub-install --root-directory=/x $drive Beware: You want to install grub on the drive (e.g. If you install it on the partition (e.g. /dev/sda6), the grub-install program won’t complain, but the results won’t be what you wanted. That’s probably enough to get you going.

Shut down the Live Demo system, eject the DVD if any, and reboot in the normal way from your favorite drive (/dev/sda in the example). Status Check Let’s assume you have already carried out the steps in. Mac Lion Os X 10.7 - Installesd.dmg. Various possible next steps include: • The system boots up fine.