<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Following up on IRC discussion last week.<br>
</p>
<p>My initial attempts to get a USB image created from a Mac were
unsuccessful. I was trying to create a bootable image using
unetbootin (as recommended from the Ubuntu website), but this
didn't work.</p>
<p>I won't have time to look into this much deeper for a while.</p>
<p>Based on email thread below, it sounds like someone else has
progressed further than me.<br>
</p>
<p>Cheers, Cameron<br>
</p>
<br>
<div class="moz-cite-prefix">On 10/1/17 9:14 am, Brian M Hamlin
wrote:<br>
</div>
<blockquote
cite="mid:201701092214.v09MEvQS008038@mail102c40.carrierzone.com"
type="cite">
<title></title>
<div class="userStyles" style=" font-family: Arial; font-size:
14pt; color: #000000;">fwd msg:<br>
-----------<br>
<span style="font-family: monospace, monospace;">I am not a
reader of this group but I was asked by someone who does read
it (Brian ed.) </span><span style="font-family: monospace,
monospace;">whether I could help with booting the osgeo iso on
UEFI machines.</span><br style="font-family: monospace,
monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">I made some
experiments. The following is a summary that I hope will be
useful.</span><br style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">references:</span><br
style="font-family: monospace, monospace;">
<a moz-do-not-send="true"
href="http://askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media"
rel="noopener noreferrer" style="font-family: monospace,
monospace;" target="_blank">http://askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media</a><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">this is the
most relevant</span><br style="font-family: monospace,
monospace;">
<br style="font-family: monospace, monospace;">
<a moz-do-not-send="true"
href="https://ubuntuforums.org/showthread.php?t=2276498"
rel="noopener noreferrer" style="font-family: monospace,
monospace;" target="_blank">https://ubuntuforums.org/showthread.php?t=2276498</a><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">Thread: How to
Create a EFI/UEFI GRUB2 Multiboot USB drive to boot ISO images</span><br
style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<a moz-do-not-send="true"
href="https://sourceforge.net/p/unetbootin/wiki/howitworks/"
rel="noopener noreferrer" style="font-family: monospace,
monospace;" target="_blank">https://sourceforge.net/p/unetbootin/wiki/howitworks/</a><br
style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">I tried
unetbootin. Almost worked but not quite.</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">copying iso as
file system using dd ; not quite.</span><br
style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">ISO loopback
method</span><br style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># I use debian.
I assume here that /proc/partitions</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># shows your
usb stick as /dev/sdb</span><br style="font-family: monospace,
monospace;">
<span style="font-family: monospace, monospace;">sudo apt
install grub-efi-amd64-bin gdisk grub</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">sudo sgdisk
--zap-all /dev/sdb # I like zap-all , it gives me a good
feeling.</span><br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># Remove usb
drive and reinsert it to guarantee the kernel registers the
change.</span><br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">sudo sudo
sgdisk --new=1:0:0 --typecode=1:ef00 /dev/sdb</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">sudo mkfs.vfat
-F32 -n GRUB2EFI /dev/sdb1</span><br style="font-family:
monospace, monospace;">
<span style="font-family: monospace, monospace;"># Now you have
formated fat32 drive using gpt. Check with gparted.</span><br
style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># mount it:</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">sudo mount -t
vfat /dev/sdb1 /mnt</span><br style="font-family: monospace,
monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># At this point
you might try doing as suggested by</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># </span><a
moz-do-not-send="true"
href="https://ubuntuforums.org/showthread.php?t=2276498"
rel="noopener noreferrer" style="font-family: monospace,
monospace;" target="_blank">https://ubuntuforums.org/showthread.php?t=2276498</a><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># but I had
more promising results from</span><br style="font-family:
monospace, monospace;">
<span style="font-family: monospace, monospace;"># </span><a
moz-do-not-send="true"
href="http://askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media"
rel="noopener noreferrer" style="font-family: monospace,
monospace;" target="_blank">askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media</a><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># which I
follow below.</span><br style="font-family: monospace,
monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># create a
grub-image:</span><br style="font-family: monospace,
monospace;">
<span style="font-family: monospace, monospace;">grub-mkimage -o
bootx64.efi -p /EFI/BOOT -O x86_64-efi \</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"> fat iso9660
part_gpt part_msdos \</span><br style="font-family: monospace,
monospace;">
<span style="font-family: monospace, monospace;"> normal boot
linux configfile loopback chain \</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"> efifwsetup
efi_gop efi_uga \</span><br style="font-family: monospace,
monospace;">
<span style="font-family: monospace, monospace;"> ls search
search_label search_fs_uuid search_fs_file \</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"> gfxterm
gfxterm_background gfxterm_menu test all_video loadenv \</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"> exfat ext2
ntfs btrfs hfsplus udf</span><br style="font-family:
monospace, monospace;">
<span style="font-family: monospace, monospace;"># This creates
the file "bootx64.efi".</span><br style="font-family:
monospace, monospace;">
<span style="font-family: monospace, monospace;"># I find this
command nonintuitive.</span><br style="font-family: monospace,
monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># Write the
following to "grub.cfg"</span><br style="font-family:
monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">set timeout=13</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">set
color_highlight=black/light-magenta</span><br
style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">menuentry 'Boot
osgeo-live-10.5alpha1-amd64 from ISO' {</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"> set
isofile="/EFI/BOOT/ubuntu-14.04.2-desktop-amd64.iso"</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">
loopback loop $isofile</span><br style="font-family:
monospace, monospace;">
<span style="font-family: monospace, monospace;"> linux
(loop)/casper/vmlinuz.efi boot=casper
iso-scan/filename=$isofile noprompt noeject splash --</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"> initrd
(loop)/casper/initrd.lz</span><br style="font-family:
monospace, monospace;">
<span style="font-family: monospace, monospace;">}</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># options like
"quiet persistent" may be added to options above..</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;"># Write files
to usb drive thusly:</span><br style="font-family: monospace,
monospace;">
<span style="font-family: monospace, monospace;">/mnt/EFI</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">/mntb/EFI/BOOT</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">/mntb/EFI/BOOT/bootx64.efi</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">/mntb/EFI/BOOT/grub.cfg</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">/mntb/EFI/BOOT/osgeo-live-10.5alpha1-amd64.iso</span><br
style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">I tried such a
usb drive on a MacBook which I was told was UEFI</span><br
style="font-family: monospace, monospace;">
<br style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">I got grub
menu, it started loading the kernel. After a few score</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">lines of
boot-up output messages it hangs, "loading nouveau.fb"</span><br
style="font-family: monospace, monospace;">
<span style="font-family: monospace, monospace;">presumably that
is a problem in the iso.</span><br>
<br>
<footer class="signatureContainer">---<br>
Brian M Hamlin<br>
OSGeo California Chapter<br>
blog.light42.com</footer>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Live-demo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Live-demo@lists.osgeo.org">Live-demo@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/live-demo">http://lists.osgeo.org/mailman/listinfo/live-demo</a>
<a class="moz-txt-link-freetext" href="http://live.osgeo.org">http://live.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.osgeo.org/wiki/Live_GIS_Disc">http://wiki.osgeo.org/wiki/Live_GIS_Disc</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Cameron Shorter
M +61 419 142 254</pre>
</body>
</html>