Linux mint initramfs failed

Linux Mint Forums

Initramfs unpacking failed on Linux Mint 20.1 [SOLVED]

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Initramfs unpacking failed on Linux Mint 20.1 [SOLVED]

Post by zuitbibiche » Fri Apr 23, 2021 3:08 am

I’m honestly a bit lost on who to ask or what to do for this one I’m not even sure if the Hardware Support section is the right one since I have no idea what the problem is.

I am running Linux Mint 20.1 64-bit on a dual booted Lenovo T14s running on AMD and I recently downloaded some updates through the update manager. However after a reboot, I am unable to get the OS to boot up at all. I have tried using a different kernel but the same problem arises. Basically, I see the Linux Mint logo, then I get two errors and then it sends me to a BusyBox shell.

Initramfs unpacking failed: Decoding failed.
AMD-Vi: Unable to read/write to IOMMU perf counter

I think the first error might be the cause of it? The one below had shown up in the past without causing any visible problem.

I wish I could give any more info on this but I’m a massive newbie and I have no idea how I could get more info on what happened.

Thank you in advance.
Kind Regards

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: Initramfs unpacking failed on Linux Mint 20.1

Post by deepakdeshp » Fri Apr 23, 2021 9:55 am

If I have helped you solve a problem, please add [ SOLVED] t o your first post title , it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb

Re: Initramfs unpacking failed on Linux Mint 20.1

Post by zuitbibiche » Sun Apr 25, 2021 4:03 pm

I tried. Sadly, it doesn’t work. I tried with every kernel I had. None work.

As a matter of fact, they all bring me to the same BusyBox console.

Re: Initramfs unpacking failed on Linux Mint 20.1

Post by deepakdeshp » Sun Apr 25, 2021 11:25 pm

If I have helped you solve a problem, please add [ SOLVED] t o your first post title , it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb

Читайте также:  Installing source code on linux

Re: Initramfs unpacking failed on Linux Mint 20.1

Post by zuitbibiche » Mon Apr 26, 2021 2:27 am

I’m kinda confused on how to run fsck.

error 2 (No such file or directory) while executing fsck.ext2 for /

Am I just using fsck wrong or is the root directory broken? (It’s weird because ls and cd shows it so it’s there).

Sorry if it seems simple but I’m a noob. I also tried running fsck on nvme0 which I think is my laptop’s SSD and other partitions such as nvme0n1p1 of it but with no success. I get the same error as above.

Re: Initramfs unpacking failed on Linux Mint 20.1

Post by deepakdeshp » Mon Apr 26, 2021 2:32 am

If I have helped you solve a problem, please add [ SOLVED] t o your first post title , it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb

Re: Initramfs unpacking failed on Linux Mint 20.1

Post by zuitbibiche » Mon Apr 26, 2021 2:38 am

Источник

Ubuntu не загружается дальше initramfs

Пользователи, которые любят экспериментировать со своей операционной системой время от времени сталкиваются с ошибкой загрузки, когда система выводит приглашение ввода BusyBox с initramfs. Эта ошибка означает, что ядро не может загрузить корневой раздел, та файловая система, к которой у вас есть доступ из этого режима не имеет ничего общего с вашей системой. Это содержимое образа initramfs, которое содержит только самые необходимые компоненты, используемые ядром для загрузки системы.

В этом режиме будет сложно что-то исправить, но можно попытаться понять где находится причина проблемы. В этой статье мы рассмотрим что делать если Linux не загружается с initramfs. Такой проблеме подвержены все дистрибутивы, но мы рассмотрим решения на примере Ubuntu.

Почему Linux не загружается дальше initramfs

Если вы столкнулись с данной ошибкой, то после нескольких десятков секунд загрузки увидите такое сообщение:

Первое, что можно попытаться сделать в таком случае — выполнить команду exit, чтобы система попыталась загрузится и тогда она покажет вам более подробное сообщение об ошибке.

1. Неверный корневой раздел в загрузчике

В данном случае она сообщает, что не может найти раздел /dev/sda10:

Alert: /dev/sda10 does not exist. Dropping to a shell

Очень часто такая ошибка возникает после манипуляций с разделами дисков, особенно изменения их размера. UUID диска меняется и ядро больше не может его найти. Вы можете посмотреть доступные в системе разделы с помощью команды:

В этом окружении есть BusyBox, а значит есть большинство утилит Unix. Вы можете примонтировать каждый из этих разделов с помощью команды mount и узнать где находится ваш новый корневой раздел, например:

mkdir /mnt
mount /dev/sda5 /mnt
ls

Вы также можете узнать здесь же UUID данного раздела диска, для этого выполните:

В данном случае, корневой раздел имеет имя /dev/sda5. Именно это имя можно передать ядру в конфигурации загрузчика Grub, а можно UUID, но если в этом нет крайней необходимости, то короткое имя использовать гораздо проще. Надо перезагрузить компьютер, в меню Grub выбрать нужную загрузочную запись и нажать клавишу E:

Далее найти пункт, начинающейся со слова linux и в нём параметр root. Его значение вместе со словом UUID надо стереть, а вместо него прописать имя корневого раздела:

После этого система загрузится, а вам останется только создать новый конфигурационный файл grub с помощью команды:

2. Повреждённая файловая система

Подобная ошибка может появляться также при серьезных ошибках в файловой системе, которые мешают примонтировать корневой раздел. Обычно, fsck восстанавливает файловую систему автоматически, но если проблема серьезная и грозит потерей данных, утилите надо подтверждение пользователя для работы. Тогда система показывает такую ошибку:

Читайте также:  Freeipa astra linux smolensk установка

The root filesystem on /dev/sda5 requires a manual fsck

Вы можете прямо здесь же попытаться восстановить файловую систему. Для этого выполните:

Здесь /dev/sda5 — это корневой раздел, его нужно заменить на свой. Опция -y указывает утилите, что на все вопросы надо ли исправлять блок нужно отвечать утвердительно. После успешного восстановления надо перезагрузить компьютер и попытаться загрузить систему снова.

Выводы

В этой статье мы разобрались что делать если в Linux не загружается initramfs, как посмотреть сообщение об ошибке, а также как устранить самые распространённые причины.

Обнаружили ошибку в тексте? Сообщите мне об этом. Выделите текст с ошибкой и нажмите Ctrl+Enter.

Источник

Linux Mint Forums

live system: initramfs unpacking failed: Decoding failed

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

live system: initramfs unpacking failed: Decoding failed

Post by luigi_70 » Thu Apr 15, 2021 3:32 pm

I’m also experiencing the «initramfs unpacking failed» while trying to boot my desktop PC with a linuxmint20.1-cinnamon-64bit USB installation drive.
My problem is that the PC is brand new, so no /etc/initramfs-tools/initramfs.conf on the disk to modify. In the filesystem on the USB drive I see no /etc folder, so I’m struck.

I guess I have 2 options:
1 — Install mint19 on the PC (I tried a linuxmint19-cinnamon USB drive on the same PC and it works), then upgrade to mint 20.1
2 — Modify some conf file (or something else?) on the Mint 20 USB drive and make it boot the PC.

Although an upgrade from a fresh 19 installation should go smooth and would be an excellent exercise for a mint newbie like me, I would prefer the option #2, but I don’t know how to «change COMPRESS=lz4 to COMPRESS=gzip».

Can anyone please help me?

The PC is Asrock B560M-HDV MB + Intel i3-10100.

Thanks a lot
PS: I’m not native English, so forgive my mistakes

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Pjotr Level 23
Posts: 19057 Joined: Mon Mar 07, 2011 10:18 am Location: The Netherlands (Holland) 🇳🇱 Contact:

Re: live system: initramfs unpacking failed: Decoding failed

Post by Pjotr » Thu Apr 15, 2021 5:05 pm

Tip: 10 things to do after installing Linux Mint 21.2 Victoria
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Re: live system: initramfs unpacking failed: Decoding failed

Post by bodge99 » Thu Apr 15, 2021 5:11 pm

The «change COMPRESS=lz4 to COMPRESS=gzip» you are referring to is a line in ‘initramfs.conf’ which is located in /etc/initramfs-tools/.
However, this is referring to an installed system. The Live system works somewhat differently.

The initrd unpack failure can be caused by other things such as having Intel RST (Rapid Store Technology) enabled, if your machine has it. Also having something like Bitlocker in Windows can cause this problem.

There is a known minor problem with the initramfs compression setup on the Live Iso at this time which affects some folk. This appears to be an Ubuntu bug.
I’ve been meaning to look at this properly but, for me, it was low priority as I’ve only had one minor glitch caused by this. One of the first things that I do on an installed Mint system is to change the initrd compression setting from ‘lz4’ to ‘gzip’ and upgrade the kernel.

Читайте также:  Canon mf3010 драйвер linux mint

Try this:
Boot your computer from the flashdrive. At the Grub boot screen, select «Check the integrity of the medium». If this passes, then your flashdrive is probably O.K.
Now select «Start Linux Mint xxxxx (compatibility mode). Repeat, if necessary, with «OEM install (for manufacturers)».
If the same error occurs, try the flashdrive on another computer, if possible.

Hopefully, at this point, you have either found that your flashdrive is suspect or you have managed to install Mint.

Could you report your progress here. There are a few ways to proceed. I want to have a closer look at this.

Re: live system: initramfs unpacking failed: Decoding failed

Post by linux-rox » Thu Apr 15, 2021 10:49 pm

Third option. Do a Forum search. There have been several threads about this problem in a live session. As I recall, there are a couple where the solution was to fix the graphics driver as described in the Release Notes, i.e., the initramfs error is a symptom of a different problem than the one discussed (and solved) in the thread to which you originally posted.

Edit: It will be easier for everyone trying to help if you post complete system information. Please boot the LM19 ISO and, from there, post an inxi report as described here. Notice Firefox is installed in the live session, so you can post directly to the thread.

Re: live system: initramfs unpacking failed: Decoding failed

Post by bodge99 » Fri Apr 16, 2021 4:30 am

linux-rox: You are correct in stating that there are several potential causes of this initramfs unpack error. However, it would appear that you are dismissing the possibility of a more insidious bug that is preventing some folk from even booting a Live Mint flashdrive.

I’ve started looking at this more closely. I’ve tested several machines here and I’ve found this behaviour with a rebadged Clevo 14″ laptop.

This laptop has Mint 20.1 Mate installed and is used by SWMBO for general surfing & online shopping etc. I installed Mint onto it late last year.
The installation was straightforward. On initial boot, I altered the ‘/etc/initramfs-tools/initramfs.conf’ COMPRESS entry to ‘gzip’ and rebuilt the ‘initrd.img’. The system runs perfectly O.K.

Last night, I booted the machine using a Mint 20.1 Cinnamon Live flashdrive. The machine hardlocked (repeatedly), returning the error «initramfs unpacking failed. «.
The flashdrive is valid, as other machines boot from it with no problem.
The machine boots O.K. from a Live Mint Mate Iso.. but briefly shows an initial «initramfs unpacking failed. » message.

As the Live Iso «initrd.lz» should be very similar, if not identical, between Mint 20.1 Cinnamon and Mint 20.1 Mate, then something else must be going on.

I’m now going to look at rebuilding the Iso ‘initrd.lz’ slightly differently and see what I get from this. I also want to see how the Iso kernel is configured.

Источник

Оцените статью
Adblock
detector