Pages

[other] Booting ISO from grub

lundi 22 août 2016

Greetings everyone!

I'm trying to boot ISO from Grub and I've followed instructions from wiki and few tutorials to know what it is

So far, I've done this:
>Made a separate folder called "live" on system partition, which is dev/sda9 partition on my existing dual boot with windows 10. As a root. (My home is not separate partition)
>Copied my ISO file (which is Kali.iso) to this folder as a root.
>Opened 40_custom (in grub.d) folder in gedit as a root

Now, here is what I'm not sure about

#!/bin/sh
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 'Kali Linux' --class os --class gnu-linux --class gnu --class os --group group_main {
set isofile="/live/kali.iso"
insmod ext4
insmod loopback
insmod iso9660
loopback loop (hd0,9)$isofile
search --no-floppy --fs-uuid --set=root 657f4609-e940-4dd1-a909-30ca312126d7
linux (loop)/live/vmlinuz boot=live fromiso=/dev/sda1/$isofile noconfig=sudo username=root hostname=kali
initrd (loop)/live/initrd.img
}


Is this structure of the file correct?

UUID is copied from sudo bilkd for my /dev/sda9 partition, which is default for my existing Linux operating system in this dual boot
exact output

/dev/sda1: LABEL="WINRE_DRV" UUID="B4EC0243EC01FFFA" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="41ac2c07-59fd-4d9e-8929-85b0815035b8"
/dev/sda2: LABEL="SYSTEM_DRV" UUID="AE04-8F6E" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="14cacb72-b6d0-4507-bf95-1c79e5273884"
/dev/sda3: LABEL="LRS_ESP" UUID="DE07-DDC0" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="195a7877-a47e-48ec-8461-5495a30fff87"
/dev/sda5: LABEL="Windows8_OS" UUID="06C00B4EC00B4401" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="9ff9655b-8a49-4616-912f-8db52eadfe06"
/dev/sda6: LABEL="New Volume" UUID="7C2A29002A28B8D2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="93372d34-5976-4e43-8887-bca3cfcf4405"
/dev/sda7: LABEL="New Volume" UUID="2C0C42F30C42B81A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0b5897db-b7f9-4552-a6bd-f38c3fad9d25"
/dev/sda8: LABEL="New Volume" UUID="74B053D1B0539906" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8d7566bf-bbda-4fd2-b38e-624e18cc6fa7"
/dev/sda9: UUID="657f4609-e940-4dd1-a909-30ca312126d7" TYPE="ext4" PARTLABEL="Basic data partition" PARTUUID="d552ae66-3c05-4493-84ac-18e638304dbb"
/dev/sda10: LABEL="PBR_DRV" UUID="48500DF4500DE990" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0d987a36-3c5f-4cd2-97c4-cd83736ebeaa"
/dev/sda11: UUID="9b00fd59-fad0-425c-8c70-60bd77a268b7" TYPE="swap" PARTUUID="0bec978e-97c6-475d-be65-2f79b810edef"
/dev/sda4: PARTLABEL="Microsoft reserved partition" PARTUUID="8f6cbae8-6d37-46bc-bce2-2ba3adf7dcdd"
I'm not sure if I'm doing this right and don't have resources atm to do repair work if I brick something. So, please anyone who has knowledge of what this is, please help.

Let's block ads! (Why?)



[other] Booting ISO from grub

Aucun commentaire:

Enregistrer un commentaire