PDA

View Full Version : Grub2 Loop Boot Solution



YodaDaCoda
2013-04-01, 01:46
I maintain a flash disk full of ISOs, which I loop boot through grub2 and a custom grub.cfg. Since I'm sure I'm not the only one, and because there doesn't seem to be any documentation, I'd like to share my menuentry for anyone else who wants the same thing (I have seen at least one person asking on these forums).



menuentry "Kali Linux 1.0 amd64" {
iso="/kali-linux-1.0-amd64.iso"
bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali quiet splash"
search --set -f $iso
loopback loop $iso
linux (loop)/live/vmlinuz $bootoptions
initrd (loop)/live/initrd.img
}
menuentry "Kali Linux 1.0 amd64 (forensic)" {
iso="/kali-linux-1.0-amd64.iso"
bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali noswap noautomount"
search --set -f $iso
loopback loop $iso
linux (loop)/live/vmlinuz $bootoptions
initrd (loop)/live/initrd.img
}

am!
2013-12-27, 08:22
Hello. I edited above mentioned menuentry. (only title, and path to iso)


menuentry "Kali Linux" {
iso="/iso/kali.iso"
bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali quiet splash"
search --set -f $iso
loopback loop $iso
linux (loop)/live/vmlinuz $bootoptions
initrd (loop)/live/initrd.img
}

it seems like it is able to find kernel, but after several seconds (quick shifting text lines appear) it freeze at blank screen.
im trying boot Kali (i386 version) from harddisk (sda1)

am!
2014-01-12, 21:05
Kali 1.0.6 is booting whit out any problem...

Johannes
2014-01-22, 23:38
Hi everyone,
I tried above menuentry (and manual boot from grub 1.99rc1) but it doesn't work for me. I get message:

Booting a command list

error: unknown command 'search'
error: no such disk
error: no such disk
error: you need to load the kernel first

I understand I have to show grub the right path, but how can I substitute command "search"?
Thanks for help.