# This is a grub2 config file useful for making a bootable USB device. # See below for installation instructions. # General Options timeout=30 default="default" fallback="fallback" # ISO Images srcd_file=/boot/sysrescd.iso loopback srcd_dev $srcd_file cz_file=/boot/clonezilla.iso loopback cz_dev $cz_file kali_file=/boot/kali.iso loopback kali_dev $kali_file menuentry "Boot Normally" --id fallback { exit } menuentry "SystemRescueCd to RAM with XFCE" --id default { echo -e "\n if this fails, try the failsafe option" echo -n " " options="setkmap=us docache dostartx" linux (srcd_dev)/isolinux/rescue32 isoloop=$srcd_file $options initrd (srcd_dev)/isolinux/initram.igz } menuentry "SystemRescueCd failsafe" { echo -e "\n loading \"SystemRescueCd failsafe\"" echo -n " " options="setkmap=us" linux (srcd_dev)/isolinux/rescue32 isoloop=$srcd_file $options initrd (srcd_dev)/isolinux/initram.igz } menuentry "Kali Linux to RAM - requires 6GB" { echo -e "\n loading \"Kali Linux to RAM\"" echo -e "\n user is root, password is toor" echo -n " " options="boot=live noconfig=sudo username=root hostname=kali noswap noautomount toram" linux (kali_dev)/live/vmlinuz findiso=$kali_file $options initrd (kali_dev)/live/initrd.img } menuentry "Kali Linux failsafe" { echo -e "\n loading \"Kali Linux failsafe\"" echo -e "\n user is root, password is toor" echo -n " " options="boot=live noconfig=sudo username=root hostname=kali noswap noautomount" linux (kali_dev)/live/vmlinuz findiso=$kali_file $options initrd (kali_dev)/live/initrd.img } menuentry "NT Password Editor" { linux16 (srcd_dev)/ntpasswd/vmlinuz rw initrd16 (srcd_dev)/ntpasswd/initrd.cgz (srcd_dev)/ntpasswd/scsi.cgz } menuentry "Memory test using Memtest86+" { linux16 (srcd_dev)/bootdisk/memtestp } menuentry "FreeDOS: on SystemRescueCd" { linux16 (srcd_dev)/isolinux/memdisk initrd16 (srcd_dev)/bootdisk/freedos.img } menuentry "FreeDOS: on Clonezilla CD" { linux16 (cz_dev)/isolinux/memdisk initrd16 (cz_dev)/live/freedos.img } menuentry "iPXE: PXE boot"{ linux16 (cz_dev)/live/ipxe.lkn } menuentry "Reboot System" { reboot } menuentry "Shutdown System" { halt } ## installation instructions: # send email to carl@carltm.com if you have any questions! # download the SystemRescueCD iso file from their website # optionally download the Clonezilla and/or Kali iso files # rename these files as sysrescd.iso, clonezilla.iso and kali.iso # check for a type/id 7 bootable partition: fdisk -l # if needed, create the partition: fdisk /dev/sdX # rescan partitions: partprobe /dev/sdX # if needed, format the partition: mkntfs -f -L usb_rescue /dev/sdX? # if needed, create /mnt/usb: mkdir -p /mnt/usb # mount the partition: mount /dev/sdX? /mnt/usb # install grub2: grub*-install --boot-directory=/mnt/usb/boot /dev/sdX # copy this file: cp grub.cfg /mnt/usb/boot/grub* # copy iso files: cp sysrescd.iso /mnt/usb/boot # copy iso files: cp clonezilla.iso /mnt/usb/boot # copy iso files: cp kali.iso /mnt/usb/boot # unmount the device: sync; umount /mnt/usb/boot