The following complete recipe for installing single-boot (this should be simple!) Ubuntu 18.04 on an Early-2011 Macbook 17" has an error.
Install Ubuntu
- Download Ubuntu ISO. Download Etcher. Use Etcher to prepare a USB flash.
- Insert flash. Press 'option' before chime. Choose EFI. [Puzzle: Why do two instances of EFI appear, both from the installation flash disk?]
- Press 'e'. Replace
quiet splash
withquiet splash nomodeset
. - Install Ubuntu on Mac's disk.
Booting from the Mac's disk will hang at the splash screen. The nomodeset
addition needs to be saved.
The following is from these three recipes.
Introduce nomodeset
to the boot script
- Boot once again from flash (press 'option'; press 'e'; adjust 'nomodeset').
- This time abort installation ('quit'). Launch the terminal (pressing the nine-dot icon brings up a search bar).
- Use
gparted
(How to reveal this on the command line?mount
?parted -l
?fdisk /dev/sda
?) to determine theext4
partition. Say it's/dev/sda2
. sudo mount --bind /dev /mnt/dev &&
,sudo mount --bind /dev/pts /mnt/dev/pts &&
,sudo mount --bind /proc /mnt/proc &&
,sudo mount --bind /sys /mnt/sys
. [Something is wrong here. Still working on a complete, self-contained recipe.]sudo chroot /mnt
(see here). [Something is wrong here. Still working on a complete, self-contained recipe.]sudo nano /etc/default/grub
- Add
nomodeset
toGRUB_CMDLINE_LINUX_DEFAULT
. sudo update-grub
.
The output at this last step is:
Sourcing file `/etc/default/grub`
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.0.0.23-generic
Found initrd image: /boot/initrd.img-5.0.0-23-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
done
How do I tell sudo update-grub
to use /dev/sda2
?
Would using rEFInd simplify the recipe above? (update)
What is briefer, to use rEFInd or not to use it? I understand that the reason for the existence of rEFInd is to enable a dual-boot linux set up on a Mac. But if just single-boot linux is sought, does introducing rEFInd make the recipe simpler or more complicated?
sudo nano update-grub
butsudo update-grub
. – schrodingerscatcuriosity Dec 04 '19 at 00:18