Grub2Win is a tool that lets you boot grub2 from your PC's EFI firmware or MBR. It supports Windows 10, Windows 8, Windows 7, Vista and XP. It supports Windows 10, Windows 8, Windows 7, Vista and XP. Download this simple Windows program and instructions that help you get grub2 booting quickly.
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 MBR—you won’t be able to boot into Ubuntu.
You can easily restore GRUB2 from a Ubuntu live CD or USB drive. This process is different from restoring the legacy GRUB boot loader on older Linux distributions.
This process should work on all versions of Ubuntu. It’s been tested on Ubuntu 16.04 and Ubuntu 14.04.
The Graphical Method: Boot Repair
RELATED:How to Boot Your Computer From a Disc or USB Drive
Boot Repair is a graphical tool that can repair GRUB2 with a single click. This is the ideal solution to boot problems for most users.
If you have the media you installed Ubuntu from, insert it into your computer, restart, and boot from the removable drive. If you don’t, download a Ubuntu live CD and burn it to a disc or create a bootable USB flash drive.
When Ubuntu boots, click “Try Ubuntu” to get a usable desktop environment.
Ensure you have an Internet connection before continuing. You may need to choose a Wi-Fi network and enter its passphrase.
Open a Terminal window from the Dash and run the following commands to install and launch Boot Repair:
The Boot Repair window will automatically scan your system after you run the
boot-repair command. After it scans your system, click the “Recommended repair” button to repair GRUB2 with a single click. Magic workstation crack.
You can choose to use the advanced options here, but Ubuntu’s wiki recommends you not use the advanced options unless you know what you’re doing. The recommended repair option can fix most problems automatically, and you could mess up your system even more by selecting the wrong advanced options.
Boot Repair will begin working. It may ask you to open a Terminal and copy/paste a few commands into it.
Just follow the instructions that appear on your screen. Perform the instructions Boot Repair wants you to and click “Forward” to continue through the wizard. The tool will walk you through everything you need to do.
Restart your computer after the Boot Repair tool finishes applying its changes. Ubuntu should boot up normally.
The Terminal Method
If you’d rather get your hands dirty, you can do this yourself from a terminal. You’ll need to boot from a live CD or USB drive, as in the graphical method above. Ensure the version of Ubuntu on the CD is the same as the version of Ubuntu installed on your computer. For example, if you have Ubuntu 14.04 installed, ensure you use a Ubuntu 14.04 live CD.
Open a terminal after booting into the live environment. Identify the partition Ubuntu is installed on using one of the following commands:
Here’s the output of both commands. In the
fdisk -l command, the Ubuntu partition is identified by the word Linux in the System column. In the blkid command, the partition is identified by its ext4 file system.
If you have multiple Linux ext4 partitions, you can get an idea of which is which by viewing the size of the partitions and their order on the disk here.
Run the following commands to mount the Ubuntu partition at /mnt/ubuntu, replacing
/dev/sdX# with the device name of your Ubuntu partition from the above commands:
Ubuntu Grub Install Failed
In the screenshot above, our Ubuntu partition is /dev/sda1. This means the first partition on the first hard disk device.
Important: If you have a separate boot partition, skip the above command and mount the boot partition at /mnt/ubuntu/boot instead. Injector driver module 7.3. If you don’t know whether you have a separate boot partition, you probably don’t.
Run the following command to reinstall grub from the live CD, replacing /dev/sdX with the device name of the hard disk above. Omit the number. For example, if you used
/dev/sda1 above, use /dev/sda here.
Install Grub2 On Usb Hard Drive
Restart your computer and Ubuntu should boot properly.
For more detailed technical information, including how to use the chroot command to gain access to a broken Ubuntu system’s files and restore GRUB2, consult the Ubuntu wiki.
READ NEXT
Active5 years, 8 months ago
Ubuntu nvidia driver version. MultiBootISOs is a tool that let you install Grub on a USB flash drive. I really like it because it lets me boot from ISO files and let me put a bunch of ISOs on my USB and choose which one to boot.
The problem is, this is a Windows tool, and I don't know how to do it through the command lines. I would also like to know how to install Grub (2) this way, Grub Legacy seems to be easier..
EDIT: I'm not asking for a tool (and definitely not a Windows tool). I want to know the commands that I have to execute to have the same effects. I'm having Ubuntu in my mind right now, but if there is a general way that I can boot any ISO in the USB then that would be better.
phunehehe
phunehehephunehehe
12.6k1919 gold badges8585 silver badges141141 bronze badges
![]() 3 Answers
You got me curious how this would be done. The Pendrivelinux site had a tutorial I did this from my Mint 9 install instead of a live cd as the site suggests.
I started with finding the location of my USB drivein a terminal I ran
df it returned the location of the device as
after that I ran
and then to install grub 2
I had to use --force additionally, the example on the site did not. Then I did
The site gave a link to download a copy of grub.cfg to the /boot/grub directory on my USB drive. The link was
After that I edited grub.cfg to reflect the iso's on my USB drive.
Install Grub2 Efi On Usb
I found that in the different iso's, vmlinuz and initrd were located in a different directory. I was able to get all three to start the boot process; but, only Ubuntu to actually load. If I figure out what I need to get the other two to finish loading, I will add that later. I have not tried any other iso's just these three.
phunehehe
12.6k1919 gold badges8585 silver badges141141 bronze badges
Steve BurdineSteve Burdine
3,75155 gold badges2222 silver badges1919 bronze badges
GRUB2 Bootloader Full tutorial is a good place to start on multi boot configurations with GRUB2.
If you are familiar with GRUB, jump straight to the 5th or 6th section.
There is also a Superuser question on Setting up a multiboot system with GRUB.
There is also a Ubuntu MultiOSBoot community page which suggests you should stick to the Legacy GRUB.
The technique works on flash drives too as long as your machine can boot from them.
I have been working off flash drives for some time now.
Community♦
niknik
I have finally found a script that actually works booting Fedora 18 iso from usb:http://git.marmotte.net/git/glim/plain/fedora18-fromiso
Details are here:http://git.marmotte.net/git/glim/plain/README
rahmu
10.9k2020 gold badges7272 silver badges115115 bronze badges
valenttvalentt
30411 gold badge33 silver badges1010 bronze badges
Not the answer you're looking for? Browse other questions tagged usbdual-bootgrub2boot-loaderiso or ask your own question.Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |