Announcement

Collapse
No announcement yet.

bootup problem

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

    bootup problem

    Using kubuntu 14.10 on: On a new Gigabyte system, AMD A8-7650K Radeon R7, 10 Compute Cores 4C+6G .........etc

    On login, this message appears briefly, prior to starting:
    "Booting in insecure mode"
    System seems to be running fine.
    Any ideas?
    Last edited by Bumpalot; Jul 26, 2015, 05:16 PM. Reason: added more info

    #2
    That is not a problem -- it's fine. Your (relatively new) computer is booting in the newer UEFI mode (versus the older "BIOS" mode), and you have Secure Boot turned off (which is OK -- see SteveRiley's post about this somewhere around here @kubuntuforums). Thus, "Booting in insecure mode" is simply reporting to you that your boot-up is without Secure Boot turned on. I'll try to dig up Steve's post for you.
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      https://www.kubuntuforums.net/showth...l=1#post342624

      https://www.kubuntuforums.net/showth...l=1#post317265

      https://www.kubuntuforums.net/showth...l=1#post315393

      https://www.kubuntuforums.net/showth...l=1#post303502
      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment


        #4
        "Secure Boot" is mainly for Windows OSs -- even then, many experts ("most" experts that I read) will tell you to turn it off; and, if tuned on, it can cause other issues. (I consider Steve Riley to be a security expert, knowledgeable about Linux and Windows.)
        Last edited by Qqmike; Jul 26, 2015, 05:30 PM.
        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

        Comment


          #5
          How can I find out if I am REALLY booting with??

          Comment


            #6
            Open Konsole, issue the command,

            sudo efibootmgr

            If efibootmgr is not installed, use Muon to install it (or sudo apt-get install efibootmgr).

            Mine:
            Code:
            sudo efibootmgr
            [sudo] password for mike: 
            BootCurrent: 0000
            Timeout: 1 seconds
            BootOrder: 0000,0003,0001,0004,000A,0005,0006,0002,000B,000C,0007,0008,0009
            Boot0000* ubuntu
            Boot0001* debian
            Boot0002* grub_sda5K1504
            Boot0003* rEFInd Boot Manager
            Boot0004* Mint_2
            Boot0005* Hard Drive 
            Boot0006* CD/DVD Drive 
            Boot0007* UEFI:CD/DVD Drive
            Boot0008* UEFI:Removable Device
            Boot0009* UEFI:Network Device
            Boot000A* Mint_1
            Boot000B* ubuntu
            Boot000C* ubuntu

            You should see about the same kind of report with BootOrder.
            Last edited by Qqmike; Jul 28, 2015, 05:25 AM.
            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

            Comment


              #7
              More indicators you are booting in UEFI mode:

              Identifying if an Ubuntu has been installed in EFI mode

              An Ubuntu installed in EFI mode can be detected the following way:

              > its /etc/fstab file contains an EFI partition (mount point: /boot/efi)
              > it uses the grub-efi bootloader (not grub-pc) <-- see below

              https://www.kubuntuforums.net/showth...l=1#post346604


              Check /usr/lib/grub -- do you see x86_64.efi[and maybe also -signed]?

              Install gdisk, then:

              Code:
               [B]sudo gdisk -l /dev/sda[/B]
               GPT fdisk (gdisk) version 0.8.8
                
               Partition table scan:
                 MBR: protective
                 BSD: not present
                 APM: not present
                 GPT: present
                 Found valid GPT with protective MBR; using GPT.
               Disk /dev/sda: 976773168 sectors, 465.8 GiB
               Logical sector size: 512 bytes
               Disk identifier (GUID): D3B766B4-D998-4351-8F06-13BC87F55BDE
               Partition table holds up to 128 entries
               First usable sector is 34, last usable sector is 976773134
               Partitions will be aligned on 2048-sector boundaries
               Total free space is 111493101 sectors (53.2 GiB)
                
               Number  Start (sector)    End (sector)  Size       Code  Name
                  1            2048         1026047   500.0 MiB   [COLOR=#ff3333][B]EF00[/B][/COLOR]   [COLOR=#ff0000]<-- you should see this EF00[/COLOR]
                  2         1026048        62466047   29.3 GiB    8300   
                  3        62466048       267266047   97.7 GiB    8300   
                  4       267266048       300034047   15.6 GiB    8200   
                  5       300034048       361474047   29.3 GiB    8300   
                  6       361474048       566274047   97.7 GiB    8300   
                  7       566274048       567298047   500.0 MiB   EF00   
                  8       567298048       669698047   48.8 GiB    8300   
                  9       669698048       772098047   48.8 GiB    8300   
                 10       772098048       773122047   500.0 MiB   EF00   
                 11       773122048       824322047   24.4 GiB    8300   
                 12       824322048       865282047   19.5 GiB    8300
              UEFI for Kubuntu -- simplified, and dual-booting tips

              https://www.kubuntuforums.net/showth...l=1#post373198



              EDIT, added:
              You can open /boot/efi and see your EFI setup: /EFI/ubuntu and inside that folder, see some files like grubx64.efi, grub.cfg, etc.
              Last edited by Qqmike; Jul 26, 2015, 08:20 PM.
              An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

              Comment


                #8
                Had some time on my hands and so typed up a draft of a checklist of things to check to see if you've installed Kubuntu in UEFI mode:

                Is your Kubuntu installed in UEFI mode?

                >> Open Konsole, issue the command,
                sudo efibootmgr
                You should see BootOrder: xxxx,xxxy,xxxz, etc., and a list of Bootxxxx's.
                If efibootmgr is not installed, use Muon to install it (or sudo apt-get install efibootmgr).

                >> Your /etc/fstab file should contain an EFI System Partition (mount point: /boot/efi, type EF00), maybe like this:
                # /boot/efi was on /dev/sda1 during installation
                UUID=74D7-02F2 /boot/efi vfat defaults 0 1


                >> (Again) You should have an ESP partition. (EFI System Partition, type EF00).
                Check it using gdisk:
                Code:
                 [B]sudo gdisk -l [/B]/dev/sda 
                
                 Number  Start (sector)    End (sector)  Size   
                      n            x         y   100-500.0 MiB  [COLOR=#ff3333][B]EF00[/B][/COLOR]   [COLOR=#ff0000]<--you should see this EF00[/COLOR]
                (You might have to install gdisk using Muon Package Manager, or sudo apt-get install gdisk.)


                >> Open /boot/efi (which is the mount point for the ESP) and see your (U)EFI setup: /EFI/ubuntu and inside that folder, see some files like grubx64.efi, grub.cfg, etc.

                >> Your Kubuntu should use the grub-efi bootloader (not grub-pc)
                Check /usr/lib/grub -- do you see x86_64.efi[and maybe also -signed]?


                - - - - - - - - - -


                To install the Kubuntu OS in UEFI mode
                --> Must be 64-bit Kubuntu OS for UEFI.
                --> You must boot your Kubuntu installer DVD/USB in UEFI mode!

                With the DVD/USB installer, reboot the PC, enter UEFI(-BIOS) by pressing the correct key for your computer.
                Find the boot menu or boot override menu where the bootable devices will be listed.
                Choose the one that corresponds to the Kubuntu UEFI choice.
                Look for UEFI /(FAT) or some reference to UEFI.
                Example: My Live Kubuntu DVD installer showed up twice in UEFI BIOS (under Boot Override) as a "normal" DVD writer, and also as:
                UEFI (FAT) TSSTcorp CDDVDW SH-224DB (1028 MB) (= my Samsung DVD player).
                Select that option from the boot override menu.


                - - - - - - - - - -


                GPT, UEFI -- Study Guide
                https://www.kubuntuforums.net/showth...l=1#post346604


                UEFI for Kubuntu--simplified. And ... some dual-booting tips for Kubuntu
                https://www.kubuntuforums.net/showth...l=1#post373198
                Last edited by Qqmike; Jul 27, 2015, 05:18 AM.
                An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                Comment


                  #9
                  WOW! I seemed to have opened a "good can of worms"!
                  I was looking up on the subject of efi after Qqmike's post, & was amazed to discover it was already on my system.
                  Here is what I discovered:
                  Code:
                  bumpy@Peterputer:~$ sudo efibootmgr
                  [sudo] password for bumpy: 
                  BootCurrent: 0000
                  Timeout: 1 seconds
                  BootOrder: 0000,0006,0002,0003,0005,0001,0004,0007
                  Boot0000* ubuntu
                  Boot0001* UEFI:CD/DVD Drive
                  Boot0002* Hard Drive 
                  Boot0003* CD/DVD Drive 
                  Boot0004* UEFI:Removable Device
                  Boot0005* Removable Drive 
                  Boot0006* ubuntu
                  Boot0007* UEFI:Network Device
                  bumpy@Peterputer:~$ sudo gdisk -l /dev/sda 
                  GPT fdisk (gdisk) version 0.8.8
                  
                  Partition table scan:
                    MBR: protective
                    BSD: not present
                    APM: not present
                    GPT: present
                  
                  Found valid GPT with protective MBR; using GPT.
                  Disk /dev/sda: 976773168 sectors, 465.8 GiB
                  Logical sector size: 512 bytes
                  Disk identifier (GUID): DE4FB145-976A-4978-BD40-3E454834A49B
                  Partition table holds up to 128 entries
                  First usable sector is 34, last usable sector is 976773134
                  Partitions will be aligned on 2048-sector boundaries
                  Total free space is 4077 sectors (2.0 MiB)
                  
                  Number  Start (sector)    End (sector)  Size       Code  Name
                     1            2048         1050623   512.0 MiB   8300  
                     2         1050624       962215935   458.3 GiB   8300  
                     3       962215936       976771071   6.9 GiB     8200
                  Code:
                  bumpy@Peterputer:~$ sudo apt-get install gdisk
                  Reading package lists... Done
                  Building dependency tree       
                  Reading state information... Done
                  gdisk is already the newest version.
                  bumpy@Peterputer:/usr/lib/grub$ dir
                  grub-mkconfig_lib x86_64-efi x86_64-efi-signed

                  This is a bit confusing to me, so will ask this simple question: Am I booting up in efi?

                  Comment


                    #10
                    Am I booting up in efi?
                    Yes, looks like it. You have a new computer, so it should be running in UEFI with a GPT (a newer type of partition table). In many ways, the newer way with UEFI is easier, cleaner, more accessible to the user than the older BIOS+MBR way.

                    To get more info about what is booting up, you can run
                    sudo efibootmgr -v
                    (with the -v option)

                    You have just one HDD, right?

                    What about the other things in the checklist, Post #8. I'm just curious about the first partition sda1.


                    >> Your /etc/fstab file should contain an EFI System Partition (mount point: /boot/efi, type EF00), maybe like this:
                    # /boot/efi was on /dev/sda1 during installation
                    UUID=74D7-02F2 /boot/efi vfat defaults 0 1

                    >> Open /boot/efi (which is the mount point for the ESP) and see your (U)EFI setup: /EFI/ubuntu and inside that folder, see some files like grubx64.efi, grub.cfg, etc.

                    >> Your Kubuntu should use the grub-efi bootloader (not grub-pc)
                    Check /usr/lib/grub -- do you see x86_64.efi[and maybe also -signed]?
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment


                      #11
                      Code:
                      bumpy@Peterputer:~$ sudo efibootmgr -v
                      [sudo] password for bumpy: 
                      BootCurrent: 0000
                      Timeout: 1 seconds
                      BootOrder: 0000,0006,0002,0003,0005,0001,0004,0007
                      Boot0000* ubuntu        HD(1,800,100000,add64ac5-2447-4731-8086-ae2a3f326378)File(\EFI\ubuntu\shimx64.efi)
                      Boot0001* UEFI:CD/DVD Drive     BIOS(81,0,00)
                      Boot0002* Hard Drive    BIOS(2,0,00)AMGOAMNO........o.W.D.C. .W.D.5.0.0.3.A.B.Y.X.-.0.1.W.E.R.A.1....................A...........................>..Gd-.;.A..MQ..L. . . . .W. .-.D.M.W.Y.A.3.P.1.3.7.9.3.8......AMBOAMNO........s.W.D. .E.x.t. .H.D.D. .1.0.2.1. .2.0.0.2....................A.......................F..Gd-.;.A..MQ..L.5.7.4.D.4.1.5.A.4.1.3.0.3.4.3.9.3.5.3.2.3.0.3.3......AMBO
                      Boot0003* CD/DVD Drive  BIOS(3,0,00)AMGOAMNO........o.H.P. .D.V.D. .W.r.i.t.e.r. .1.2.6.0.v....................A...........................>..Gd-.;.A..MQ..L.5.3.4.2.9.4. .5.0.2.2.6.4.4.0.5.1.2.6.8......AMBO
                      Boot0004* UEFI:Removable Device BIOS(82,0,00)
                      Boot0005* Removable Drive       BIOS(1,0,00)AMGOAMNO........W.H.P. .O.f.f.i.c.e.j.e.t. .P.r.o. .8.5.1...0.0....................A.......................*..Gd-.;.A..MQ..L.C.N.0.2.8.6.R.1.M.R......AMBO
                      Boot0006* ubuntu        HD(1,800,100000,add64ac5-2447-4731-8086-ae2a3f326378)File(\EFI\Ubuntu\grubx64.efi)
                      Boot0007* UEFI:Network Device   BIOS(83,0,00)
                      Code:
                      bumpy@Peterputer:/etc$ cat fstab
                      # /etc/fstab: static file system information.
                      #
                      # Use 'blkid' to print the universally unique identifier for a
                      # device; this may be used with UUID= as a more robust way to name devices
                      # that works even if disks are added and removed. See fstab(5).
                      #
                      # <file system> <mount point>   <type>  <options>       <dump>  <pass>
                      # / was on /dev/sda2 during installation
                      UUID=ade5baf1-7015-47f2-988a-c06e07bc2a66 /               ext4    errors=remount-ro 0       1
                      # /boot/efi was on /dev/sda1 during installation
                      UUID=A388-98E9  /boot/efi       vfat    defaults        0       1
                      # swap was on /dev/sda3 during installation
                      UUID=1f5388ca-884b-4458-a6b8-a52033482065 none            swap    sw              0       0
                      Code:
                      bumpy@Peterputer:/boot/efi/EFI/ubuntu$ dir
                      grub.cfg  grubx64.efi  MokManager.efi  shimx64.efi
                      bumpy@Peterputer:/boot/efi/EFI/ubuntu$ dir
                      grub.cfg  grubx64.efi  MokManager.efi  shimx64.efi
                      bumpy@Peterputer:/boot/efi/EFI/ubuntu$
                      
                      bumpy@Peterputer:/usr/lib/grub$ dir
                      grub-mkconfig_lib  x86_64-efi  x86_64-efi-signed

                      Comment


                        #12
                        Yep, looks good -- it's all there, as it should be for UEFI booting (and you also do have a GPT -- see your gdisk output, so that's a good thing). Your ESP is sda1, mounted at /boot/efi--that is "standard." You can also open Dolphin, click on root (on the left), then click boot, then efi, then EFI and see all your GRUB2-EFI boot files (that you listed in your output above at Konsole). The brave new world of UEFI ...

                        The only other thing I'll mention is rEFInd. It's a boot manager (as my how-to's indicate, with links). It can fit in here alongside GRUB. If you ever have a problem booting into your OS, rEFInd can get you in (almost always). And you can very easily also put it on a CD. If you do install it, it will be first on the BootOrder, and you can easily change that using efibootmgr (see man efibootmgr); right now, your Kubuntu is set first in BootOrder (that's the "ubuntu" entry -- K(U)buntu OSs go in the "ubuntu" folder). rEFInd is entirely optional. I use it because (1) it's fun, (2) it helps me learn more about this UEFI thing, and (3) I do a lot of booting experiments and it comes in handy when I get in a pickle.

                        Install rEFInd in your Kubuntu
                        https://www.kubuntuforums.net/showth...l=1#post372221

                        rEFInd on a CD
                        https://www.kubuntuforums.net/showth...l=1#post376838

                        Looks good. Good job.
                        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                        Comment

                        Working...
                        X