Friday, November 5, 2010

Multiboot USB flash drive creation

How to create multiboot flash drive?

First, we need to select boot loader. Grub4Dos is a universal boot loader, allows to select which operating system to load when multiple operating systems are installed. Also it is one of the most famous boot loader used to boot USB flash drives.Grub4Dos supports ISO emulation, memory mapping.

In general Grub4Dos is suitable tool for our purpose giving great opportunity to create multiboot flash with multi options.

1. Grub4Dos deployment: 

- Use empty flash drive.
- Download this zipped file and run usb_format.exe file inside. Follow the next 3 steps as represented on the screen shot.


- Download Grub4Dos installer (grub4dos.zip) at: http://depositfiles.com/files/0iz7maw9l and extract files.
- Now launch the grubinst_gui.exe program from the extracted archive.
- Select the Disk option (radio button), click the Refresh button and then choose your flash drive from the dropdown list.
- In the same extracted archive find and copy grldr and menu.lst files from grub folder to the flash drive.

2. Software installation and boot menu editing.

- Open menu.lst file using text editor (like Notepad, Wordpad, etc.).
- So now you can insert the code into menu.lst file. This code allows to use the required software/tools under bootable environment, edit the boot menu, specify comments.

For example, we need to use memory diagnostic utility booting from the flash drive. To perform this use the following code:

title Memory Diagnostic
find --set-root /folder/memtest.gz
kernel /folder/memdisk
initrd /folder/memtest.gz

The head of the item starts from title command. The text indicated after this command (namely, Memory Diagnostic) will be shown on the boot menu screen.

find --set-root command searches the indicated file (namely, memtest.gz) in the folder on the flash drive.

No comments:

Post a Comment