Grub2: Difference between revisions
Jump to navigation
Jump to search
New page: As an example how I would use Grub to solve the OP problem as follow. ==(1) I boot up a Grub CD (or a floppy) to get a Grub prompt.== ==(2) I type== Code: As an example how I would use G... |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==kali linux in grub2== | |||
Store iso on standard partition. | |||
= | menuentry "Kali Linux" { | ||
iso="/iso/kali-linux-1.0.8-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 | ||
} | |||
==kali linux grub2 efi boot== | |||
Content of /etc/grub.2/40_custom of fedora 21 machine. | |||
# Install grub2-efi-modules to make loopback work. | |||
# Copy file to this location /boot/efi/EFI/fedora/x86_64-efi/loopback.mod | |||
menuentry "Kali Linux" { | |||
insmod loopback | |||
iso="/iso/kali-linux-1.0.8-amd64.iso" | |||
bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali quiet splash" | |||
search --set -f $iso | |||
loopback loop $iso | |||
linuxefi (loop)/live/vmlinuz $bootoptions | |||
initrdefi (loop)/live/initrd.img | |||
} | |||
Latest revision as of 06:37, 29 October 2014
kali linux in grub2
Store iso on standard partition.
menuentry "Kali Linux" { iso="/iso/kali-linux-1.0.8-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 }
kali linux grub2 efi boot
Content of /etc/grub.2/40_custom of fedora 21 machine.
# Install grub2-efi-modules to make loopback work. # Copy file to this location /boot/efi/EFI/fedora/x86_64-efi/loopback.mod menuentry "Kali Linux" { insmod loopback iso="/iso/kali-linux-1.0.8-amd64.iso" bootoptions="findiso=$iso boot=live noconfig=sudo username=root hostname=kali quiet splash" search --set -f $iso loopback loop $iso linuxefi (loop)/live/vmlinuz $bootoptions initrdefi (loop)/live/initrd.img }