1

Currently I have MacOS High Sierra, Windows 10 (Legacy, not EFI), and Ubuntu 18.04 triple-booting on a 2009 MacPro 4,1 (firmware upgraded to 5,1). I installed Ubuntu after Windows using the procedure described here. All three operating systems boot normally using Apple's Startup Manager (holding ALT during bootup). My question is, how do I boot directly into Ubuntu, Windows 10, and MacOS HS from each of the other partitions?

I can use the terminal to boot directly into Windows 10 or Ubuntu from MacOS using the following commands (output of diskutil list at bottom of post for reference). For Windows 10:

sudo bless --legacy --device /dev/disk0s4 --setboot --nextonly && sudo reboot

and for Ubuntu EFI:

sudo bless --device /dev/disk0s5 --setboot --nextonly && sudo reboot

But is there an equivalent terminal command to "bless" my MacOS or windows partition from Ubuntu 18.04? I'm aware of 'hfs-bless' in mactel-utils, but this does not appear to support Ubuntu 18.04 (only previous Ubuntu versions). Is it possible to install mactel-utils in Ubuntu 18.04? If not, is there an Ubuntu equivalent of MacOs' "Startup Disk" or bless so that Ubuntu will restart into my Windows 10 or Mac partition?

Output of diskutil list:

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            1.5 TB     disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data BOOTCAMP                290.3 GB   disk0s4
   5:                  Apple_HFS Ubuntu                  200.3 MB   disk0s5
   6:                 Linux Swap                         8.0 GB     disk0s6
   7:           Linux Filesystem                         201.5 GB   disk0s7

Apple's Startup Manager

vrl2
  • 113
  • 1
    Why do you want to avoid the startup menu? Saving time? Or because you are remote? – WGroleau Aug 01 '18 at 23:15
  • 1
    To save time - also I'd prefer not to connect a USB keyboard just for bootup (using a bluetooth keyboard and mouse, it is often impossible to hold "ALT" at the right moment to invoke the Apple Startup Manager). – vrl2 Aug 01 '18 at 23:22
  • 1
    I press Alt before initiating reboot. Easy. But it doesn't save time. – WGroleau Aug 01 '18 at 23:33
  • 1
    Seems mactel-boot has no source code there. I tried to download it to see if it is small enough to reverse-engineer, but nothing in what looks like a file list is downloadable. One college I visited had all the Macs set so the powerd up to a what-to-boot menu. – WGroleau Aug 01 '18 at 23:39
  • 1
    Trying to avoid reFInd, although I'm sure it could be set up to boot automatically into a "what-to-boot" menu. I got the mactel-boot source like this:

    wget http://www.codon.org.uk/~mjg59/macte...ot-0.9.tar.bz2

    tar -jxf mactel-boot-0.9.tar.bz2

    cd mactel-boot-0.9

    make PRODUCTVERSION=Debian

    – vrl2 Aug 01 '18 at 23:46
  • 1
    If you can't build the source, you could probably find someone else who could. I don't have Linux, so I can't do it. – WGroleau Aug 02 '18 at 00:20
  • @WGroleau, figured out why holding ALT on my bluetooth keyboard wasn't bringing up the Apple Startup Manager. Looks like it works if the USB keyboard is disconnected. If the USB keyboard is connected, the BT keyboard's green light doesn't turn on until after the OS loads. If I disconnect the USB keyboard, the BT keyboard's green light turns on immediately when I turn on my machine. – vrl2 Sep 14 '18 at 17:27
  • If a wired keyboard is not found, the system checks a preference setting for whether to fall back on Bluetooth. This setting is in the advanced part of Bluetooth pref pane. – WGroleau Sep 14 '18 at 18:54

1 Answers1

2

I know it's an old thread but for your information: you can still download mactel-boot .deb package from this link http://ppa.launchpad.net/detly/mactel-utils/ubuntu/pool/main/m/mactel-boot/mactel-boot_0.9-1~xenial_amd64.deb (Xenial version). It's install smoothly in Ubuntu 2018.04.3 LTS correctly and, apparently, works.