I'm attempting to create a multipurpose AIO USB stick for everyday use. So far I've been able to get Mint, Tails, And Hiren's boot cd all successfully working off of one device similar to the tutorial found here:
However, I'm running into trouble adding Windows 10 to this list. I've done some research but have yet to find a suitable solution for Windows 10.
Is there anyway to add a menuentry to the grub.cfg in order to make this work, or is there a more detailed solution.
Thanks for any help in advance.
I've managed to get the iso to boot using the following menu entry:
The only problem is once I choose install the following error occurs:
So somehow it can't properly read the files after it starts the setup process.
EDIT 2:
I was able to get the entire thing working with YUMI.
Night Train
Night TrainNight Train
Browse other questions tagged bootwindows-10multi-bootgrubgrub2 or ask your own question.
After several failed attempts to dual-boot Ubuntu 15.04 and Windows 10 on a single hard drive and on a computer with UEFI firmware, and not knowing what caused the first failed attempt, I figured that subsequent failed attempts must have been due to an existing Ubuntu GRUB folder in the Boot EFI folder.
Especially since the machine always froze when the installer is attempting to install GRUB
So I thought that If I could just delete the ubuntu folder from the Boot EFI folder, that the installation would complete – successfully. Ultimately, it didn’t, but I figured out how to delete GRUB files from inside Windows 10, from the command line.
This post documents how it was done. It involved, from the command line, listing and selecting the detected hard drives, listing the partitions on the hard drive, then, finally, listing and deleting the target folder. Another reason you might want to do this, is if you deleted the Linux partitions, which would not automatically delete the GRUB files from the Boot EFI folder.
To start, log into Windows 10, click on the menu and type cmd. Then right-click on the terminal application’s icon and select run as administrator. Figure 1 show the commands (underlined) used to accomplish the first step – listing and selecting the hard drive. To make it possible to copy-and-paste, for those who might need to, I’ve provided the commands in the code block after the last image.
In this figure, the target disk is shown as a 465 GB hard drive, with GPT partition.
After the target disk has been selected, its partitions are listed, so that the partition (volume) that corresponds to the Boot EFI folder can be identified. In Figure 2, that partition is Volume 2. It’s usually the only volume with FAT32 in the Fs (file system) column, and System in the Info column. After it has been identified and selected, you assign it a drive letter to make it easier to work with. In this example, I assigned it a drive letter D. After that, exit diskpart.
The final task involves changing into the Boot EFI folder, listing its contents to identify what subfolder the GRUB files would be. It will be in the EFI folder. The GRUB files for the distribution that was installed will be under a folder of the same name as the distribution. For example, if Ubuntu was installed, as in this example, the name of the folder will be ubuntu. Delete the folder using the rmdir /s command. That’s the Windows 10 equivalent of the Unix/Linux rm -r command.
All the commands used are given in this code block. Note that this procedure is not necessarily the best or only way to go about do this, so if you know of a better method, post a comment.
Windows 10 command line
Related Posts:
I have Windows 8 pre-installed and then installed Grub with Ubuntu. Ubuntu is not my thing so now I want to remove it along with grub. From what I have learned, with UEFI, Grub does not overwrite the windows bootloader in the EFI partition and is stored elsewhere. How would I remove grub and make my PC use the Windows bootloader instead? It should be noted that I created a seperate /boot partition when installing Ubuntu.
mrolivemrolive
11 Answers
This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub
You will be doing this from Windows 10. No bootable media required.
Where
bootrec /fixmbr , bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:
(This answer borrowed verbatim from here)
Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.
Community♦
armadadrivearmadadrive
To restore Win 10 default bootloader follow these steps:
<drive name> is the drive letter where the Master Boot Record (MBR) will be updated
For example to update C master boot record this is the command: 7.1 surround sound samples.
c:> bootsect /nt60 c: /mbr
For more help about bootsect command see here - https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/bootsect-command-line-options
Ganesh KondalGanesh Kondal
You can restore the Windows bootloader with a Windows 8/8.1 DVD. These instructions are inspired by Manindra Mehra's answer, but I expanded it with full working details (verified with a Windows 8.1 DVD).
This leaves the Ubuntu partition on your hard drive or SSD. To remove it:
Michael GearyMichael Geary
To do so you will need a windows installation cd/dvd
Manindra MehraManindra Mehra
With UEFI you have both a Windows folder & an Ubuntu folder in the efi partition. the UEFI reads the efi entries and adds them to its own NVRAM to remember them. You have to remove ubuntu folder from efi partition first or UEFI will re-add it. Then you have to remove UEFI entry from UEFI.
You should have these folders in the efi partition. Delete only the ubuntu folder. Live installer should show folders. And if only Windows you have to mount from inside Windows the efi partition as it is not normally mounted.
You should not have to install Ubuntu but can use live installer DVD or flash drive. Some UEFI systems may let you do the UEFI edit from UEFI menu.
from liveDVD or flash and use efibootmgr
The '-v' option displays all the entries so you can confirm you're deleting the right one, and then you use the combination of '-b ####' (to specify the entry) and '-B' (to delete it). Examples #5 is delete:
oldfredoldfred
You can also use a USB memory stick for this job. It takes three applications: Unetbootin, FreeDOS and Testdisk for DOS.
Now you're done! Reboot your computer normally. Your computer should boot up Windows now.
homesoftshomesofts
The guy above me's method does not work on newer EFI computers. I solved the problem. Here is how I did it. WARNING, you have to reinstall Linux / grub first!
Steps: (this is if nothing else works and takes a long time)
1: Reinstall Ubuntu / Linux mint (this is just so you can use GRUB to boot into Windows).
1.5: Restart and boot into windows (if you can't boot to Windows, then live boot from the CD or USB and run the following in a console:
If you have a windows repair disk you can select the UEFI firmware option and load Windows from there (to avoid reinstalling Linux)
Boot repair (if needed right now)
1g: Select recommended repair and follow the on screen instructions.
2g: After your done, reboot. You should see the grub menu, even though you can boot to Windows from here, this is not what we want yet.. But find the option that boots into Windows.
2: Once your booted into Windows, run your disk partition editor and delete All partitions related to Linux / grub. Especially make sure the small grub partition is removed. Reboot
2.5: Make sure the windows loader is the first selected boot device. (most likely is). Disable the Ubuntu option. Continue boot.
3: If you've done everything right up to this point you should see (depending on your computer) your splash screen for a second and then it will turn into an error screen saying that there was an error with the boot. ('Winload.exe is missing or corrupted' most likly).
3.5: Don't be alarmed (I was). The next step will restore your original bootloader.
4: Restart and boot to your Linux CD or USB.
5: Once booted, run boot repair commands from above again. This time when running it. It will act differently, there is no grub bootloader detected to reinstall and should run faster than before.
6: Once complete, restart.
7: Enjoy your GRUB free system!
This worked for me when nothing else did, I ran bootrec.exe. Nothing worked. This saved my computers life. Hope it saves yours!
roboNerdroboNerd
No CD's, USB's, DVD's. No long tutorials.
On UEFI all you have to do is:
Place Windows boot entry in NVRAM as first.
How to do this - several solutions.
Easiest solution is to use firmware functionality and reorder NVRAM boot entries.
snayobsnayob
What worked for me is:
Herobrine2NetherHerobrine2Nether
For system with GPT partition table, the method provided by @Ganesh Kondal won't work. Using
bootsect /nt60 C: /mbr will show that it worked while it really doesn't. Using bootrec /fixmbr will lead to error that 'the system cannot find the file specified'. If any of the above situation applies, do the following (Using Windows 10 as an example):
for more detailed information, also look at this webpage:https://www.tenforums.com/general-support/74226-bootmgr-error-cant-find-fix.html
user3667217user3667217
Quick Guide
Open PowerShell as Administrator
DetailsAdministrator PowerShell
Enter powershell into the windows search of the start menu. Look for a blue icon with the label 'Windows PowerShell', right click on the that and select 'Run as Administrator' within the context menu.
Mount EFI/System Partition As Volume
To Mount the EFI System Partition on the given drive use the mountvol command by using the /S parameter. You can chose any free drive letter you want. For example 'S'.
Access Mounted Volume
Now the partition is mounted. We can access the mounted volume by changing to the drive by the cd command and the drive letter S: as parameter
To ensure we are at the root of this volume we should execute:
Type via the dir command to list the entries of the current path to ensure you on the right one.
It should look like this:
Delete Boot Loaders
Your boot loaders are location in the EFI directory.Change to it by using the cd command and list the entries via the dir command.
Your output depends on the boot loaders you have installed, here is a example with Windows and Ubuntu.
Now you can delete unwanted loaders via the command rd and the parameter /S.
DO NOT DELETE THE BOOT DIRECTORY OR THE WINDOWS DIRECTORY!
Felix QuehlFelix Quehl
protected by ZannaMar 7 '17 at 19:44Grub4dos Windows 7
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged bootdual-bootgrub2windows-8bootloader or ask your own question.
Hello Patrica,
![]()
Provide us with the information below to help you better.
It is always recommended not to Shutdown the computer when updates are getting installed on your computer, doing this might cause serious problem to your computer.
If you are having single operating system that is Windows 10 on your computer follow the below method to fix your issue.
I suggest you to download Windows 10 ISO file, create an installation media from other working computer to perform automatic repair of the computer that you are unable to boot.
Step 1: Download Windows 10 from the below link and create media creation tool:
Grub4dos Usb Windows 10
Step 2: After creating the tool perform a Start up Repair.
I would like to inform that, if your Windows 10 is not able to boot or startup, Startup Repair will come into action and try to diagnose and fix the issue. It will scan system files, registry settings, configuration settings and more and try to fix the problem on its own, automatically.
Windows 10 Free Upgrade
Perform the Automatic Repair:
Hope it helps. Kindly update the status of the issue, we will be happy to help you further.
My setup is a two disk (both GPT partitioned) setup where disk 1 is windows 10 and disk 2 is ubuntu 15.04. Windows was installed first, then ubuntu, both in UEFI mode. The ubuntu drive is a removable hard drive, and I noticed that when it is not connected, grub would not fully load to show me a list of operating systems. I restored the windows 10 bootloader and added an entry pointing to /EFI/ubuntu/grubx64.efi. This file was located on the disk 1 EFI partition. However when I select this entry on startup, the windows bootloader tells me that windows failed to start because files are missing. I loaded ubuntu again and installed grub using boot-repair to the disk 2 EFI partition to see if that would work. I added an entry in the windows bootloader to grubx64.efi on disk 2 but ended up with the same failure. Is it possible to load Grub from the windows 10 bootloader or is it possible to load grub without requiring disk 2 to be connected? Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |