Ive just finished a persistent USB installation of BackTrack 4 r2 (Ubuntu based) on my USB Stick. This is all booting fine and dandy.
My goal is to add the ability to boot from another iso from my USB stick using grub2.
So far I have...
-- Copied the ISO to /boot/iso
Code:
root@bt:~# ls -l /boot/iso/
total 402372
-rw-r--r-- 1 root root 411619328 2011-02-16 16:16 HirensBootCD.13.1.iso
-- And I have add a file to the following directory ...
Code:
root@bt:~# cat /etc/grub.d/40_custom
#!/bin/sh
echo "Adding 40_custom." >&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Hirens Boot CD 13.1" {
loopback loop /boot/iso/HirensBootCD.13.1.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/iso/HirensBootCD.13.1.iso noprompt noeject
initrd (loop)/casper/initrd.lz
}
Can anyone else let me know what else I need to do to add this to the menu and from the ISO ??
Thanks,