Quote:
Originally Posted by LNW
Dear Community, I would really appreciate some help with my escape from evil_OS. Here is the issue with this iMac:
When I boot from the hard drive I get:
Failed to set MokListRT: Invalid Perameter
Importing MOK states has failed: import-mok-state() failed
: Invalid Parameter
Continuing boot since secure mode is disabled
The boot repair utility informs me that:
Locked-NVram detected. Please disable SecureBoot in the BIOS. Then try again.
When I press command+R to try to get to the startup utility I get a blank screen.
I think I did a bad, bad thing and deleted something I need to disable secure boot.
I have previously tried using rEFInd boot manager and several distros without great success.
Thank you for your help! If you teach me this I will pass it on!
|
When I installed on my MacPro a few weeks ago it did the same to me. When it did the "Continuing boot since secure mode is disabled" I thought is was doing nothing until the desktop showed up Ubuntu so helpfully installed a hidden boot loader option with no timeout so it just booted. Otherwise I would have discovered the no Grub menu cause a little earlier it will not display on a Mac. You do not say if you have sat there for any amount of time to see if it does end up booting, did you allow that to happen?
Going through my history of commands run, to get rid of the signed boot.
Code:
apt-get purge shim shim-signed -y
I think this part is where I had installed grub to the new internal install after putting the drive in it so only the internal drive would be bootable.
Code:
grub-install --efi-directory=/tmp/sda /dev/sda ; grub-install --efi-directory=/tmp/sda --recheck
I had mounted the /boot/efi directory (or rather the partition that had the files that would be used for the /boot/efi) as the /tmp/sda.
Code:
mount /dev/sda1 /tmp/sda
To find the boot partition.
Code:
lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL |grep -i efi
In it you need to delete the secure boot file.
Code:
rm /boot/efi/EFI/ubuntu/shimx64.efi
You will need to.
Code:
ll /boot/efi/EFI/ubuntu/
total 2943
-rwx------ 1 root root 108 Jun 27 16:48 BOOTX64.CSV
-rwx------ 1 root root 126 Jun 27 16:58 grub.cfg
-rwx------ 1 root root 1734528 Jun 27 16:58 grubx64.efi
-rwx------ 1 root root 1277024 Jun 27 16:48 mmx64.efi
To copy the grubx64.efi to the /boot/efi/EFI/BOOT/BOOTX64.EFI as that will be a copy of the /boot/efi/EFI/ubuntu/shimx64.efi file. This is the file (BOOTX64.EFI) that all efi machines will look to boot by default on an EFI enabled system.
Code:
ll /boot/efi/EFI/BOOT/
total 4136
-rwx------ 1 root root 1734528 Jun 27 16:58 BOOTX64.EFI
-rwx------ 1 root root 1222800 Jun 27 16:48 fbx64.efi
-rwx------ 1 root root 1277024 Jun 27 16:48 mmx64.efi
If running Ubuntu and if no no GRUB shows up then.
Code:
cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=5
GRUB_TERMINAL=console
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
I had to change the STYLE, TIMEOUT and TERMINAL options followed by.
To have the GRUB menu be updated. I do not think I have left much out, what I would suggest you do is keep the USB install so you can boot with it if necessary. Do the install again making sure you manually partition the internal drive. Here you will create a small 200mb or so fat32 partition for use as the system partition in the installer screen. Then your / partition ext4 and if wanted a swap partition the size of your ram installed. Let it complete then wait to see if it boots if it does without a GRUB screen then you need to edit the defaul file to use the options I have shown for that.