Ошибка you need to load the kernel first


0

1

Вечер добрый, друзья. С этой ошибкой столкнулся 3 дня назад. Все эти 3 дня подряд я не могу ничего поставить/переустановить. Кругом
либо сразу же пишет grub error: you need to load kernel first, либо то, что на скрине, после чего установка не продолжается, если нажать Yes. Изначально поставил себе убунту 20.04, вместо винды, и всё поставилось с первого раза и без приключений, то есть я записал образ через balenaEtcher, вставил флешку в комп и всё заработало, а через какое-то время решил поставить себе какой-нибудь другой дистрибутив и понеслось… Такое ощущение, что мне будто бы подменили компьютер. Пробовал ставить Debian, ParrotOS (home и security), Ubuntu 20.10, Mint. Даже арч пробовал по совету друга, но и там меня ждала эта беда! Делал через dd, Rufus, Unetbootin, win32diskimager, убунтовский Startup Disk Creator но всё безуспешно!(
Я на 100% уверен, что дело даже не во флешке, потому что до этого я ставил себе через неё же на другой компьютер винду и ElementaryOS. Никаких проблем не было, но тут как-то всё идёт против меня. На компьютере у меня стоит VisualBIOS 2.2.17. Ниже прикреплю некоторые скриншоты из него тут

I installed the latest Ubuntu «20.04 LTS» on my machine, the installation was successfully and without any error.
The problem is that after the installation when the system starts, during the boot I get this error message «You need to load the kernel first» after the grub.
This error message seems to appear randomically, more often when I do a reboot using sudo reboot now or halt --reboot or rebooting via GUI and when the system is shutted down and I start it normally pressing the power button. Other times the system boots normally and the OS is ok, I can use it and there are no issue.

  • Tried different times reinstalling the OS re-downloading the ubuntu image and using different tools in order to create the botable key (rufus, dd, balena etcher, ubuntu disk creator).
  • Tried to reinstall the system using no network and disabling thirdy part additional components.

I’m on a Dell Inspiron and secure boot is disabled and the system is not a dual boot, there’s only one ssd with a single instance of Ubuntu installed on it.


uname -a

Linux machine 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lshw

============================================================
                                  system         Inspiron 5593 (097C)
/0                                bus            09PY2G
/0/1                              memory         1MiB BIOS
/0/400                            processor      Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
/0/400/701                        memory         128KiB L1 cache
/0/400/702                        memory         2MiB L2 cache
/0/400/703                        memory         8MiB L3 cache
/0/700                            memory         192KiB L1 cache
/0/1000                           memory         16GiB System Memory
/0/1000/0                         memory         8GiB SODIMM DDR4 Synchronous 2667 MHz (0,4 ns)
/0/1000/1                         memory         8GiB SODIMM DDR4 Synchronous 2400 MHz (0,4 ns)
/0/100                            bridge         Intel Corporation
/0/100/2                          display        Iris Plus Graphics G7
/0/100/4                          generic        Intel Corporation
/0/100/14                         bus            Ice Lake-LP USB 3.1 xHCI Host Controller
/0/100/14/0      usb1             bus            xHCI Host Controller
/0/100/14/0/1                     bus            SMC9514 Hub
/0/100/14/0/1/1                   generic        LAN9514
/0/100/14/0/1/4                   input          Trust Keyboard
/0/100/14/0/1/5                   input          USB Optical Mouse
/0/100/14/0/5                     generic        FingerPrint
/0/100/14/0/6                     multimedia     Integrated_Webcam_HD
/0/100/14/0/a                     communication  Bluetooth wireless interface
/0/100/14/1      usb2             bus            xHCI Host Controller
/0/100/14.2                       memory         RAM memory
/0/100/15                         bus            Ice Lake-LP Serial IO I2C Controller #0
/0/100/15.1                       bus            Ice Lake-LP Serial IO I2C Controller #1
/0/100/16                         communication  Management Engine Interface
/0/100/17                         storage        Ice Lake-LP SATA Controller [AHCI mode]
/0/100/19                         bus            Ice Lake-LP Serial IO I2c Controller #4
/0/100/1c                         bridge         Ice Lake-LP PCI Express Root Port #5
/0/100/1c/0                       display        GP108M [GeForce MX230]
/0/100/1d                         bridge         Ice Lake-LP PCI Express Root Port #9
/0/100/1d/0      enp2s0           network        RTL810xE PCI Express Fast Ethernet controller
/0/100/1d.1                       bridge         Intel Corporation
/0/100/1d.1/0    wlp3s0           network        QCA9377 802.11ac Wireless Network Adapter
/0/100/1d.4                       bridge         Intel Corporation
/0/100/1d.4/0                     storage        SK hynix
/0/100/1f                         bridge         Ice Lake-LP LPC Controller
/0/100/1f.3                       multimedia     Smart Sound Technology Audio Controller
/0/100/1f.4                       bus            Ice Lake-LP SMBus Controller
/0/100/1f.5                       bus            Ice Lake-LP SPI Controller
/0/0                              system         PnP device PNP0c02
/0/2                              system         PnP device PNP0b00
/0/3                              generic        PnP device INT3f0d
/0/4                              input          PnP device PNP0303
/0/5                              generic        PnP device DLL097c
/0/6                              system         PnP device PNP0c02
/0/7                              system         PnP device PNP0c02
/0/8                              system         PnP device PNP0c02
/0/9                              system         PnP device PNP0c02
/1                                power          DELL 1VX1H99
/2                                power          To Be Filled by O.E.M.
/3               enx00800fb03770  network        Ethernet interface

lsblk

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1     259:0    0   477G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
└─nvme0n1p2 259:2    0 476,4G  0 part /

Tell me if you need other infos about the OS or the HW.


EDIT
If someone is still interested I still want to share info about this.
I didn’t found a way to fix the error so I tried to reinstall the OS being sure of using UEFI mode, I followed the official guide by dell, but after the installation process the error was still present. The only way I found to fix the error is entering the BIOS and selecting my nvme as first boot option, disabling the entry relative to ubuntu. Don’t ask ehy, I don’t know, but now I’m using the system without troubles for months.

  • Печать

Страницы: [1]   Вниз

Тема: you need to load the kernel first  (Прочитано 4314 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Kalvin_Clein

Пытался установить elementary os, а потом и ubuntu 18.04. Но возникла одна и та же ошибка при установке. Ноутбук выводит error: you need to load the kernel first.
Ноутбук: Asus x556uq
Intel Core i3 6100 2.30GHz
geforce 940mx
6G ОЗУ
Windows 10

На компьютере стоит Linux Mint 19.1 и тут тоже какие проблемы с установкой  :idiot2:.
Если кто-нибудь сталкивался с такой проблемой, прошу вашей помощи.


Оффлайн
andytux

you need to load the kernel first

Собственно все сказано, сначала загрузите ядро, потом что-то требуйте.
Похоже, что загрузчик не может найти ядро.

ошибка при установке.

При установке? Или при попытке загрузки установленной системы?


Оффлайн
Kalvin_Clein

you need to load the kernel first

Собственно все сказано, сначала загрузите ядро, потом что-то требуйте.
Похоже, что загрузчик не может найти ядро.

ошибка при установке.

При установке? Или при попытке загрузки установленной системы?

Я бы это назвал при попытке установки.
Хорошо, натыкался уже на сообщения что связано с ядром. Но теперь вполне логичный вопрос: «Как решить эту проблемы?»


Оффлайн
andytux

Я бы это назвал при попытке установки

Т.е. при загрузке с установочного образа в меню выбираете «Try Ubuntu…». После этого появляется названная ошибка.


Оффлайн
Kalvin_Clein

Я бы это назвал при попытке установки

Т.е. при загрузке с установочного образа в меню выбираете «Try Ubuntu…». После этого появляется названная ошибка.

Неважно что выбираю: «Try ubuntu without installing»  или «instal ubuntu». Вообщем все действия приводят к этой ошибке.


Оффлайн
andytux

Устанавливаете с флешки?  Или имеющимя грубом запускаете установку из исо-образа.


Оффлайн
Kalvin_Clein

Устанавливаете с флешки?  Или имеющимя грубом запускаете установку из исо-образа.

С флешки.


Оффлайн
andytux

С флешки.

Тогда выходит, что неправильно сделана флешка.
У тебя есть установленная, запускающаяся *бунту. Если есть, то настроить загрузку из исо-образа и попробовать загрузить.


Оффлайн
Kalvin_Clein

С флешки.

Тогда выходит, что неправильно сделана флешка.
У тебя есть установленная, запускающаяся *бунту. Если есть, то настроить загрузку из исо-образа и попробовать загрузить.

Я делал образ и с Rufus’а, UltraIso. Несколько раз, по-разному. Все одинаково.


Оффлайн
andytux

Никогда не пользовался руфусами-унетботинами. Давным-давно, когда этих программ еще в помине не было, один раз делал флешку  программой, встроенной в Ubuntu.
С тех пор… Загрузочная флешка — это флешка, на которой установлен загрузчик. Все остальное только мешает.
В принципе, можно установить Ubuntu, имея одно устройство.


Оффлайн
johnyx

На компьютере стоит Linux Mint 19.1

вот это упустили из виду.  граб требует именно для него ядро точней даже версию его пишет какое нужно поставить для работаспособности.
сталкивался уже с этим

выход один поставить это ядро)

Собственно все сказано, сначала загрузите ядро, потом что-то требуйте.

вот вам тоже верно написали если оно есть его нужно запустить,прописать на запуск

« Последнее редактирование: 22 Мая 2019, 22:51:41 от johnyx »

Kubuntu 18.04.2. kdeNeon 5.15.2. Ubuntu 18.04.2 server webmin vps. 3xWindows 10. (android 7.1.2 miui10 global 9.2.28)  (android 4.2.2) (samsung p3100 Lineage os)


  • Печать

Страницы: [1]   Вверх

Encountered the same error on a workstation with bootable partitions on both of two fixed disks (/dev/sda, /dev/sdb); couldn’t find a solution here or elsewhere. Describing my own fix here, as found by trial and error:

Upon

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

the GRUB boot menu showed all operating systems installed in various partitions on /dev/sda and /dev/sdb (Windows, SuSE 15.3 and earlier). Booting entries from /dev/sda worked fine, choosing one from /dev/sdb gave the error

you need to load the kernel first…

/boot/grub2/grub.cfg showed the two hard disks as «hd0» and «hd1«. F2 at startup shows these entries in BIOS (old machine, no EFI):

Main:

   SATA Port 0  [ST3500413AS]-(S0)]
   SATA Port 1  [Optiarc DVD RW-(S1)]
   SATA Port 2  None
   SATA Port 3  [ST3500413AS]-(S3)]
   SATA Port 4  None
   SATA Port 5  None

Boot -> Boot priority order:

    1:      SATA CD: Optiarc DVD RW-(S1)
    2:      Bootable Add-in Cards
    3:      SATA 0:  ST3500413AS-(S0)
    4:      SATA 3:  ST3500413AS-(S3)

I’m wondering whether the empty SATA Port 2 is causing the problem?

My fix has been to manually edit /boot/grub2/grub.cfg (egad, explicitly discouraged in file header!) and to replace all instances of «hd1» by «hd2«. Then again:

grub2-install /dev/sda


GRUB’s boot menu is the same as before, but booting works for all entries now, including those on /dev/sdb.

I installed the latest Ubuntu «20.04 LTS» on my machine, the installation was successfully and without any error.
The problem is that after the installation when the system starts, during the boot I get this error message «You need to load the kernel first» after the grub.
This error message seems to appear randomically, more often when I do a reboot using sudo reboot now or halt --reboot or rebooting via GUI and when the system is shutted down and I start it normally pressing the power button. Other times the system boots normally and the OS is ok, I can use it and there are no issue.

  • Tried different times reinstalling the OS re-downloading the ubuntu image and using different tools in order to create the botable key (rufus, dd, balena etcher, ubuntu disk creator).
  • Tried to reinstall the system using no network and disabling thirdy part additional components.

I’m on a Dell Inspiron and secure boot is disabled and the system is not a dual boot, there’s only one ssd with a single instance of Ubuntu installed on it.


uname -a

Linux machine 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lshw

============================================================
                                  system         Inspiron 5593 (097C)
/0                                bus            09PY2G
/0/1                              memory         1MiB BIOS
/0/400                            processor      Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
/0/400/701                        memory         128KiB L1 cache
/0/400/702                        memory         2MiB L2 cache
/0/400/703                        memory         8MiB L3 cache
/0/700                            memory         192KiB L1 cache
/0/1000                           memory         16GiB System Memory
/0/1000/0                         memory         8GiB SODIMM DDR4 Synchronous 2667 MHz (0,4 ns)
/0/1000/1                         memory         8GiB SODIMM DDR4 Synchronous 2400 MHz (0,4 ns)
/0/100                            bridge         Intel Corporation
/0/100/2                          display        Iris Plus Graphics G7
/0/100/4                          generic        Intel Corporation
/0/100/14                         bus            Ice Lake-LP USB 3.1 xHCI Host Controller
/0/100/14/0      usb1             bus            xHCI Host Controller
/0/100/14/0/1                     bus            SMC9514 Hub
/0/100/14/0/1/1                   generic        LAN9514
/0/100/14/0/1/4                   input          Trust Keyboard
/0/100/14/0/1/5                   input          USB Optical Mouse
/0/100/14/0/5                     generic        FingerPrint
/0/100/14/0/6                     multimedia     Integrated_Webcam_HD
/0/100/14/0/a                     communication  Bluetooth wireless interface
/0/100/14/1      usb2             bus            xHCI Host Controller
/0/100/14.2                       memory         RAM memory
/0/100/15                         bus            Ice Lake-LP Serial IO I2C Controller #0
/0/100/15.1                       bus            Ice Lake-LP Serial IO I2C Controller #1
/0/100/16                         communication  Management Engine Interface
/0/100/17                         storage        Ice Lake-LP SATA Controller [AHCI mode]
/0/100/19                         bus            Ice Lake-LP Serial IO I2c Controller #4
/0/100/1c                         bridge         Ice Lake-LP PCI Express Root Port #5
/0/100/1c/0                       display        GP108M [GeForce MX230]
/0/100/1d                         bridge         Ice Lake-LP PCI Express Root Port #9
/0/100/1d/0      enp2s0           network        RTL810xE PCI Express Fast Ethernet controller
/0/100/1d.1                       bridge         Intel Corporation
/0/100/1d.1/0    wlp3s0           network        QCA9377 802.11ac Wireless Network Adapter
/0/100/1d.4                       bridge         Intel Corporation
/0/100/1d.4/0                     storage        SK hynix
/0/100/1f                         bridge         Ice Lake-LP LPC Controller
/0/100/1f.3                       multimedia     Smart Sound Technology Audio Controller
/0/100/1f.4                       bus            Ice Lake-LP SMBus Controller
/0/100/1f.5                       bus            Ice Lake-LP SPI Controller
/0/0                              system         PnP device PNP0c02
/0/2                              system         PnP device PNP0b00
/0/3                              generic        PnP device INT3f0d
/0/4                              input          PnP device PNP0303
/0/5                              generic        PnP device DLL097c
/0/6                              system         PnP device PNP0c02
/0/7                              system         PnP device PNP0c02
/0/8                              system         PnP device PNP0c02
/0/9                              system         PnP device PNP0c02
/1                                power          DELL 1VX1H99
/2                                power          To Be Filled by O.E.M.
/3               enx00800fb03770  network        Ethernet interface

lsblk

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1     259:0    0   477G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
└─nvme0n1p2 259:2    0 476,4G  0 part /

Tell me if you need other infos about the OS or the HW.


EDIT
If someone is still interested I still want to share info about this.
I didn’t found a way to fix the error so I tried to reinstall the OS being sure of using UEFI mode, I followed the official guide by dell, but after the installation process the error was still present. The only way I found to fix the error is entering the BIOS and selecting my nvme as first boot option, disabling the entry relative to ubuntu. Don’t ask ehy, I don’t know, but now I’m using the system without troubles for months.

Encountered the same error on a workstation with bootable partitions on both of two fixed disks (/dev/sda, /dev/sdb); couldn’t find a solution here or elsewhere. Describing my own fix here, as found by trial and error:

Upon

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

the GRUB boot menu showed all operating systems installed in various partitions on /dev/sda and /dev/sdb (Windows, SuSE 15.3 and earlier). Booting entries from /dev/sda worked fine, choosing one from /dev/sdb gave the error

you need to load the kernel first…

/boot/grub2/grub.cfg showed the two hard disks as «hd0» and «hd1«. F2 at startup shows these entries in BIOS (old machine, no EFI):

Main:

   SATA Port 0  [ST3500413AS]-(S0)]
   SATA Port 1  [Optiarc DVD RW-(S1)]
   SATA Port 2  None
   SATA Port 3  [ST3500413AS]-(S3)]
   SATA Port 4  None
   SATA Port 5  None

Boot -> Boot priority order:

    1:      SATA CD: Optiarc DVD RW-(S1)
    2:      Bootable Add-in Cards
    3:      SATA 0:  ST3500413AS-(S0)
    4:      SATA 3:  ST3500413AS-(S3)

I’m wondering whether the empty SATA Port 2 is causing the problem?

My fix has been to manually edit /boot/grub2/grub.cfg (egad, explicitly discouraged in file header!) and to replace all instances of «hd1» by «hd2«. Then again:

grub2-install /dev/sda


GRUB’s boot menu is the same as before, but booting works for all entries now, including those on /dev/sdb.

  • Печать

Страницы: [1]   Вниз

Тема: you need to load the kernel first  (Прочитано 3710 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Kalvin_Clein

Пытался установить elementary os, а потом и ubuntu 18.04. Но возникла одна и та же ошибка при установке. Ноутбук выводит error: you need to load the kernel first.
Ноутбук: Asus x556uq
Intel Core i3 6100 2.30GHz
geforce 940mx
6G ОЗУ
Windows 10

На компьютере стоит Linux Mint 19.1 и тут тоже какие проблемы с установкой  :idiot2:.
Если кто-нибудь сталкивался с такой проблемой, прошу вашей помощи.


Оффлайн
andytux

you need to load the kernel first

Собственно все сказано, сначала загрузите ядро, потом что-то требуйте.
Похоже, что загрузчик не может найти ядро.

ошибка при установке.

При установке? Или при попытке загрузки установленной системы?


Оффлайн
Kalvin_Clein

you need to load the kernel first

Собственно все сказано, сначала загрузите ядро, потом что-то требуйте.
Похоже, что загрузчик не может найти ядро.

ошибка при установке.

При установке? Или при попытке загрузки установленной системы?

Я бы это назвал при попытке установки.
Хорошо, натыкался уже на сообщения что связано с ядром. Но теперь вполне логичный вопрос: «Как решить эту проблемы?»


Оффлайн
andytux

Я бы это назвал при попытке установки

Т.е. при загрузке с установочного образа в меню выбираете «Try Ubuntu…». После этого появляется названная ошибка.


Оффлайн
Kalvin_Clein

Я бы это назвал при попытке установки

Т.е. при загрузке с установочного образа в меню выбираете «Try Ubuntu…». После этого появляется названная ошибка.

Неважно что выбираю: «Try ubuntu without installing»  или «instal ubuntu». Вообщем все действия приводят к этой ошибке.


Оффлайн
andytux

Устанавливаете с флешки?  Или имеющимя грубом запускаете установку из исо-образа.


Оффлайн
Kalvin_Clein

Устанавливаете с флешки?  Или имеющимя грубом запускаете установку из исо-образа.

С флешки.


Оффлайн
andytux

С флешки.

Тогда выходит, что неправильно сделана флешка.
У тебя есть установленная, запускающаяся *бунту. Если есть, то настроить загрузку из исо-образа и попробовать загрузить.


Оффлайн
Kalvin_Clein

С флешки.

Тогда выходит, что неправильно сделана флешка.
У тебя есть установленная, запускающаяся *бунту. Если есть, то настроить загрузку из исо-образа и попробовать загрузить.

Я делал образ и с Rufus’а, UltraIso. Несколько раз, по-разному. Все одинаково.


Оффлайн
andytux

Никогда не пользовался руфусами-унетботинами. Давным-давно, когда этих программ еще в помине не было, один раз делал флешку  программой, встроенной в Ubuntu.
С тех пор… Загрузочная флешка — это флешка, на которой установлен загрузчик. Все остальное только мешает.
В принципе, можно установить Ubuntu, имея одно устройство.


Оффлайн
johnyx

На компьютере стоит Linux Mint 19.1

вот это упустили из виду.  граб требует именно для него ядро точней даже версию его пишет какое нужно поставить для работаспособности.
сталкивался уже с этим

выход один поставить это ядро)

Собственно все сказано, сначала загрузите ядро, потом что-то требуйте.

вот вам тоже верно написали если оно есть его нужно запустить,прописать на запуск

« Последнее редактирование: 22 Мая 2019, 22:51:41 от johnyx »

Kubuntu 18.04.2. kdeNeon 5.15.2. Ubuntu 18.04.2 server webmin vps. 3xWindows 10. (android 7.1.2 miui10 global 9.2.28)  (android 4.2.2) (samsung p3100 Lineage os)


  • Печать

Страницы: [1]   Вверх

#1 2018-07-17 13:53:15

quirico
Member
Registered: 2018-07-17
Posts: 12

[SOLVED] Error: you need to load the kernel first

https://s22.postimg.cc/6bber66pr/IMG_20 … 112812.jpg
This omnious screen showed up after I performed a major Windows 10 upgrade(I dual boot Windows and Arch Linux on the same drive), but I’m not sure if it was the cause. Unfortunately the system is in Italian, so I’m not sure what the error text is like in English, but it should be something like

Loading Linux linux
Error: premature end of file /vmlinuz-linux.
Loading initial ramdisk
Error: you need to load the kernel first
Press a key to continue

I can access GRUB and boot into Windows just fine, however trying to boot with the fallback kernel still gets me to the same error screen. I don’t know how to fix it, can I even recover this system?

— Mod note: Converted oversized image to URL, please follow the CoC on image sizes — V1del

Last edited by quirico (2018-07-20 20:18:14)

#2 2018-07-17 14:07:27

seth
Member
Registered: 2012-09-03
Posts: 34,987

Re: [SOLVED] Error: you need to load the kernel first

Boot a live system (the install iso will do) and inspect the boot partition. You’re probably short on space and windows created some BOFH style…
Chroot into the installed system, ensure to mount the boot partition and re-install linux, see https://wiki.archlinux.org/index.php/Pa … _rebooting

Of course, you may have to free some space on the boot partition first.

#4 2018-07-17 14:43:13

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

seth wrote:

Boot a live system (the install iso will do) and inspect the boot partition. You’re probably short on space and windows created some BOFH style…
Chroot into the installed system, ensure to mount the boot partition and re-install linux, see https://wiki.archlinux.org/index.php/Pa … _rebooting

Of course, you may have to free some space on the boot partition first.

How do I safely free up space in /boot?

#5 2018-07-17 15:05:29

seth
Member
Registered: 2012-09-03
Posts: 34,987

Re: [SOLVED] Error: you need to load the kernel first

Depends on whether there’re disposable files. Backups or i18n related files are good candidates.
However, first ensure that it’s really a space issue and also be prepared that windows might keep dumping stuff there. If this ends up being a permanent issue, you’ll have to grow the partition (what’s gonna be PITA because of it’s position) or move the linux boot to another partition.

Is this an EFI or a BIOS boot?

#6 2018-07-17 19:58:15

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

seth wrote:

Depends on whether there’re disposable files. Backups or i18n related files are good candidates.
However, first ensure that it’s really a space issue and also be prepared that windows might keep dumping stuff there. If this ends up being a permanent issue, you’ll have to grow the partition (what’s gonna be PITA because of it’s position) or move the linux boot to another partition.

Is this an EFI or a BIOS boot?

It is an EFI boot. I’ll get to work tomorrow.

#7 2018-07-19 10:00:49

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

OK I’m in the installation CD right now, how do I check the remaining free space? The output of df -h doesn’t show me the partitions in my hard drive.

#8 2018-07-19 10:50:20

radiomike
Member
Registered: 2013-12-19
Posts: 65

Re: [SOLVED] Error: you need to load the kernel first

Have you mounted the boot partition?

#9 2018-07-19 13:46:09

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

radiomike wrote:

Have you mounted the boot partition?

I did, still not showing up. But root partition shows up just fine.
EDIT: running df -h -a shows https://s22.postimg.cc/n4dk6hlb5/IMG_20 … 155010.jpg which I have no idea of what to make out of.

Last edited by quirico (2018-07-19 13:53:40)

#10 2018-07-19 14:13:58

seth
Member
Registered: 2012-09-03
Posts: 34,987

Re: [SOLVED] Error: you need to load the kernel first

You mounted sda1 and sda4 both into /mnt …

Please do not paste pictures of text — paste the text.

#11 2018-07-19 14:52:46

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

seth wrote:

Boot a live system (the install iso will do) and inspect the boot partition. You’re probably short on space and windows created some BOFH style…
Chroot into the installed system, ensure to mount the boot partition and re-install linux, see https://wiki.archlinux.org/index.php/Pa … _rebooting

Of course, you may have to free some space on the boot partition first.

I’m back to square one. First off, I actually managed to ensure it is not a space issue, somehow I got df to show the right output. Then I followed the instructions in the wiki word for word, and managed to perform a full update with pacman, with a seemingly successful rebuild of the Linux kernel. However upon reboot nothing seemed to chance. While pacman was doing its thing I glanced at a message saying «/boot is not mounted», maybe I messed up something in the process. I’d really appreciate a step to step guide right now…

#12 2018-07-19 14:58:05

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

seth wrote:

You mounted sda1 and sda4 both into /mnt …

Please do not paste pictures of text — paste the text.

I am afraid something went over my head… am I not supposed to do it that way?… Sorry if it is incredibly stupid but it is probably the frustration and confusion getting the best of me, I suck at staying concentrated when troubleshooting big_smile

#13 2018-07-19 15:10:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,996

Re: [SOLVED] Error: you need to load the kernel first

quirico wrote:

seth wrote:

You mounted sda1 and sda4 both into /mnt …

Please do not paste pictures of text — paste the text.

I am afraid something went over my head… am I not supposed to do it that way?… Sorry if it is incredibly stupid but it is probably the frustration and confusion getting the best of me, I suck at staying concentrated when troubleshooting big_smile

You want to mount the root partition on /mnt.  Then, inside of that partition (/mnt) there is to be a directory called /boot.  Initially, you create that.  You use that directory /mnt/boot to mount your boot partition.
Then you perform the installation.  Then you unmount /mnt/boot, then /mnt.  You set your bootloader to tell the kernel to use the root partition.  You should have (during the installation) built your /etc/fstab file to mount the boot partition on /boot.  If you have not done that already, do it now.

Last edited by ewaller (2018-07-19 15:12:28)


Nothing is too wonderful to be true, if it be consistent with the laws of nature — Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. — Alan Turing

How to Ask Questions the Smart Way

#14 2018-07-19 15:25:28

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

ewaller wrote:

You set your bootloader to tell the kernel to use the root partition.  You should have (during the installation) built your /etc/fstab file to mount the boot partition on /boot.  If you have not done that already, do it now.

This is something that is all done during installation and doesn’t need to be redone now, right? If so, I have already done that obviously, as I had a fully working Arch install for over a year prior to this happening.

#15 2018-07-19 15:35:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,996

Re: [SOLVED] Error: you need to load the kernel first

Is your system booted now?  What is the output of the mount command?  Post the full text; not a photo.


Nothing is too wonderful to be true, if it be consistent with the laws of nature — Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. — Alan Turing

How to Ask Questions the Smart Way

#16 2018-07-20 18:47:03

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

ewaller wrote:

Is your system booted now?  What is the output of the mount command?  Post the full text; not a photo.

# mount
/dev/sda4 on /mnt type ext4 (rw,realtime)
/dev/sda1 on /mnt/boot type vfat (rw,realtime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

This means I’m good to go, right?

#17 2018-07-20 19:09:28

loqs
Member
Registered: 2014-03-06
Posts: 15,623

Re: [SOLVED] Error: you need to load the kernel first

Now you can post `df -h /mnt/boot`

#18 2018-07-20 19:40:16

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

loqs wrote:

Now you can post `df -h /mnt/boot`

Size 256M, Used 80M, Use% 32%. Most likely not a full partition issue. While I am at it might as well post some pacman errors that I got while trying to reinstall mkinitcpio, linux and systemd yesterday, with the boot partition not mounted properly

[ALMP] upgraded linux (4.17.3-1 -> 4.17.6-1)
[ALPM-SCRIPTLET] WARNING: /boot appears to be a separate partition but is not mounted.
[ALPM] running 'systemd-binfmt.hook'...
[ALPM-SCRIPTLET] Skipped: Current root is not booted.
[ALPM] running 'systemd-daemon-reload.hook'...
[ALPM-SCRIPTLET] Skipped: Current root is not booted.
[ALPM] running 'systemd-sysctl.hook'...
[ALPM-SCRIPTLET] Skipped: Current root is not booted.
[ALPM] running 'systemd-udev-reload.hook'...
[ALPM-SCRIPTLET] Skipped: Device manager is not running.

I understand the linux error but not the systemd errors, what do they mean?

#19 2018-07-20 19:44:03

seth
Member
Registered: 2012-09-03
Posts: 34,987

Re: [SOLVED] Error: you need to load the kernel first

That you’re running  «pacman —sysroot» — the critical one is about the unmounted boot partition, so re-install the kernel again (w/ the now mounted /boot partition)

#20 2018-07-20 19:45:16

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

seth wrote:

That you’re running  «pacman —sysroot» — the critical one is about the unmounted boot partition, so re-install the kernel again (w/ the now mounted /boot partition)

So if I understand correctly, the systemd errors are inconsequential, right?

#21 2018-07-20 19:48:34

seth
Member
Registered: 2012-09-03
Posts: 34,987

Re: [SOLVED] Error: you need to load the kernel first

Those are no «errors», not even «warnings» — you’re merely informed that certain steps are not executed because it would be ill-advised in this context.

#22 2018-07-20 20:17:42

quirico
Member
Registered: 2018-07-17
Posts: 12

Re: [SOLVED] Error: you need to load the kernel first

Fixed it, finally. To summarize the steps I followed
>booted into LiveCD
>mounted the root and boot partitions, properly.
>reinstalled mkinitcpio, linux and systemd
>rebooted
Now the system is running fine again, as if nothing happened big_smile . In hindsight it was pretty easy but that’s noob mistakes for you… big_smile

У меня есть Lubuntu 11.10, установленный на /dev/sda3, и Xubuntu 11.10 на /dev/sda5. Некоторое время назад, находясь на Lubuntu, я ошибся где-то в создании Live USB: по ошибке я установил загрузчик Live USB в /dev/sda3. Это не привело к какой-либо проблеме в то время.

Сегодня я обновил ядро. Мне пришлось перезапустить Lubuntu. В Grub Lubuntu вдруг больше не появлялся, и я автоматически загружался в Xubuntu. Я попытался запустить update-grub и попытался использовать grub-customizer, чтобы вернуть Lubuntu в Grub, но это не сработало. Я побежал os-prober, но он не показывает мне Lubuntu.

Затем я попытался добавить новую запись в /etc/grub.d/ в /dev/sda5, названную 12_lubuntu. Он содержал следующее:

#!/bin/sh -e
echo "Lubuntu"
cat << EOF
menuentry "Lubuntu" {
set root=(hd0,3)
linux /boot/vmlinuz
initrd /boot/initrd.img
}
EOF

После этого я побежал update-grub и с grub-customizer, я написал Grub-конфигурацию для MBR, то есть: /dev/sda.

Внезапно Лубунту появился в Грабе. Я попытался запустить его, но при этом появились следующие сообщения:

Error: File not found
Error: You need to load the kernel first

Выход ls -all в /dev/sda3 выглядит следующим образом:

gijs@Gijs-PC:/media/9c715f68-f083-46ab-9d55-6139556f31d4$ ls -all
totaal 112
drwxr-xr-x  23 root root  4096 2011-11-25 23:35 .
drwxr-xr-x   5 root root  4096 2011-11-26 10:55 ..
drwxr-xr-x   2 root root  4096 2011-11-22 22:17 bin
drwxr-xr-x   4 root root  4096 2011-11-25 23:36 boot
drwxr-xr-x   2 root root  4096 2011-10-15 21:58 cdrom
drwxr-xr-x   5 root root  4096 2011-10-12 18:08 dev
drwxr-xr-x 146 root root 12288 2011-11-25 23:37 etc
drwxr-xr-x   3 root root  4096 2011-10-15 21:59 home
lrwxrwxrwx   1 root root    37 2011-11-25 23:35 initrd.img -> /boot/initrd.img-3.0.0-14-generic-pae
lrwxrwxrwx   1 root root    33 2011-11-25 23:35 initrd.img.old -> /boot/initrd.img-3.0.0-14-generic
drwxr-xr-x  19 root root  4096 2011-11-22 22:17 lib
drwx------   2 root root 16384 2011-10-15 21:56 lost+found
drwxr-xr-x   5 root root  4096 2011-11-24 20:59 media
drwxr-xr-x   2 root root  4096 2011-10-09 09:29 mnt
drwxr-xr-x   4 root root  4096 2011-11-24 17:15 opt
drwxr-xr-x   2 root root  4096 2011-10-09 09:29 proc
drwx------  13 root root  4096 2011-11-22 17:19 root
drwxr-xr-x   5 root root  4096 2011-10-15 22:01 run
drwxr-xr-x   2 root root  4096 2011-11-22 22:17 sbin
drwxr-xr-x   2 root root  4096 2011-06-21 20:43 selinux
drwxr-xr-x   2 root root  4096 2011-10-12 18:06 srv
drwxr-xr-x   2 root root  4096 2011-07-14 07:11 sys
drwxrwxrwt   8 root root  4096 2011-11-25 23:37 tmp
drwxr-xr-x  10 root root  4096 2011-10-12 18:06 usr
drwxr-xr-x  13 root root  4096 2011-11-25 23:37 var
lrwxrwxrwx   1 root root    33 2011-11-25 23:35 vmlinuz -> boot/vmlinuz-3.0.0-14-generic-pae
lrwxrwxrwx   1 root root    29 2011-11-25 23:35 vmlinuz.old -> boot/vmlinuz-3.0.0-14-generic

Я также нашел старый 30_os-prober_proxy в /dev/sda3/etc/grub.d, который должен содержать старый загрузочный материал. Это выглядит следующим образом:

#!/bin/sh
#THIS IS A GRUB PROXY SCRIPT
'/etc/grub.d/proxifiedScripts/os-prober' | /etc/grub.d/bin/grubcfg_proxy "-*
-'Ubuntu, met Linux 3.0.0-12-generic-pae (on /dev/sda3)'
-'Ubuntu, met Linux 3.0.0-12-generic-pae (herstelmodus) (on /dev/sda3)'
+'Ubuntu, met Linux 3.0.0-12-generic (on /dev/sda3)' as 'Xubuntu'
-'Ubuntu, met Linux 3.0.0-12-generic (herstelmodus) (on /dev/sda3)'
+'Windows 7 (loader) (on /dev/sda2)' as 'Windows 7'
"

Как я могу снова запустить Grub Lubuntu?

задан
26 November 2011 в 16:08

поделиться

5 ответов

Неделю назад у меня была такая же проблема в другой раз, но теперь я исправил ее сам. Оказалось, что проблема не имеет ничего общего с установкой LiveUSB. Я должен был запустить grub-customizer из Xubuntu, щелкнуть File, Select Partition, щелкнуть Next, выбрать раздел Lubuntu, а затем щелкнуть Mount the selected filesystem. У меня была возможность выбрать подпункты, но это не было необходимо. Я нажал Apply.

Прямо сейчас, я должен был проверить все флажки, которые были доступны, чтобы быть уверенным, что я могу запустить Lubuntu из Grub. Затем я нажал File, Save, после чего я нажал File, Install to MBR.

Я перезагрузился, и я снова смог загрузить в Lubuntu, проблема была решена. [!d2 ]

Если это не решит вашу проблему, я бы посоветовал вам использовать инструменты, которые fossfreedom упоминает в другом ответе ниже.

ответ дан Exeleration-G
25 May 2018 в 16:30

поделиться

Неделю назад у меня была такая же проблема в другой раз, но теперь я исправил ее сам. Оказалось, что проблема не имеет ничего общего с установкой LiveUSB. Я должен был запустить grub-customizer из Xubuntu, щелкнуть File, Select Partition, щелкнуть Next, выбрать раздел Lubuntu, а затем щелкнуть Mount the selected filesystem. У меня была возможность выбрать подпункты, но это не было необходимо. Я нажал Apply.

В настоящий момент мне пришлось проверить все флажки, которые были доступны, чтобы быть уверенным, что я могу запустить Lubuntu из Grub. Затем я нажал File, Save, после чего нажал File, Install to MBR.

Я перезагрузился, и я снова смог загрузиться в Lubuntu, проблема была решена.

Если это не решит вашу проблему, я бы посоветовал вам использовать инструменты, которые fossfreedom упоминает в другом ответе ниже.

ответ дан Exeleration-G
7 August 2018 в 20:18

поделиться

Boot-Repair

Большинство проблем с загрузкой grub можно разрешить с помощью boot-repair — как объясняет это сообщество, вы можете установить это на liveCD / USB или непосредственно в рабочую установку ubuntu и будет пытаться найти все установки O / S и восстановить общий Grub MBR.

Установка вручную Grub2

Если при загрузке не удается выполнить свою магию, тогда традиционная ручная установка grub2 метод, описанный в , должен быть исследован этой вики сообщества .

Поиск на этой веб-странице раздела boot-repair . Замените пример /dev/sdxy с помощью раздела, в который вы установили lubuntu, например /dev/sda3

Если вы не знаете, какой раздел вы установили, вы можете запустить загрузочный info-скрипт, найденный на SourceForge.

В результатах искать типы разделов ext4 или ext3 — это обычные файловые системы Ubuntu, если вы ранее не выбрали использовать что-то вроде btrfs или reiserfs и т. Д.

Переустановка ядра

Если проблема связана с поврежденной установкой ядра, вы можете исследовать переустановку ядра с живого компакт-диска. Это описано в этом превосходном SourceForge

Правильно установив ядро, Grub должен иметь возможность правильно видеть установку Lubuntu.

ответ дан Community
25 May 2018 в 16:30

поделиться

Удалите вторую строку (начиная с echo). Вам также может потребоваться добавить корневой параметр в ядро, например:

linux /boot/vmlinuz root=/dev/sda3

После этого запуска update-grub снова.

ответ дан bseibold
25 May 2018 в 16:30

поделиться

Вы можете попробовать использовать live cd для загрузки в систему, а затем chrooting в систему lubuntu с помощью этих команд.

sudo mkdir /mnt/abc
sudo mount /dev/sda3 /mnt/abc
sudo mount ‐‐bind /dev /mnt/abc/dev
sudo mount ‐‐bind /proc /mnt/abc/proc
sudo mount ‐‐bind /sys /mnt/abc/sys
sudo chroot /mnt/abc
sudo grub-install /dev/sda

Я думаю, что это исправит вашу проблему, если вы не хотите чтобы иметь загрузчик lubuntu в MBR, вы можете установить grub в / dev / sda3, а затем использовать update-grub с помощью xubuntu. Это будет работать.

ответ дан gaurav
25 May 2018 в 16:30

поделиться

Другие вопросы по тегам:

Похожие вопросы:

Error: file boot vmlinuz load Kernel

error file “/boot/vmlinuz-5.10-x86_64” not found.
error: you need to load the kernel first.

Press any key to continue

If you get the above error message when booting your system, something probably went wrong when upgrading or deleting the kernel.
The file that is called at boot time under grub is no longer there. You will now have to load a different kernel at boot time.

To find out what kernels are on your system select the partition you want to boot and click “c” to get to a grub command line.

Find Linux Kernel

Now type ls and the disk and partition you want to boot. If it is the first partition on the first hard drive, you should type the following command:

ls (hd0,1)/

.

then click on the tab key. You will see the folders on the partition. If you are on the right partition, you will find the boot folder. Now enter the following command:

ls (hd0,1)/boot/

.

Now all available kernels are displayed. Write down the available vmlinuz and the initframs.
Now exit the command line by clicking esc and click “e” to edit the boot settings.

Change grub settings

Change the kernel and initramfs number and boot your system with Ctrl-x or F10. Now you should get back to your system.

In the file /boot/grub/grub.cfg you can change the entries, so you don’t have to repeat all the steps above when booting your System again.

Right now when I select Custom OS , and when i execute my OS from the menu in GRUB I get a purple background:

error: secure boot forbids loading module from (hdo, gpt7)/boot/grub/x86_64-efi/multiboot.mod
error: You need to load your kernel first    
Press any key to continue . . .

.. I don’t necessarily understand why this is happening. let me show you my files:

loader.S:

#Global MultiBoot Kernel Recongnzation
.set MAGIC, 0x1BADB002
.set FLAGS , (1<<0 | 1<<1)
.set CHECKSUM, -(MAGIC + FLAGS)

#Putting in object file
.section .multiboot
    .long MAGIC
    .long FLAGS
    .long CHECKSUM


.section .text

    .extern kernelMain
    .globl loader

        loader:
                mov $kernel_stack , %esp
                push %eax
                push %ebx
                call kernelMain

        _eof:
             cli
             hlt 
             jmp _eof


.section .bss
.space 2*1024*1024 #2 MiB
kernel_stack:

Makefile:

GPPARAMS =  -m32 -Iinclude -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -Wno-write-strings
ASPARAMS =  --32
LDPARAMS =  -melf_i386
objects = kernel.o loader.o 

all:
    g++ -m32 -Iinclude -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -Wno-write-strings  -o kernel.o -c kernel.cc
    as $(ASPARAMS) -o loader.o loader.S

mykernel.bin : linker.ld $(objects)
    ld $(LDPARAMS) -T $< -o $@ $(objects)

install: mykernel.bin
    sudo cp $< /boot/mykernel.bin

clean:
      rm $(objects)
int strlen(char* str)
{
        int l=0;
        while(str[l]!='')l++;
        return l;
}

void printf(char *str)
{
        unsigned short* ViedoMemory = (unsigned short*)0xb8000;

        for(int i=0; str[i]!=''; ++i)
                ViedoMemory[i]= (ViedoMemory[i] & 0xFF00)|str[i];
}



extern "C" void kernelMain(void* multiboot_structure, unsigned int magicnumber)
{
    printf("Hello World");
    while(1);
}

linker.ld:

ENTRY(loader)
OUTPUT_FORMAT(elf32-i386)
OUTPUT_ARCH(i386:i386)

SECTIONS
{
  . = 0x0100000;

  .text :
  {
    *(.multiboot)
    *(.text*)
    *(.rodata)
  }

  .data  :
  {
    start_ctors = .;
    KEEP(*( .init_array ));
    KEEP(*(SORT_BY_INIT_PRIORITY( .init_array.* )));
    end_ctors = .;

    *(.data)
  }

  .bss  :
  {
    *(.bss)
  }

  /DISCARD/ : 
  { 
    *(.fini_array*) 
    *(.comment) 
  }
}

Right now how I load it is first do it by makefile:

make
make mykernel.bin
make install

and then ofcourse in the /boot/grub/grub.cfg I added this:

### BEGIN MYKERNEL
menuentry 'Operating System Tut'{
  multiboot /boot/mykernel.bin
  boot
}
### END MYKERNEL ###

Then when I do sudo reboot, and select Operating System Tut from the drop-down list it gives me the error I described before:

error: secure boot forbids loading module from (hdo, gpt7)/boot/grub/x86_64-efi/multiboot.mod
error: You need to load your kernel first    
Press any key to continue . . .

Again, I don’t understand why the kernel isn’t loading first… Help would be appreciated.

Skip to content

WhiteFumes

This post will write about my deployment of Ubuntu 18.04 virtual machine from vRealize Automation 8.x. Through this deployment, I have noticed that my VM is stucked at the GRUB menu even after the deployment is shown as completed on vRA.

The next few screenshots will show more about the error as to why it is stucked at the GRUB menu.

GRUB Menu

Error Message

Memory Allocation

Based on the screenshot above, we can see the following error messages.
error: cannot allocate kernel buffer.
error: you need to load the kernel first.

Upon investigation, I have realized it is because of the memory allocation of 4 MB. This was a silly mistake on my end to have allocated 4 MB to the VM. Changing to GB will solve the issue.

With vRA 8.x, you can always delete the deployment and deploy another one with just a few clicks! Have fun with Ubuntu 18.04!


Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Ошибка you must include the right dependencies for
  • Ошибка you are not whitelisted on this server
  • Ошибка you are empty не запускается
  • Ошибка yes на стиральной машине siemens

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии