Create bootable USB flash to boot ISO

Follow these steps to create bootable USB Flash to boot multiple ISO. Using this USB Flash you dont have to bring many installation/recovery DVD.

1. Format USB Flash using FAT32 partition
2. mount it somewhere to /mnt/MOUNTPOINT
3. Install GRUB2

grub-install --target x86_64-efi --efi-directory /mnt/MOUNTPOINT --boot-directory=/mnt/MOUNTPOINT/boot/ --removable

4. Copy ISO files to /mnt/MOUNTPOINT/iso
5. Edit /mnt/MOUNTPOINT/boot/grub/grub.cfg

Use this example for start:

menuentry 'lenovo diagnostic' {
    set isofile='/iso/linux-bootable-cd-4307318.iso'
    loopback loop $isofile
    linux (loop)/live/vmlinuz boot=live config findiso=$isofile
    initrd (loop)/live/initrd.img

menuentry 'systemrescuecd-x86-4.5.4.iso' {
    set isofile='/iso/systemrescuecd-x86-4.5.4.iso'
    loopback loop $isofile
    linux (loop)/isolinux/rescue64 isoloop=$isofile
    initrd (loop)/isolinux/initram.igz

menuentry 'wily-desktop-amd64.iso' {
    set isofile='/iso/wily-desktop-amd64.iso'
    loopback loop $isofile
    linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile locale=en_US.UTF-8
    initrd (loop)/casper/initrd.lz

menuentry "Fedora Live" --class fedora {
  set isoname="Fedora-Live-Workstation-x86_64-23-10.iso"
  set isopath="/iso/"
  set isofile="${isopath}/${isoname}"
  echo "Using ${isoname}..."
  loopback loop $isofile
  linux (loop)/isolinux/vmlinuz0 iso-scan/filename=${isofile} root=live:CDLABEL=Fedora-Live-WS-x86_64-23-10 rootfstype=auto ro quiet  rhgb rd.luks=0
  initrd (loop)/isolinux/initrd0.img

For more examples to add to grub.cfg, see

6. sync; reboot


Popular posts from this blog

Tips Jika Mobil Anda Habis Bensin LOL!

Setting open office u label tom & jerry