Following up on IRC discussion last week.
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.
I won't have time to look into this much deeper for a while.
Based on email thread below, it sounds like someone else has progressed
further than me.
Cheers, Cameron
On 10/1/17 9:14 am, Brian M Hamlin wrote:
fwd msg:
-----------
I am not a reader of this group but I was asked by someone who does
read it (Brian ed.) whether I could help with booting the osgeo iso on
UEFI machines.
I made some experiments. The following is a summary that I hope will
be useful.
references:
http://askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media
this is the most relevant
https://ubuntuforums.org/showthread.php?t=2276498
Thread: How to Create a EFI/UEFI GRUB2 Multiboot USB drive to boot ISO
images
https://sourceforge.net/p/unetbootin/wiki/howitworks/
I tried unetbootin. Almost worked but not quite.
copying iso as file system using dd ; not quite.
ISO loopback method
# I use debian. I assume here that /proc/partitions
# shows your usb stick as /dev/sdb
sudo apt install grub-efi-amd64-bin gdisk grub
sudo sgdisk --zap-all /dev/sdb # I like zap-all , it gives me a good
feeling.
# Remove usb drive and reinsert it to guarantee the kernel registers
the change.
sudo sudo sgdisk --new=1:0:0 --typecode=1:ef00 /dev/sdb
sudo mkfs.vfat -F32 -n GRUB2EFI /dev/sdb1
# Now you have formated fat32 drive using gpt. Check with gparted.
# mount it:
sudo mount -t vfat /dev/sdb1 /mnt
# At this point you might try doing as suggested by
# https://ubuntuforums.org/showthread.php?t=2276498
# but I had more promising results from
#
askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media
<http://askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media>
# which I follow below.
# create a grub-image:
grub-mkimage -o bootx64.efi -p /EFI/BOOT -O x86_64-efi \
fat iso9660 part_gpt part_msdos \
normal boot linux configfile loopback chain \
efifwsetup efi_gop efi_uga \
ls search search_label search_fs_uuid search_fs_file \
gfxterm gfxterm_background gfxterm_menu test all_video loadenv \
exfat ext2 ntfs btrfs hfsplus udf
# This creates the file "bootx64.efi".
# I find this command nonintuitive.
# Write the following to "grub.cfg"
set timeout=13
set color_highlight=black/light-magenta
menuentry 'Boot osgeo-live-10.5alpha1-amd64 from ISO' {
set isofile="/EFI/BOOT/ubuntu-14.04.2-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper
iso-scan/filename=$isofile noprompt noeject splash --
initrd (loop)/casper/initrd.lz
}
# options like "quiet persistent" may be added to options above..
# Write files to usb drive thusly:
/mnt/EFI
/mntb/EFI/BOOT
/mntb/EFI/BOOT/bootx64.efi
/mntb/EFI/BOOT/grub.cfg
/mntb/EFI/BOOT/osgeo-live-10.5alpha1-amd64.iso
I tried such a usb drive on a MacBook which I was told was UEFI
I got grub menu, it started loading the kernel. After a few score
lines of boot-up output messages it hangs, "loading nouveau.fb"
presumably that is a problem in the iso.
---
Brian M Hamlin
OSGeo California Chapter
blog.light42.com
_______________________________________________
Live-demo mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/live-demo
http://live.osgeo.org
http://wiki.osgeo.org/wiki/Live_GIS_Disc
--
Cameron Shorter
M +61 419 142 254
_______________________________________________
Live-demo mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/live-demo
http://live.osgeo.org
http://wiki.osgeo.org/wiki/Live_GIS_Disc