I. Format your USB Flash Drive to use a Single Partition:
- Open a terminal and type
sudo su
- Type
fdisk -l
(and note which device is your USB Drive) - Type
fdisk /dev/sdx
(replacing x with your actual usb device) - Type
d
(to delete the existing partition) - Type
n
(to create a new partition) - Type
p
(for primary partition) - Type
1
(to create the first partition) Press Enter
(to use the first cylinder)Press Enter
again (to use the default value as the last cylinder)- Type
a
(for active) - Type
1
(to mark the first partition active "bootable") - Type
w
(to write the changes and close fdisk)
- Type
umount /dev/sdx1
(to unmount the mounted partition) - Type
mkfs.vfat -F 32 -n MULTIBOOT /dev/sdx1
(to format the partition as fat32)
- Type
mkdir /media/MULTIBOOT
(to create a directory for the mountpoint) - Type
mount /dev/sdx1 /media/MULTIBOOT
(to mount the USB) - Type
grub-install --force --no-floppy --root-directory=/media/MULTIBOOT /dev/sdx
(to install Grub2) - Type
cd /media/MULTIBOOT/boot/grub
(to change directory) - Type
wget pendrivelinux.com/downloads/multibootlinux/grub.cfg
(to get the grub.cfg file)
Reboot your Computer, and enter your BIOS or Boot Menu. Set the Boot Order to boot from the USB Device. Save your changes and Reboot. If all goes well, you should be presented with a Grub2 Boot Menu.
V. Adding the Bootable ISO files:
- Type
cd /media/MULTIBOOT
(assuming USB is still mounted here) - Follow the instructions for the ISO Distro you would like to add below. Simply click to expand the instructions.
http://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/
http://inportb.com/2010/07/19/install-windows-7-from-usb-pen-drive-using-grub2-and-grub4dos/
No comments:
Post a Comment