Announcement

Collapse
No announcement yet.

Boot problem

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

    Boot problem

    Long time now, Bionic Beaver running just fine, no problems at all.

    Then suddenly, I cannot boort without using the "Advanced" option.

    If I boot the normal way, I get (and I have to retranslate this from Norwegian, so bear with me ...

    Error: Did not find the file 4.15.0-58-generic
    Error: You have to read in the kernel first

    I am using the "Grub Customizer" utility to get the start priority (Dual boot with WIN10) as I want it.

    I heve tried (in Grub Customizer) to use the "install to MBR" option, ands the "Save" option. No change.

    So, while I can live with the "Advanced" option for booting - it is about the elegance and things working like they should do. Anyone can help me to sort this out?

    #2
    Well, do you have the file? What does it say if you type
    ls -l /boot
    ?

    And when you
    sudo update-grub
    ?

    P.S. The string to search for out there is: you need to load the kernel first.
    Last edited by Don B. Cilly; Aug 21, 2019, 11:43 PM.

    Comment


      #3
      Originally posted by Don B. Cilly View Post
      Well, do you have the file? What does it say if you type
      ls -l /boot
      ?

      And when you
      sudo update-grub
      ?

      P.S. The string to search for out there is: you need to load the kernel first.
      Thank you. It has been quite a while since I did serious booting things, so bear with me.

      The problem is that there is no vmlinuz-4.4.093 in /boot as below? So there is an kernel upgrade gone wrong?

      Then, what should I do?

      nils@xxxxxxx:~$ ls -l /boot
      totalt 190892
      -rw-r--r-- 1 root root 1246835 aug. 8 2017 abi-4.4.0-91-generic
      -rw-r--r-- 1 root root 217278 juli 2 18:41 config-4.15.0-55-generic
      -rw-r--r-- 1 root root 217254 aug. 6 12:45 config-4.15.0-58-generic
      -rw-r--r-- 1 root root 190356 aug. 8 2017 config-4.4.0-91-generic
      drwxr-xr-x 6 root root 4096 aug. 22 22:27 grub
      -rw-r--r-- 1 root root 56534029 aug. 8 00:02 initrd.img-4.15.0-55-generic
      -rw-r--r-- 1 root root 56573310 aug. 13 22:45 initrd.img-4.15.0-58-generic
      -rw-r--r-- 1 root root 44204499 juli 20 23:33 initrd.img-4.4.0-91-generic
      -rw-r--r-- 1 root root 182704 jan. 28 2016 memtest86+.bin
      -rw-r--r-- 1 root root 184380 jan. 28 2016 memtest86+.elf
      -rw-r--r-- 1 root root 184840 jan. 28 2016 memtest86+_multiboot.bin
      -rw------- 1 root root 4051807 juli 2 18:41 System.map-4.15.0-55-generic
      -rw------- 1 root root 4055363 aug.

      6 12:45 System.map-4.15.0-58-generic
      -rw------- 1 root root 3884798 aug. 8 2017 System.map-4.4.0-91-generic
      -rw------- 1 root root 8294136 juli 2 20:03 vmlinuz-4.15.0-55-generic
      -rw------- 1 root root 8302232 aug. 6 19:41 vmlinuz-4.15.0-58-generic
      -rw------- 1 root root 7097936 aug. 8 2017 vmlinuz-4.4.0-91-generic
      nils@xxxxxxx~$

      nils@xxxxxxx:~$ sudo update-grub
      [sudo] passord for nils:
      Sourcing file `/etc/default/grub'
      Lager grub-oppsettsfil …
      Fant linux-bilde: /boot/vmlinuz-4.15.0-58-generic
      Fant initrd-bilde: /boot/initrd.img-4.15.0-58-generic
      Fant linux-bilde: /boot/vmlinuz-4.15.0-55-generic
      Fant initrd-bilde: /boot/initrd.img-4.15.0-55-generic
      Fant linux-bilde: /boot/vmlinuz-4.4.0-91-generic
      Fant initrd-bilde: /boot/initrd.img-4.4.0-91-generic
      Fant Windows 10 på /dev/sda1
      Found memtest86+ image: /boot/memtest86+.elf
      Found memtest86+ image: /boot/memtest86+.bin
      Fant Windows 10 på /dev/sda1
      Fant linux-bilde: /boot/vmlinuz-4.15.0-58-generic
      Fant initrd-bilde: /boot/initrd.img-4.15.0-58-generic
      Fant linux-bilde: /boot/vmlinuz-4.15.0-55-generic
      Fant initrd-bilde: /boot/initrd.img-4.15.0-55-generic
      Fant linux-bilde: /boot/vmlinuz-4.4.0-91-generic
      Fant initrd-bilde: /boot/initrd.img-4.4.0-91-generic
      Found memtest86+ image: /boot/memtest86+.elf
      Found memtest86+ image: /boot/memtest86+.bin
      ferdig
      nils@xxxxxx~$

      Comment


        #4
        Oh, I don't know.
        It complains about not finding 4.15.0-58-generic, but update-grub finds it.
        Try
        sudo apt autoremove
        Then re-update-grub and reboot...

        Thing is, I hate grub.
        So someone else will probably have a better solution, but...
        ...me personally, I get to that point, I install rEFInd and forget grub problems

        Comment


          #5
          If you still have to use the advanced menu, which line is the one that works, and what does that line say?
          What does the line in the main section say?

          Actually, it woulds be eaier to see which kernel you are actually booted to:
          $ uname -r
          The 4.4.0 kernel is a holdover from the upgrade from 16.04 Xenial, and I wonder if somehow you have been booting to that, and is now broken as the vmlinuz-4.4.0 file being missing, as you noted.

          Comment


            #6
            Originally posted by Don B. Cilly View Post
            ]Oh, I don't know.
            It complains about not finding 4.15.0-58-generic, but update-grub finds it.
            Try
            sudo apt autoremove
            Then re-update-grub and reboot...
            Well, that's what started the problem ...

            Comment


              #7
              Originally posted by claydoh View Post
              If you still have to use the advanced menu, which line is the one that works, and what does that line say?
              What does the line in the main section say?

              Actually, it woulds be eaier to see which kernel you are actually booted to:
              $ uname -r
              The 4.4.0 kernel is a holdover from the upgrade from 16.04 Xenial, and I wonder if somehow you have been booting to that, and is now broken as the vmlinuz-4.4.0 file being missing, as you noted.
              nils@********:~$ uname -r
              4.15.0-58-generic
              nils@********:~$

              The menu (As it is seen in Grub Customizer, translaged back to English by me):

              Windows 10 (loader) (on /dev/sda1)
              menuentry / script: as-prober / default name: Windows 10 (on /dev/sda1)

              Kubuntu
              menuentry /script: custom

              Advanced options for Ubuntu
              submenu

              Ubuntu, with Linux 4.15.0.58-generic
              menuentry /script: linux

              Ubuntu, with Linux 4.15.0.58-generic (recovery mode)
              menuentry /script: linux

              (And then the same for 4.15.0.55 and 4.4.0.91, ending with the Memory test options)

              Comment

              Working...
              X