BOOT and ISO from a GPT disk

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
pgmer6809
Level 4
Level 4
Posts: 228
Joined: Sun Mar 04, 2012 9:06 pm

BOOT and ISO from a GPT disk

Post by pgmer6809 »

If you search the net you will find several writeups on booting ISOs.
None of them worked for me.
I think it is because all of these write ups are written for MBR disks.
The basic approach is to write extra menu entries in the

Code: Select all

/etc/grub.d/40_custom 
file.
then do an

Code: Select all

update-grub
cmd.

Here is the entry that finally worked for me: (I have a separate partition where I keep ISOs, this is /dev/sda8)

Code: Select all

menuentry "Petra 64bit KDE ISO" {
insmod part_gpt
insmod ext2
insmod iso9660
set isofile="/linuxmint-16-kde-dvd-64bit.iso"
loopback loop (hd0,gpt8)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
} 
This menu entry is very similar to what is on the NET with the ADDITION of the 3 insmod lines,
I am not sure if all are required, but they do no harm. It depends I guess on which modules were built into grub at compile time and which need to be loaded.
Notice also that the loopback loop line has the format

Code: Select all

(hd0,gpt8)
In most write ups you see this is just give as

Code: Select all

(hd0,8)
which should default to an msdos/mbr type of disk.

pgmer6809
Post Reply

Return to “Tutorials”