Grub4dos Boot Windows 7
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.
We configured GRUB2 on Ubuntu 14.04 here, but the process should be similar for other Linux distributions. You may have customized the original GRUB’s settings by editing its menu.lst file in the past, but the process is now different.
GRUB2 Configuration Basics
IMPORTANT NOTES FOR WINDOWS 7. In the upcoming step 4 about adding the Linux to the boot menu it is assumed that Linux files are stored on the Windows partition for Windows 9x and Windows XP, which is the first partition. With Windows 7 the Windows partition is usually the SECOND partition. Feb 10, 2012 Advantages of Using Pendrive to Install Windows 7 DVD will take 30 minutes to install Windows 7 but, Pendrive will take 15 minutes to install Windows 7. (for USB 2.0 & above) Advantages of using Grub4Dos There are many several ways to install Windows 7 from USB Pendrive. Grub2Win supports 64 and 32 bit EFI and BIOS on Windows 10, 8, 7 and XP. Safely dual boot Windows and Linux from GPT or MBR disks. Grub2Win boots native GNU Grub version 2 code.
RELATED:GRUB2 101: How to Access and Use Your Linux Distribution’s Boot Loader
GRUB2 doesn’t use a menu.lst file. Instead, its main configuration file is the /boot/grub/grub.cfg file. However, you shouldn’t edit this file by hand! This file is just for GRUB2’s own usage. It’s automatically created by running the update-grub command as root — in other words, by running sudo update-grub on Ubuntu.
Your own GRUB settings are stored in the /etc/default/grub file. Edit this file to change GRUB2’s settings. Scripts are also located in the /etc/grub.d/ directory. For example, on Ubuntu, there are scripts here that configure the default theme. There’s also an os-prober script that checks the system’s internal hard drives for other installed operating systems — Windows, other Linux distributions, Mac OS X, and so on — and automatically adds them to GRUB2’s menu.
When you run the update-grub command, GRUB automatically combines the settings from the /etc/default/grub file, the scripts from the /etc/grub.d/ directory, and everything else, creating a /boot/grub/grub.cfg file that’s read at boot.
In other words, to customize your GRUB2 settings, you’ll have to edit the /etc/default/grub file and then run the sudo update-grub command.
Edit the GRUB Configuration File
RELATED:A Beginner’s Guide to Editing Text Files With Vi
Open the /etc/default/grub file for editing in a standard text editor. If you want to use a graphical text editor, open a terminal — or press Alt+F2 — and run the following command:
gksu gedit /etc/default/grub
For an easy-to-use terminal-based editor — Nano — use the following command. You can use any text editor you like, of course — including the standard vi text editor.
sudo nano /etc/default/grub
The /etc/default/grub file is short and should be easy to edit. As with any other configuration file, you need to edit the options to your desired state and then change the file. If any of the options below doesn’t already appear in the file, add it on a new line. If it does, edit the existing line instead of adding a duplicate one.
Choose the Default OS: Change the GRUB_DEFAULT= line. By default, GRUB_DEFAULT=0 uses the first entry as the default — change the number to 1 to use the second entry, 2 to use the third entry, or so on. You could also use GRUB_DEFAULT=saved and GRUB would automatically boot the last operating system you chose each time you boot. You can also specify a label in quotes. For example, if you had an operating system named Windows 7 (loader) in your OS list, you could use GRUB_DEFAULT=”Windows 7 (loader)”
Save a Default Operating System: If you choose GRUB_DEFAULT=saved, you also need to add a GRUB_SAVEDEFAULT=true line — otherwise it won’t work.
Choose Whether GRUB is Hidden: With only one operating system installed, Ubuntu defaults GRUB to automatically boot to the default OS with the GRUB_HIDDEN_TIMEOUT=0 option. This option specifies GRUB will be hidden and it will automatically boot to the default OS after 0 seconds –immediately, in other words. You can still access the menu by holding Shift as your computer boots. To set a higher timeout, use something like GRUB_HIDDEN_TIMEOUT=5 — GRUB will display an empty screen or splash screen for five seconds, during which you can press any key to view the menu. To prevent GRUB from being automatically hidden, comment the line out — just add a # before it so that it reads #GRUB_HIDDEN_TIMEOUT=0 .
Control GRUB’s Menu Timeout: If GRUB isn’t automatically hidden, you’ll see the menu each time your computer boots. GRUB will automatically bot the default operating system after a period of time, usually ten seconds. During that time, you can choose another OS or leave it be to automatically boot. To change the timeout period, edit the GRUB_TIMEOUT=10 line and enter any number of seconds you like. (Remember, this is only used if GRUB isn’t hidden.) To prevent GRUB from booting automatically and always wait for you to choose an OS, change the line to GRUB_TIMEOUT=-1
Choose a Background Image: The GRUB_BACKGROUND line controls whether a background image is used — by default, GRUB uses a white-on-black monochrome look. You can add a line like GRUB_BACKGROUND=”/home/user/Pictures/background.png” to specify an image file GRUB will use.
The image file must meet various specifications. GRUB supports JPG/JPEG images, but these are limited to 256 colors — so you probably won’t want to use a JPG image. Instead, you’ll probably want to use a PNG image that can have any number of colors. You could also use a TGA image file.
Make Your Changes Take Effect
To have your changes take effect, simply save the text file — File > Save in Gedit or Ctrl + O and then Enter to save the file in Nano — and then run the sudo update-grub command. Your changes will become part of the grub.cfg file and will be used each time you boot your computer.
These aren’t all of GRUB’s settings, but they are some of the most commonly changed. Other settings can be customized in the /etc/default/grub file, or by editing the scripts in the /etc/grub.d directory.
If you don’t want to edit the files by hand, you may be able to find graphical tools for customizing GRUB2 in your Linux distribution’s software repositories. The above method should work even on Linux distros where such tools aren’t easily available, or if you just have command-line access and want to do it by hand.
The below tutorial was written base on MultiBootISO.exe version 1.4.8 which is not the lastest version. If you like this version(V1.4.8), you may get it here: MultiBootISOs-v1.4.8.exe
Latest version of MultiBootISO.exe is different than the version descripted in this tutorial.
**End of update: 19th January 2011)**
Here, in this quote, are some of the updated informations to this tutorial.
Recently, in the early of July 2010, Windows 7 Installation boot entry has been added into MultiBootISO.exe. We don't have to do it manually as described below.
All you need to do is:
Step 1: Download MultiBootISO, run and install it into your USB Pendrive/External Hard Disk
Step 2: As for fresh install, you only need to copy the following 3 file/directorys into the root directory of your USB(thanks for climbing for this info):
bootmgr (file)
boot (directory)
sources (directory)
Thats it. Reboot your computer from USB. From the boot menu, choose Operating System Installers > Install Windows Vista/7
This Installation process of Windows 7/Vista will start. Good Luck.
**End of Update 5th August 2010**
1. MultibootISO > Install Grub4Dos easily into USB Flash Drive/External Hard Disk
Get it here: Boot Multiple ISO from USB (MultiBoot USB) USB Pen Drive Linux
or here: YUMI - Multiboot USB Creator (Windows) USB Pen Drive Linux
2. Windows 7 DVD, ISO or Source Files
3. Notepad++ > To edit menu.lst
Get it here:Notepad++ Download Notepad++ software for free at SourceForge.net
or here: Download Notepad++ 5.6.8 - FileHippo.com
Lets Start
Step 1: Run MultibootISO, install MultibootISO into your USB Storage Device(ie.pendrive, External Hard Disk). This will install Grub4dos in pendrive.
Step 2: Copy everything in Windows 7 Installation DVD into your USB storage.
Step 4: You'll be able to see the first 9 rows as below in menu.lst
Add in the below command lines after the above code:
Done. The pendrive is ready to boot and install Windows 7.
If you are confused and don't know how to edit menu.lst, then, open it with Notepad++, delete all the command lines and replace by the following command lines. Save the file and exit.
The steps mentioned in this tutorial work with Windows Vista too.
Install from Pendrive
Restart the computer. Configure BIOS to boot from Pendrive/External Hard Disk.
A boot menu will appear. You will be able to see the boot option Install Windows 7.
Use arrow key on keyboard to select Install Windows 7 and press enter.
This will enter Windows Boot Manager, choose Windows Setup [EMS Enable] and the installation will start.
(hd0,0) means 1st hard disk, 1st partition
(hd0,1) means 1st hard disk, 2nd partition
(hd0,2) means 1st hard disk, 3rd partition
Grub4Dos will treat your Pendrive/USB Hard Disk as 1st hard disk, but you have to define the path to 2nd or 3rd partition.
For example:
Install MultiBootISO(Grub4Dos) in 2nd partition=
Install MultiBootISO(Grub4Dos) in 3rd partition
About Menu.lst
Menu.lst is a boot menu of Grub4Dos. After install MultibootISO into pendrive/External Hard Disk, it support for booting many OS or programs. There are many entries ready made by default after installing MultibootISO. You may delete any of the entries if you don't need them.
For more info about MultiBootISO, please visit: Boot Multiple ISO from USB (MultiBoot USB) USB Pen Drive Linux

Advantages of Using Pendrive to Install Windows 7
DVD will take 30 minutes to install Windows 7
but, Pendrive will take 15 minutes to install Windows 7. (for USB 2.0 & above)
Clean Boot Windows 7
Advantages of using Grub4DosThere are many several ways to install Windows 7 from USB Pendrive.
Microsoft has officially released a software which can transfer Windows 7 DVD into pendrive.
WintoFlash is another software will do the same thing.
However, these 2 software will only allow 1 OS at a time.
But, by using Grub4Dos, many other bootable OS or Softwares (ie, Linux, Ubuntu, Ultimate Boot CD, Partition Wizard...) are supported in one single pendrive/External Hard Disk. To view the list of supported software, you may refer the official site of MultiBootISO. If the bootable software you owned is not listed, doesn't mean it is not supported.
Besides installing Windows 7, you can make your USB become a Super System Maintenace & Emergency Rescue Tools. (i.e, recover/copy files when Windows cannot startup/lost partition/formated partition, reset or recover system/windows password, testing tools)
Below are some of the highly recommended bootable software for System Maintenance & Emergency Rescue Tools:
1. Partition Wizard - Site - Download
2. Hiren's Boot CD - Site1 - Site2 - Download
3. Ultimate Boot CD - Site - Download
4. Windows 7 System Repair Disc - How to boot Windows 7 Repair Disc from USB using Grub4Dos
5. AntiVirus Rescue Disk (ie, AVG, Bitdefender, Avira)