Skip to content

Instantly share code, notes, and snippets.

@jamiekurtz
Last active December 12, 2025 14:14
Show Gist options
  • Select an option

  • Save jamiekurtz/26c46b3e594f8cdd453a to your computer and use it in GitHub Desktop.

Select an option

Save jamiekurtz/26c46b3e594f8cdd453a to your computer and use it in GitHub Desktop.
Grub config for creating my own bootable USB stick
# This grub.cfg file was created by Jamie Kurtz
# Sample grub entries... https://wiki.archlinux.org/index.php/Multiboot_USB_drive
# Goes into /boot/grub2 folder
# Some tips here: http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/
# use the instructions in link above to format a USB stick
# on the USB stick, create /boot folder, with subfolders grub2 and iso
# put ISO files in the ISO folder
# install grub2 onto the USB stick using those instructions
# place this file in the /boot/grub2 folder
set timeout=20
set default=0
menuentry '[loopback]kali-linux-1.1.0-amd64' {
set isofile='/boot/iso/kali-linux-1.1.0a-amd64.iso'
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live findiso=$isofile noconfig=sudo username=root hostname=kali
initrd (loop)/live/initrd.img
}
menuentry '[loopback]ubuntu-14.04.2-desktop-amd64' {
set isofile='/boot/iso/ubuntu-14.04.2-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 '[loopback]Fedora-Live-Workstation-x86_64-21-5' {
set isofile='/boot/iso/Fedora-Live-Workstation-x86_64-21-5.iso'
loopback loop $isofile
linux (loop)/isolinux/vmlinuz0 root=live:CDLABEL=Fedora-Live-WS-x86_64-21-5 iso-scan/filename=$isofile rd.live.image
initrd (loop)/isolinux/initrd0.img
}
menuentry '[loopback]debian-live-8.0.0-amd64-cinnamon-desktop' {
set isofile='/boot/iso/debian-live-8.0.0-amd64-cinnamon-desktop.iso'
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live config findiso=$isofile
initrd (loop)/live/initrd.img
}
@Pysis868
Copy link

Pysis868 commented Aug 3, 2015

Jackpot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment