Grub2 is a very powerful boot loader, developed by GNU. You can easily install Grub2 from Windows with just a few commands. Grub2 supports both UEFI and Legacy BIOS modes. It is capable of booting most Windows, Linux, BSD and macOS operating systems.
Using the simple Windows GUI and instructions you can install Grub2Win quickly and safely. Select from many OS choices. Supports Manjaro, Antergos, Android, Ubuntu, Debian, Suse, Fedora, Mint, Clover and Windows. Also boots ISO files. You can enter your own custom commands for each menu entry. Grub2Win began in 2010. This tutorial will guide you on how to rescue, repair or reinstall a damaged Ubuntu machine which cannot be booted due to the fact that the Grub2 boot loader has been compromised and cannot load the boot loader which transfers the control further to the Linux kernel. In all modern Linux operating systems GRUB is the default boot loader. Ubuntu and most other Linux distributions now use the GRUB2 boot loader. You can change its settings to select a default operating system, set a background image, and choose how long GRUB counts down before automatically booting the default OS.
Active2 years, 10 months ago
I want to do it because I want to install Windows 7 and my BIOS menu doesn't appear; it skips to grub2 menu at start, but that's another story... Is there a way to boot the Windows 7 installation iso directly from grub2?
user208513user208513
3 Answers
Yeah, you'd think something like this would work:
But Windows will just balk at that.
If you happen to have at least 4GB RAM, you can opt to load the whole DVD iso in memdisk and boot off that. To do that, download SysLinux and extract the
memdisk
file into your boot
directory. Then you need to add code to Grub2 something like thisHowever, I'm not going to even test the code, as putting 3+ GB of data into RAM is just plain wrong (from an idealogical standpoint). No, I really wanted what you want, but in the end I put the Windows install on a partition on a USB using the Windows 7 USB/DVD download tool and chainloaded to that. Sorry there doesn't seem to be any other way that I can see.
WarpspaceWarpspace
Technically installing from windows's
.iso
file can't be possible. You can boot from the .iso
using grub but after that Windows will loss contact with the mounted location or it is not capable of it. So both grub
& Windows should aware of mount and boot. Currently Windows doesn't support. So you need to extract/copy the content of
Ron.iso
to root of a partition and then chain-load into it using grub
.15.8k44 gold badges4545 silver badges6060 bronze badges
tottitotti5,24011 gold badge3131 silver badges4242 bronze badges
Booting Windows XP with grub4dos
Booting the actual ISO with grub legacy or grub2 won't work, but with older windows versions (i.e. XP) it is possible to unpack the i386 folder from the ISO to the USB stick, and then use grub4dos to call the bootloader:
or
This won't work with newer windows versions or with newer hardware.
Booting Windows 7 with grub2
With grub2 apparently something like this could work for Windows 7:
Option A assumes your bootable USB stick/HDD is the first device and has a msdos style partition table. Adjust to match your configuration. If your boot device has a GPT partition table, then most likely you'll need to use
(hd0,gpt1)
(GPT in general is trickier to set up). Option B uses the drive's unique UUID, which can be seen on Linux with
sudo blkid
or on OSX with e.g. diskutil info disk0s1
(or Disk Utility > Info).The final entry might look for example like this:
ccpizzaccpizza
Not the answer you're looking for? Browse other questions tagged grub2windowsisobios or ask your own question.
Active5 years, 1 month ago
How can I boot into an ISO file in GRUB? The ISO file is on a reiserfs partition and GRUB can access it (already tested that).
Albert
AlbertAlbert3,13477 gold badges3232 silver badges4545 bronze badges
2 Answers
The biggest problem with booting an ISO file is that ISOs that are designed to be booted are almost always designed to be booted from a CD. As explained on Marco's blog regarding Grub 2 (emphasis mine):
GRUB can read ISO9660 (”iso”) images. It can for example load the first few sectors and boot it. But most people do not realize is “what then?”. What would the loaded operating system do? It will most likely look for a CDROM, which it won’t find, and fail.
So the dead-simple-est way to boot from some random ISO file is to load it into a virtual machine (VirtualBox, VMware, or Virtual PC) as a virtual CD and boot it there. That should almost always work, because to the VM, it's not an ISO file -- it's a real CD on real CD hardware.
Booting from an ISO file on bare metal is much harder. How you do this depends on which version of Grub you're using, and results can differ depending on what ISO you're using and how it was configured to boot. This is why most boot-ISO-from-USB tools (Unetbootin, WinToFlash, etc) usually extract the ISO contents to the drive -- because that way they can be accessed directly, without confusing the OS being booted.
Grub 1
... not sure. If possible, menu entries will probably look a lot like Grub4DOS, though I think the 'map --hook' command is a Grub4DOS enhancement. On the plus side, Grub has wider filesystem support than Grub4DOS.
A note on Grub with reiserfs (unconfirmed) indicates you 'have to mount your partition with
notail
for it to work'.Memdisk is an option; see below.
Grub4DOS
Grub4DOS offers some experimental 'CD emulation' that works with some ISOs. Unfortunately, Grub4DOS only reads FAT32/NTFS filesystems. Download Grub4DOS.
Here's a sample entry (source):
Grub 2 Bootloader Iso Free
Supposedly the Win7 ISO can be booted with this entry:
Other ISOs can be booted with Memdisk:
You can also use a menu configurator like MultiBootISOs.exe from PenDriveLinux. Place ISOs on the flash drive, and run the utility to install the bootloader and configure the boot menu.
Here's a Hak5 episode on installing Grub4DOS.
Grub 2 Bootloader Iso Update
Grub 2
Here's a couple of example Grub2 entries. chainloader doesn't work to boot an ISO at present, so these entries must (1) use loopback to 'mount' the ISO, and (2) add something like iso-scan or findiso to the linux line that specifies the ISO file.
Unfortunately, there's no generic way to do this. Each different boot entry must be customized to the target ISO's contents. Most Linux LiveCDs use ISOLINUX as a bootloader; find the isolinux.cfg and examine that boot entry to see what it usually boots.
Example entries (source):
If you're trying to boot a non-Linux LiveCD, you may be out of luck. Again, Memdisk may help:
quack quixotequack quixote36.1k1111 gold badges9090 silver badges123123 bronze badges
You can use dd from the terminal to write an iso file to a partition. Just be careful, if you use dd wrong you can wipe everything. It should look something like this:dd if=Desktop/LinuxCDFile.iso of=/Path/To/Partition
Naos parthNaos parth