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. Ниже прикреплю некоторые скриншоты из него тут
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.
- Печать
Страницы: [1] Вниз
Тема: you need to load the kernel first (Прочитано 4381 раз)
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 и тут тоже какие проблемы с установкой .
Если кто-нибудь сталкивался с такой проблемой, прошу вашей помощи.
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] Вверх
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.
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 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.