The previous use of U disk System are used UltraISO direct production of the startup disk, and sometimes a couple of days have to dress up the system, today is windows, tomorrow is Ubuntu, the day after that may be other Linux distribution, very inconvenient, So just want to use a U disk to do a multi-system startup disk, after n days of continuous practice, and constantly try to finally let me succeed.
Pre-production preparation :
1) 1 USB flash drive with 4G capacity,
2) Online search for WinPE ISO image, a lot of, like that old Peaches, computer shop WinPE is not possible, because they are not ISO image.
3) Download the following several files:
Bootice: Run on the Windows system, used to write to the USB stick GRUB2, this can also be downloaded on the Internet self-search.
Boot.7z:grub Startup file
Memdisk: Used to boot the WinPE boot. Booting the Windows installation image directly doesn't seem to work.
Summary of the production method: (to the U disk to write grub-> copy boot folder to a USB flash drive, copy Memdisk to the boot folder, modify the Grub.cfg file,) only these 4 steps, of course, ISO image to put on the USB stick, the following detailed explanation.
1. Write grub to the USB flash drive with Bootice.
2. Copy the boot directory to the root directory of the USB stick.
3, copy the Memdisk to boot directory, Memdisk used to boot WinPE.
The final directory structure is as follows:
4, modify the configuration boot/grub/grub.cfg file. (Note: I uploaded a boot document with a grub.cfg, you can take a look at the study, here is the grub.cfg file I am using now.) )
--------------------------------------------------------------------------------------------------------------- -----------------------------------------
Explain the Grub.cfg file.
Mount Linux Systems
Menuentry ' try and install Ubuntu-14.04-desktop-amd64 ' {----------------display title, you can set it yourself
Set isofile= '/iso/ubuntu-14.04-desktop-amd64.iso '------------------set up the system image to be installed as:/iso, ISO is the folder I built on the USB drive
Search--set-f $isofile
Loopback loop $isofile------------------load image
Gfxpayload=keep
Linux (Loop)/casper/vmlinuz.efi boot=casper iso-scan/filename= $isofile ro locale=zh_cn. UTF-8-------------this sentence locale=zh_cn. UTF-8 is set in Chinese, otherwise it will be garbled, the front (loop) should be cyclic loading, on the line recursion, some information in the evening did not add, I try not.
INITRD (Loop)/casper/initrd.lz
}
Mount WinPE System
Menuentry ' Boot 1 Windows 8 PE full Tools ' {
Set root= ' (HD0,MSDOS1) '
Echo ' Loading memdisk ... '-----display text, show people
Insmod Memdisk
The Linux16/boot/memdisk ISO raw----uses the Memdisk tool, which is in the/boot directory of the USB flash drive.
Echo ' Loading ISO ... '
Echo ' Made by Liang!!! '
Initrd16/iso/win8pe.iso-------Win8pe.iso is my PE mirror. Load PE Mirror:
}
By the way, boot your system:
1) If you only have a Windows system, then you don't have to be so troublesome, the USB drive boot disk We do will automatically search for installed Windows systems. The data in the grub.cfg is inside.
If your system is now multi-system, and is grub boot, in order to prevent play bad startup items, and not into the system, you can put the computer grub boot data directly to the grub.cfg of the USB stick.
My current USB drive boot disk is as follows:
Because this diagram restarts the computer to take pictures with the mobile phone, cannot, so later uploads.