Announcement

Collapse
No announcement yet.

MBR vs GPT, BIOS and UEFI, Secureboot...what's "the best" combo for a Linux only box?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16


    Steve, are you SURE you've been running Linux for only a few years? A Windows guru I knew you were, but the depth and breadth of your Linux knowledge after a few short years is truly amazing.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #17
      LOL. Never touched the penguin before mid-2009. I was paid to hate it, remember?

      Comment


        #18
        OK, I went back and tried to use just rEFInd as my boot manager. I downloaded and installed refind 0.7.7, purged everything with "grub" in it's name, and rebooted. rEFInd came up with just one option, Ubuntu. After selecting my one option, Kubuntu's grub menu came up. So I thought I would be smart and delete everything with the name "grub" in it in the /boot partition. That gave me rEFInd with NO options, other than info, shutdown and reboot sub-options.... no OS's. So I booted up my kubuntu live-usb, repaired the boot with grub2 again, and started over. This time, instead of deleting everything named "grub", I started renaming things. I copied and renamed vmlinuz-3.12.0.7-generic to vmlinuz-3.12.0.7-generic.efi, I copied /boot/efi/EFI/ubuntu/grubx64.efi to just about every folder under /boot, including /boot. Doing both things still gave me a grub menu on reboot (with multiple Ubuntu boot options in rEFInd, all pointing back to grub). So, now I'm at a loss and started googling 'refind boots grub'. It appears that no one knows how to fix this. One poor soul posted that he installed refind, removed grub, got the grub menu and was told to remove grub.

        Then I began my hunt to load just the stub (again). As far as I can tell, I SHOULD have the option for just the stub in rEFInd, but again, my only option is to boot into grubx64.efi. Under efibootmgr, I have the option to boot shimx64.efi, but then it starts babbling about keys, so I'm avoiding that for now.
        I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

        Comment


          #19
          Uh, none of that manual work should have been necessary. What's the output of
          Code:
          sudo efibootmgr -v

          Comment


            #20
            Code:
            pat@Pats-Main:~$ sudo efibootmgr -v
            [sudo] password for pat: 
            BootCurrent: 0002
            Timeout: 1 seconds
            BootOrder: 0002,0004,0008,000F,0000,0001
            Boot0000* SATA: SanDisk SDSSDRC032G     BIOS(11,0,00)
            Boot0001* SATA: HL-DT-ST DVDRAM GH24    BIOS(10,0,00)
            Boot0002* rEFInd Boot Manager   HD(2,800,7ff800,0f31098a-7845-40ce-8e60-f6870a445677)File(\EFI\refind\refind_x64.efi)
            Boot0004* kubuntu       HD(2,800,7ff800,0f31098a-7845-40ce-8e60-f6870a445677)File(\EFI\ubuntu\shimx64.efi)
            Boot0008* kubuntu       HD(2,800,7ff800,0f31098a-7845-40ce-8e60-f6870a445677)File(\EFI\ubuntu\shimx64.efi)
            Boot000F* UEFI: Built-in EFI Shell      Vendor(5023b95c-db26-429b-a648-bd47664c8012,)AMBO
            I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

            Comment


              #21
              Next:
              Code:
              sudo apt-get install tree
              
              tree /boot/efi
              I'll help you through a bit of cleanup, but need to see what's going on first.

              Comment


                #22
                Oh, also:
                Code:
                dpkg -l | grep -i grub

                Comment


                  #23
                  Code:
                  pat@Pats-Main:~$ tree /boot/efi                                                                                                                              
                  /boot/efi                                                                                                                                                    
                  ├── EFI
                  │   ├── grubx64.efi
                  │   ├── refind
                  │   │   ├── drivers_x64
                  │   │   │   └── ext4_x64.efi
                  │   │   ├── grubx64.efi
                  │   │   ├── icons
                  │   │   │   ├── arrow_left.icns
                  │   │   │   ├── arrow_right.icns
                  │   │   │   ├── boot_linux.icns
                  │   │   │   ├── boot_win.icns
                  │   │   │   ├── func_about.icns
                  │   │   │   ├── func_exit.icns
                  │   │   │   ├── func_firmware.icns
                  │   │   │   ├── func_reset.icns
                  │   │   │   ├── func_shutdown.icns
                  │   │   │   ├── os_altlinux.icns
                  │   │   │   ├── os_arch.icns
                  │   │   │   ├── os_centos.icns
                  │   │   │   ├── os_chrome.icns
                  │   │   │   ├── os_debian.icns
                  │   │   │   ├── os_ecomstation.icns
                  │   │   │   ├── os_fatdog.icns
                  │   │   │   ├── os_fedora.icns
                  │   │   │   ├── os_freebsd.icns
                  │   │   │   ├── os_freedos.icns
                  │   │   │   ├── os_funtoo.icns
                  │   │   │   ├── os_gentoo.icns
                  │   │   │   ├── os_gummiboot.icns
                  │   │   │   ├── os_haiku.icns
                  │   │   │   ├── os_hwtest.icns
                  │   │   │   ├── os_kubuntu.icns
                  │   │   │   ├── os_legacy.icns
                  │   │   │   ├── os_linux.icns
                  │   │   │   ├── os_linuxmint.icns
                  │   │   │   ├── os_lubuntu.icns
                  │   │   │   ├── os_mac.icns
                  │   │   │   ├── os_mandriva.icns
                  │   │   │   ├── os_manjaro.icns
                  │   │   │   ├── os_netbsd.icns
                  │   │   │   ├── os_openbsd.icns
                  │   │   │   ├── os_opensuse.icns
                  │   │   │   ├── os_redhat.icns
                  │   │   │   ├── os_refind.icns
                  │   │   │   ├── os_refit.icns
                  │   │   │   ├── os_slackware.icns
                  │   │   │   ├── os_suse.icns
                  │   │   │   ├── os_ubuntu.icns
                  │   │   │   ├── os_unknown.icns
                  │   │   │   ├── os_win.icns
                  │   │   │   ├── tool_apple_rescue.icns
                  │   │   │   ├── tool_memtest.icns
                  │   │   │   ├── tool_mok_tool.icns
                  │   │   │   ├── tool_part.icns
                  │   │   │   ├── tool_shell.icns
                  │   │   │   ├── tool_windows_rescue.icns
                  │   │   │   ├── transparent.icns
                  │   │   │   ├── vol_external.icns
                  │   │   │   ├── vol_internal.icns
                  │   │   │   └── vol_optical.icns
                  │   │   ├── icons-backup
                  │   │   │   ├── arrow_left.icns
                  │   │   │   ├── arrow_right.icns
                  │   │   │   ├── boot_linux.icns
                  │   │   │   ├── boot_win.icns
                  │   │   │   ├── func_about.icns
                  │   │   │   ├── func_exit.icns
                  │   │   │   ├── func_firmware.icns
                  │   │   │   ├── func_reset.icns
                  │   │   │   ├── func_shutdown.icns
                  │   │   │   ├── os_altlinux.icns
                  │   │   │   ├── os_arch.icns
                  │   │   │   ├── os_centos.icns
                  │   │   │   ├── os_chrome.icns
                  │   │   │   ├── os_debian.icns
                  │   │   │   ├── os_ecomstation.icns
                  │   │   │   ├── os_fatdog.icns
                  │   │   │   ├── os_fedora.icns
                  │   │   │   ├── os_freebsd.icns
                  │   │   │   ├── os_freedos.icns
                  │   │   │   ├── os_funtoo.icns
                  │   │   │   ├── os_gentoo.icns
                  │   │   │   ├── os_gummiboot.icns
                  │   │   │   ├── os_haiku.icns
                  │   │   │   ├── os_hwtest.icns
                  │   │   │   ├── os_kubuntu.icns
                  │   │   │   ├── os_legacy.icns
                  │   │   │   ├── os_linux.icns
                  │   │   │   ├── os_linuxmint.icns
                  │   │   │   ├── os_lubuntu.icns
                  │   │   │   ├── os_mac.icns
                  │   │   │   ├── os_mandriva.icns
                  │   │   │   ├── os_manjaro.icns
                  │   │   │   ├── os_netbsd.icns
                  │   │   │   ├── os_openbsd.icns
                  │   │   │   ├── os_opensuse.icns
                  │   │   │   ├── os_redhat.icns
                  │   │   │   ├── os_refind.icns
                  │   │   │   ├── os_refit.icns
                  │   │   │   ├── os_slackware.icns
                  │   │   │   ├── os_suse.icns
                  │   │   │   ├── os_ubuntu.icns
                  │   │   │   ├── os_unknown.icns
                  │   │   │   ├── os_win.icns
                  │   │   │   ├── tool_apple_rescue.icns
                  │   │   │   ├── tool_memtest.icns
                  │   │   │   ├── tool_mok_tool.icns
                  │   │   │   ├── tool_part.icns
                  │   │   │   ├── tool_shell.icns
                  │   │   │   ├── tool_windows_rescue.icns
                  │   │   │   ├── transparent.icns
                  │   │   │   ├── vol_external.icns
                  │   │   │   ├── vol_internal.icns
                  │   │   │   └── vol_optical.icns
                  │   │   ├── keys
                  │   │   │   ├── altlinux.cer
                  │   │   │   ├── canonical-uefi-ca.der
                  │   │   │   ├── fedora-ca.cer
                  │   │   │   ├── openSUSE-UEFI-CA-Certificate.cer
                  │   │   │   ├── refind.cer
                  │   │   │   └── SLES-UEFI-CA-Certificate.cer
                  │   │   ├── refind.conf
                  │   │   ├── refind.conf-sample
                  │   │   └── refind_x64.efi
                  │   ├── tools
                  │   └── ubuntu
                  │       ├── grub.cfg
                  │       ├── grubx64.efi
                  │       ├── MokManager.efi
                  │       └── shimx64.efi
                  └── grubx64.efi
                  
                  8 directories, 123 files
                  pat@Pats-Main:~$ sudo dpkg -l | grep -i grub
                  pat@Pats-Main:~$
                  Last edited by SteveRiley; Jan 04, 2014, 03:27 PM.
                  I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

                  Comment


                    #24
                    Wow, so many copies of grubx64.efi. Weird. One more thing before we begin: have you disabled Secure Boot?

                    Comment


                      #25
                      Yeah, like I said, I copied it to just about everyplace in /boot.
                      In all honesty, I don't think I have the option to enable Secure Boot. I don't think I've ever seen it. I just got finished updating and I'm going to reboot. I'll check.
                      I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

                      Comment


                        #26
                        Nope, no Secure Boot option. But, this is not a production motherboard, either. This is a homemade computer system, so I've never had a copy of Win8 on it.
                        I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

                        Comment


                          #27
                          Just copying files around is not the way to go. The .efi files need to be in certain places, and need to have matching entries in the NVRAM. Here's what I'd like you to do.

                          1. Clear out the entries for the "kubuntu" boot loaders.
                          Code:
                          sudo efibootmgr -b 0004 -B
                          
                          sudo efibootmgr -b 0008 -B
                          2. Erase the GRUB boot loaders:
                          Code:
                          sudo rm /boot/efi/grubx64.efi /boot/efi/EFI/grubx64.efi /boot/efi/EFI/refind/grubx64.efi
                          3. Erase the Ubuntu boot loader:
                          Code:
                          sudo rm -rfv /boot/efi/EFI/ubuntu
                          Now reboot. rEFInd should show every kernel it can find. Pick one, and the operating system should boot directly.

                          Comment


                            #28
                            I have no OS options in rEFInd. I'm currently running the live-usb to run boot-repair on my main pc. I'm logged into the forums on my laptop now.
                            I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

                            Comment


                              #29
                              Did you install rEFInd using the .deb file or the .zip file? Did you make any changes to the default /boot/efi/EFI/refind/refind.conf?

                              Please show:
                              Code:
                              ls -al /boot
                              
                              lsblk

                              Comment


                                #30
                                The deb file. I made no changes to any configs.

                                Give me a few more minutes, I'm still trying to fix boot on the main pc. I have to install and assemble raid0, ect al....
                                Last edited by Buddlespit; Jan 04, 2014, 04:05 PM.
                                I do not personally use Kubuntu, but I'm the tech support for my daughter who does.

                                Comment

                                Working...
                                X