Initramfs unpacking failed uncompression error

Arch Linux You are not logged in. #1 2015-01-30 12:43:22 initramfs unpacking failed: uncompression error on USB Key I have been following the guide on the Arch Wiki for setting up Arch Linux on a USB key. However, when I come to boot a machine from the USB key, I get the following error: […]

Содержание

  1. Arch Linux
  2. #1 2015-01-30 12:43:22
  3. initramfs unpacking failed: uncompression error on USB Key
  4. #2 2015-01-30 14:10:09
  5. Re: initramfs unpacking failed: uncompression error on USB Key
  6. #3 2015-01-30 21:03:13
  7. Re: initramfs unpacking failed: uncompression error on USB Key
  8. #4 2015-01-30 21:12:22
  9. Re: initramfs unpacking failed: uncompression error on USB Key
  10. #5 2015-01-30 22:27:00
  11. Re: initramfs unpacking failed: uncompression error on USB Key
  12. Arch Linux
  13. #1 2012-02-26 00:58:54
  14. [SOLVED]initramfs unpacking failed: uncompression error
  15. #2 2012-02-26 04:10:23
  16. Re: [SOLVED]initramfs unpacking failed: uncompression error
  17. #3 2012-02-26 06:00:46
  18. Re: [SOLVED]initramfs unpacking failed: uncompression error
  19. Linux Mint Forums
  20. [SOLVED] initramfs unpacking failed: Decoding failed
  21. [SOLVED] initramfs unpacking failed: Decoding failed
  22. Re: initramfs unpacking failed: Decoding failed
  23. Re: initramfs unpacking failed: Decoding failed
  24. Re: initramfs unpacking failed: Decoding failed
  25. Re: initramfs unpacking failed: Decoding failed
  26. Re: initramfs unpacking failed: Decoding failed
  27. Re: initramfs unpacking failed: Decoding failed
  28. Re: initramfs unpacking failed: Decoding failed
  29. Re: initramfs unpacking failed: Decoding failed
  30. Re: initramfs unpacking failed: Decoding failed
  31. Re: initramfs unpacking failed: Decoding failed
  32. Re: initramfs unpacking failed: Decoding failed
  33. Re: initramfs unpacking failed: Decoding failed
  34. Re: initramfs unpacking failed: Decoding failed
  35. Re: initramfs unpacking failed: Decoding failed
  36. Re: initramfs unpacking failed: Decoding failed
  37. Re: initramfs unpacking failed: Decoding failed
  38. Booting kernel failed при загрузке самодельного Live-Debian
  39. Arch Linux
  40. #1 2017-09-27 14:29:50
  41. Decompression errors
  42. #2 2017-09-27 14:41:52
  43. Re: Decompression errors
  44. #3 2017-09-29 10:45:38
  45. Re: Decompression errors

Arch Linux

You are not logged in.

#1 2015-01-30 12:43:22

initramfs unpacking failed: uncompression error on USB Key

I have been following the guide on the Arch Wiki for setting up Arch Linux on a USB key.

However, when I come to boot a machine from the USB key, I get the following error:

I have tried boot from an install disc, mounting the USB key, chroot into the key and running the classic mkinitcpio -p linux

Any suggestions would be gratefully received.

Kind Regards,
Harold Clements

Last edited by haroldjclements (2015-01-30 12:48:11)

#2 2015-01-30 14:10:09

Re: initramfs unpacking failed: uncompression error on USB Key

What is the content of your /etc/mkinitcpio.conf?

Did you add the «block» hook right after the «udev» hook?

(I should note, however, that I’m typing this from an Arch installation on a USB stick and I didn’t bother doing that. )

#3 2015-01-30 21:03:13

Re: initramfs unpacking failed: uncompression error on USB Key

Thank you for reply, my mkinitcpio.conf is as follows. As you can see the block hook right after the udev hook. This is the standard config (with all the comments removed) that is generated when creating the file-system. However, if you see anything that is a miss, please let me know.

Kind Regards,
Harold Clements

#4 2015-01-30 21:12:22

Re: initramfs unpacking failed: uncompression error on USB Key

It looks the same as mine.

You could try using:

To create an uncompressed image, but I can’t see why gzip compression would be a problem (I think the kernel image uses that as well).

EDIT: Which boot loader/manager are you using and what is the content of the relevant configuration file?

Last edited by Head_on_a_Stick (2015-01-30 21:13:59)

#5 2015-01-30 22:27:00

Re: initramfs unpacking failed: uncompression error on USB Key

Once again, thank you for helping me with this issue.

I tried adding compression=»cat»; when I ran mkinticpio -p linux, one of the messages confirmed that it was creating an uncompressed ramdisk (if that is what it is called?). Unfortunately, it has not helped much. I now have the following error:

To answer your second question; I am using grub2 and my config is as follows (sorry for the long config, I don’t know grub2 that well) :

Again, thanking you very much for your time.
Harold Clements

Источник

Arch Linux

You are not logged in.

#1 2012-02-26 00:58:54

[SOLVED]initramfs unpacking failed: uncompression error

I have faced a booting problem just after upgrading my system last night.
The first time I reboot it halts with such messages:
Booting the kernel.
[0.017252] ACPI:Unable to load the System Desciption Tables
[0.211206] Initramfs unpacking failed: uncompresion error
[0.816567] Kernel panic — not syncing: No init found. Try passing init- option to kernel.
. .
then I reboot and add «acpi=off» to the kernel line. In this time, it turns to:
Booting the kernel.
[0.243467] Initramfs unpacking failed: uncompression error
[0.849642] Kernel panic — not syncing: No init found. Try passing init- option to kernel.
[0.849693] Pid: 1, comm: swapper/0 Not tainted 3.2.7-1-ARCH #1
. .

Can anyone give me some help about this problem? Thanks

Last edited by yunfei (2012-03-03 14:27:25)

#2 2012-02-26 04:10:23

Re: [SOLVED]initramfs unpacking failed: uncompression error

Try to rebuild the initramfs with; mkinitcpio -p linux
More about this here; https://wiki.archlinux.org/index.php/Mkinitcpio

#3 2012-02-26 06:00:46

Re: [SOLVED]initramfs unpacking failed: uncompression error

Try to rebuild the initramfs with; mkinitcpio -p linux
More about this here; https://wiki.archlinux.org/index.php/Mkinitcpio

I have tried the fallback initramfs but failed also (if adding «acpi=off» the ACPI failed line disappear with other things unchanged), so I don’t think it’s something about the initramfs.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED] initramfs unpacking failed: Decoding failed

[SOLVED] initramfs unpacking failed: Decoding failed

Post by CyrilFR » Mon Jun 29, 2020 3:29 am

Re: initramfs unpacking failed: Decoding failed

Post by Kadaitcha Man » Mon Jun 29, 2020 3:35 am

Change COMPRESS=lz4 to COMPRESS=gzip

Save the changes then:

Re: initramfs unpacking failed: Decoding failed

Post by Aryanprince » Mon Jun 29, 2020 8:18 am

Re: initramfs unpacking failed: Decoding failed

Post by janne6767 » Mon Jun 29, 2020 12:18 pm

I am getting [0.5910114] Initramfs unpacking failed: Decoding failed when trying to boot from Linux Mint 20 installation media (DVD or USB drive, both fails).

Linux Mint 19.3 works fine on the same desktop computer.

Re: initramfs unpacking failed: Decoding failed

Post by CyrilFR » Mon Jun 29, 2020 1:11 pm

Re: initramfs unpacking failed: Decoding failed

Post by smurphos » Mon Jun 29, 2020 1:17 pm

Re: initramfs unpacking failed: Decoding failed

Post by mint-me » Mon Jun 29, 2020 5:24 pm

For now, I guess its ok to ignore the warning?

Wait for a kernel update?

Re: initramfs unpacking failed: Decoding failed

Post by janne6767 » Tue Jun 30, 2020 2:17 am

I am getting [0.5910114] Initramfs unpacking failed: Decoding failed when trying to boot from Linux Mint 20 installation media (DVD or USB drive, both fails).

Linux Mint 19.3 works fine on the same desktop computer.

Still no success.

Mint 19.3 installation media boots from usb ok. LM 20 installation media boot fails to the error message (Initramfs unpacking failed: Decoding failed)

I have verified LM20 iso against sha256 sum.

Re: initramfs unpacking failed: Decoding failed

Post by smurphos » Tue Jun 30, 2020 3:04 am

This error was raised in the beta, but not as an issue preventing the live iso from booting at all.

I’ve just doublechecked booting the stable live ISO on both my machines and it boots fine albeit the error does show in journalctl output when run just after booting the live session.

It might be worth you experimenting with a different USB stick or using different USB ports.

Re: initramfs unpacking failed: Decoding failed

Post by smurphos » Tue Jun 30, 2020 3:13 am

For now, I guess its ok to ignore the warning?

Wait for a kernel update?

Re: initramfs unpacking failed: Decoding failed

Post by mint-me » Tue Jun 30, 2020 7:36 am

thanks for confirmation smurphos

my bootup is fine, so will leave it as is.

Re: initramfs unpacking failed: Decoding failed

Post by cool_montes » Mon Jul 13, 2020 2:16 am

Re: initramfs unpacking failed: Decoding failed

Post by thorsen » Tue Jul 14, 2020 8:28 am

I am getting [0.5910114] Initramfs unpacking failed: Decoding failed when trying to boot from Linux Mint 20 installation media (DVD or USB drive, both fails).

Linux Mint 19.3 works fine on the same desktop computer.

Still no success.

Mint 19.3 installation media boots from usb ok. LM 20 installation media boot fails to the error message (Initramfs unpacking failed: Decoding failed)

I have verified LM20 iso against sha256 sum.

Re: initramfs unpacking failed: Decoding failed

Post by S3NTYN3L » Tue Jul 14, 2020 10:47 pm

Re: initramfs unpacking failed: Decoding failed

Post by Kadaitcha Man » Tue Jul 14, 2020 11:19 pm

Re: initramfs unpacking failed: Decoding failed

Post by smurphos » Wed Jul 15, 2020 1:18 am

Re: initramfs unpacking failed: Decoding failed

Post by N0HAM » Fri Jul 17, 2020 4:24 am

Mint 20 on a Mac Air, upgraded from latest Mint 19 version a week ago, Running as Mint 20 only, removed Mac OS years ago.

This morning laptop started acting wanky in the browser and links would not execute on clicks and was asking me to log into things that should have already been signed into.

Decided to do a reboot and. initramfs unpacking failed

I tried everything mentioned in this post. I could get to grub and a few other very limited command/menu areas, but calls were very limited. No matter what I did, after a reboot everything was back to the way before I made the changes.

Wound up booting from Mint 20 install USB. Tried to make the changes and after reboot, same thing, no matter what I did, no change were actually written to the drive just like before booting from USB.

The question I have to ask, is Mint 20 Stable?

Should I still change the compression method for initramfs?

When the laptop boots, the first few screens flash quickly with garbage on them, as it did before the crash. In Mint 19 the screen were readable but too fast for me to read them.

Источник

Booting kernel failed при загрузке самодельного Live-Debian

Ох. В общем, у меня задача сделать Live систему Debian полностью размещенную в initramfs. Что я делаю: 1. Создаю виртуальную машину в VirtualBox, устанавливаю туда Debian и ряд пользовательских приложений — тут все стандартно и ничего интересного. 2. Далее из виртуального диска .vdi выделяю образ .img:

Жуть какие костыли. Неужели нет штатного способа напихать произвольное количество пакетов в initramfs?

Может быть и есть. Но я пошел самым очевидным способом.

просто интересно: а какая цель запихивания всего в initramfs?

Рекомендую использовать kpartx. Эта программа сама к loop подключит, разделы найдёт и создаст файлы устройств для этих разделов.

О! Спасибо за наводку — а то я с этим подмонтированием .vdi раздела мучался 2 дня:)) Спасибо еще раз!

Как таковая цель — создать пользовательский (то есть с набором нужных приложений и удобными настройками xfce4) дистрибутив Debian-LIVE. Раньше я создавал эту шляпу с помощью respin — на новых Debian-ах она у меня не работает. Такая же фигня с Linux Live Kit. Да и, честно говоря, надоело пользоваться какими-то непонятными пакетами, без понимания принципа создания Live-системы. Ну, а почему именно пошел по архитектуре «запихнуть всю систему в initramfs» — да просто потому, что это мне показалось намного проще собирать, чем классическую LiveCD, где так же нужен маленький initramfs, а паровозом к нему еще отдельно паковать основную ФС в filesystem.squashfs, настраивать init и так далее. Если у меня не идет ничего в простой связке Ядро+Initramfs — то уж классическую LiveCD я вечность буду собирать! Кроме того, когда все в initramfs — меньше изнашивается привод — при загрузке все ведь помещается в RAM и там крутится до перезагрузки.

Ну, а почему именно пошел по архитектуре «запихнуть всю систему в initramfs» — да просто потому, что это мне показалось намного проще собирать, чем классическую LiveCD

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

Если есть желание исследовать, то пожелаю удачи. Меня на такое не хватает.

Если просто нужен live-cd, то у дебиана есть live-build, который выдаст и iso, и образ/tar для флешки, и архив для net-boot. Кроме прочего созданный iso может работать в памяти, если ядру передать опцию toram

Источник

Arch Linux

You are not logged in.

#1 2017-09-27 14:29:50

Decompression errors

I just bought a refurbed HP EliteBook 2560p, and set out to install archlinux on it — but I can’t (so far).

I downloaded the current image (archlinux-2017.09.01-x86_64.iso), and did pgp and md5 checks, both passed.

But when trying to boot, it fails, either decompressing the boot image, or the kernel. Mounting the image on my working system, it looks just fine.

In one case, I see

and then kernel panic.

In the other case, I see:

A KaOS live image I have on another USB stick works fine.

What to try next?

Last edited by sredna (2017-09-27 14:34:30)

#2 2017-09-27 14:41:52

Re: Decompression errors

Could it be an issue with your USB stick?

Try checking the md5 of the image after you’ve written it to confirm the USB contents are valid.

No, it didn’t «fix» anything. It just shifted the brokeness one space to the right. — jasonwryan
Closing — for deletion; Banning — for muppetry. — jasonwryan

Online

#3 2017-09-29 10:45:38

Re: Decompression errors

Okay, Sredna (nice Nick!)

Do you have another bootable system by hands, that you could connect to the filesystem of your EliteBook?

Even if not, do you have another system, preferably a linux one, to test the following:

— insert the Arch Install Medium and mount it

look at the file (whatsoever)//arch/x86_64/airootfs.sfs

and try to copy it into your working directory. Later try under the command line something like «unsquashfs airootfs.sfs»

My question now would be: Is the file really really not corrupt? Forget the checksums.

of course you are right, but that would satisfy our both common curiousity, would’nt it?

Last edited by eddilein (2017-09-29 10:55:48)

Источник

Once again, thank you for helping me with this issue.

I tried adding compression=»cat»; when I ran mkinticpio -p linux, one of the messages confirmed that it was creating an uncompressed ramdisk (if that is what it is called?). Unfortunately, it has not helped much. I now have the following error:

initramfs unpacking failed: junk in compression archive

To answer your second question; I am using grub2 and my config is as follows (sorry for the long config, I don’t know grub2 that well) :

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos 
insmod ext2
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d
else
  search --no-floppy --fs-uuid --set=root d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos 
	insmod exfat
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  6783-1927
	else
	  search --no-floppy --fs-uuid --set=root 6783-1927
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	 /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos 
		insmod exfat
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  6783-1927
		else
		  search --no-floppy --fs-uuid --set=root 6783-1927
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	 /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos 
		insmod exfat
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  6783-1927
		else
		  search --no-floppy --fs-uuid --set=root 6783-1927
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=d0165b1a-f4f9-45bb-97cc-28a2c0ef1b5d rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	 /initramfs-linux-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###

Again, thanking you very much for your time.
Harold Clements

I am currently trying to install Ubuntu as a Dual boot to my Windows.

I have created a USB-installer using Rufus and the downlodable iso from Ubuntu’s own website.

However, when I boot my computer with the USB, and select Ubuntu through the grub loader, I am stuck with the error: “Initramfs unpacking failed: Decoding failed”, while some of my screen is flickering.

I have afterwards tried to boot my laptop using the same bootable USB, and are not met with the error on the laptop.

Does anyone know how i should proceed? Or have anyone also encountered this?

asked Aug 24, 2020 at 23:52

Lasse Harde's user avatar

3

It’s kind of a bogus error, unless you can’t fully boot into Ubuntu.

Either boot into Ubuntu, or into Recovery Mode from the GRUB menu…

  • GRUB menu
    • Additional Options
      • Recovery Mode
        • Root Access

…and type the following commands. This will rebuild the (possibly) broken ramdisk file.

sudo update-initramfs -c -k $(uname -r)

reboot

answered Aug 25, 2020 at 0:18

heynnema's user avatar

heynnemaheynnema

66.1k13 gold badges115 silver badges170 bronze badges

9

I experienced this issue when setting up Ubuntu 20.04 on my Dell PC.

I downloaded the ISO image and then burnt it into a USB Flash drive using Rufus, when I tried to install, I got the error

Initramfs unpacking failed: Decoding failed

I also tried using UNetbootin to burn the Ubuntu 20.04 ISO file into the USB Flash drive, but it gave me the same error.

The issue can be caused by more than one factor. For me it was:

  • Intel(R) RST was enabled, that is, Redundant Array of Independent Disks (RAID)

  • BitLocker was turned for my Windows C: Drive which I wanted to install Ubuntu alongside

Here’s how I fixed it:

We will need to turn off Bitlocker for Ubuntu to be able to access the files in the Windows C: Drive, and then we will also need to change the storage controller protocol from RST (Redundant Array of Independent Disks — RAID) to Advanced Host Controller Interface (AHCI):

  • Boot into your Windows operating system
  • Click on start and type manage BitLocker and launch it as an administrator.
  • Click on Turn off BitLocker (wait on the decryption to finish – it is indicated in the system tray)
  • Reboot your computer to make sure BitLocker is disabled.
  • Right-click the Windows Start Menu and click on Command Prompt (Admin).
  • Enter: bcdedit /set {current} safeboot minimal
  • Reboot the computer into the BIOS (F2,Del,ESC,F12 or other key depending on the computer manufacturer).
  • Look for SATA operation mode and change it to AHCI and save + reboot computer. (F10 key etc.)
  • Windows should start up in safemode.
  • Right-click the Windows Start Menu and click on Command Prompt (Admin).
  • Enter: bcdedit /deletevalue {current} safeboot
  • Reboot computer and windows should start up normally again.

Now you can install Ubuntu 20.04 without issues.

Resources:

  • Ubuntu installation on computers with Intel(R) RST enabled
  • Switch to AHCI mode in windows 10 with BitLocker enabled
  • Ubuntu installation on computers running Windows and BitLocker turned on
  • Initramfs unpacking failed: Decoding failed?

That’s all.

I hope this helps

answered Oct 3, 2020 at 13:41

Promise Preston's user avatar

Promise PrestonPromise Preston

2451 gold badge3 silver badges9 bronze badges

6

Just wanted to add one more thing to this.

I just ended up here for the same error message while trying to provision a VM on MS-HyperV 2019.

In my case it wasn’t even completing the verification correctly, after a bit of digging and messing around it turned out I had not allocated enough memory to the VM instance.

As I do with all my VM’s I use dynamic memory, and I’d set the startup amount to 256mb. Because this was happening so early in the boot HyperV wasn’t getting anough chance to profile the memory demand properly and re-size it as needed.

As soon as I upped the start-up memory to 2gb and rebooted from the ISO image I was using, everything started to work ok.

answered Dec 7, 2021 at 17:53

shawty's user avatar

shawtyshawty

2251 gold badge4 silver badges10 bronze badges

1

Ох… В общем, у меня задача сделать Live систему Debian полностью размещенную в initramfs.
Что я делаю:
1. Создаю виртуальную машину в VirtualBox, устанавливаю туда Debian и ряд пользовательских приложений — тут все стандартно и ничего интересного.
2. Далее из виртуального диска .vdi выделяю образ .img:

vboxmanage clonemedia --format RAW mydisk.vdi mydisk.img

Утилитой fdisk выявляю стартовый сектор и размер сектора:

умножаю стартовый сектор на размер сектора и полученное {ЗНАЧЕНИЕ} использую при монтировании:

mount -o loop,offset={ЗНАЧЕНИЕ} /mydisk.img /mnt

Ну, соответственно, в mnt лежит содержимое жесткого диска виртуалки с Debian’ом — все тоже стандартно.
3. Дальше я все из mnt (не знаю зачем, от греха подальше) копирую во временную директорию, в которой буду создавать initramfs (пускай это будет /ird), и удаляю оттуда ядро(-а) и initrd, а также всю директорию boot (там лежит GRUB2 установленного Debian’а — он, как я понимаю, нафиг не нужен).
4. Ну и пакую все в cpio+gzip:

find . | cpio -H newc -o | gzip > initramfs.gz

5. Делаю директорию для создания Live-CD (допустим /livecd) и помещаю туда директорию isolinux, в которой лежат: boot.cat hdt.c32 isolinux.bin isolinux.cfg ldlinux.c32 libcom32.c32 libgpl.c32 libmenu.c32 libutil.c32 memdisk vesamenu.c32 ну и, естественно initramfs.gz (initrd, который сделал в п. 4) и vmlinuz-5.10.0-9-amd64 (ядро).
boot.cat делаю просто утилитой dd (заполняю нулями до 2 кБ).
isolinux.cfg имеет следующее содержание:

DEFAULT MyLive
LABEL MyLive
linux /isolinux/vmlinuz-5.10.0-9-amd64
APPEND initrd=/isolinux/initramfs.gz rw

Писал его сам, не судите строго. Не хотел бездумно переписывать чужие.
Остальные файлы тупо взял из существующего isolinux’а от Live-Debian с официального сайта, каюсь.
6. Создаю образ:

genisoimage -o disk.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R /{полный путь к директории livecd}

Образ создается без ошибок, я даже потом проверяю что на .iso все внутри лежит как надо (путем подмонтирования его в loop-режиме).
7. Самое интересное. Создаю в VirtualBox виртуалку БЕЗ жесткого диска, в виртуальный CD «сую» свой disk.iso и запускаю машину. Дальше происходит следующее:

ISOLINUX 6.03 20171018 ETCD Copyright (C) 1994-2014 H. Peter Anvin et al

То есть как минимум ISOLINUX цепляется успешно!

Loading /isolinux/vmlinuz-5.10.0-9-amd64...ok

Раз «ok» — значит, надо понимать, загрузка ядра произошла успешно?…

Loading /isolinux/initramfs.gz...ok

Опять же — говорит «ok»!
А потом вот такая шляпа:

Booting kernel failed: Invalid argument
boot:

*********************************** ***
Я голову сломал, что он от меня хочет — я никаких аргументов не передавал в ядро… Очень прошу помочь — в каком направлении думать, где я ошибся.
Ну или, как вариант, с удовольствием приму помощь по созданию подобного Live-дистрибутива на коммерческой основе (формат взаимодействия и стоимость оговорим в личке)!

  • #1.601

у меня секунд по 30 каждое действие сейчас, часто ошибку даёт и надо снова жать

  • #1.602

у меня секунд по 30 каждое действие сейчас, часто ошибку даёт и надо снова жать

сука хоть бы написали чо ….
25 карт поехали заводить …..приехали )))))))))))
1 действие по 3 минуты , оповещения своевременно не записываются в лог .
вовремя вы и молча.

сука вроде очнулся RAVE

наша

Пляшущий с бубном


  • #1.603

у меня секунд по 30 каждое действие сейчас, часто ошибку даёт и надо снова жать

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

  • #1.604

сука хоть бы написали чо ….
25 карт поехали заводить …..приехали )))))))))))
1 действие по 3 минуты , оповещения своевременно не записываются в лог .
вовремя вы и молча.

сука вроде очнулся RAVE

4-гиговки народ стал с винды переводить… сервера рейва не готовы, надо им расширять это дело. Мне тоже херову тучу карт переводить надо.

  • #1.605

Люди, верно ли что мониторинг от Клеймора не видит риги на raveos? или у рейва мониторинг порт не дефолтный 3333? хотя это же в майнере, испльзую феникс 5.2e и там должен быть 3333, но ethMan.exe клейморовский не видит. Только под виндовые риги он?

  • #1.606

майнеры :

rave : чо майнеры система не отвечает ?
dghgfhfgh.jpg

  • #1.607

DDoS атака сегодня на них. Потерпеть малость придётся ;)

  • #1.608

Подскажите, почему так много режектов на найсхеше? или это нормально ?

и при 157 Mh/s сколько примерно найс должен показывать?

1606422348890.png

  • #1.609

4-гиговки народ стал с винды переводить… сервера рейва не готовы, надо им расширять это дело. Мне тоже херову тучу карт переводить надо.

Собрание настоящих эстонцев? А что будет когда узнают про электричество за 14 рублей килловатт и СССР давно всё :)

Подскажите, почему так много режектов на найсхеше? или это нормально ?
и при 157 Mh/s сколько примерно найс должен показывать?

Для найса реджекты норм, количество зависит от частоты новых заданий.
Если настраиваешь, встань на недельку на пул, потести и как ноль реджектов за пару суток будет, иди обратно на найс.

  • #1.610

Собрание настоящих эстонцев? А что будет когда узнают про электричество за 14 рублей килловатт и СССР давно всё :)

Для найса реджекты норм, количество зависит от частоты новых заданий.
Если настраиваешь, встань на недельку на пул, потести и как ноль реджектов за пару суток будет, иди обратно на найс.

Понял. Спасибо.
Ещё вопросик. Роутер может на это влиять? Пинг до найса около 70 мс. А при реджекте 200-300-500 пишет

  • #1.611

Подскажите, почему так много режектов на найсхеше? или это нормально ?

и при 157 Mh/s сколько примерно найс должен показывать?

Посмотреть вложение 155063

не нормально

  • #1.612

Добрый день с Hiveos на Ravenos переехать удаленно можно?

  • #1.613

Добрый день с Hiveos на Ravenos переехать удаленно можно?

Если возле фермы есть свой человек, то можно флешку с РэйвОС послать ему почтой.

  • #1.614

Как на RaveOS производится оплата за 4й и более риг? Деньги на свой счет надо закидывать в аккаунте и они будут списываться раз в месяц. Или как-то по другому?

  • #1.615

Как на RaveOS производится оплата за 4й и более риг? Деньги на свой счет надо закидывать в аккаунте и они будут списываться раз в месяц. Или как-то по другому?

Да, так. При этом оплачивать за все 4 (и более) рига.

  • #1.616

Да, так. При этом оплачивать за все 4 (и более) рига.

Т.е. минимум 4 * 2$ = 8$ в месяц?

  • #1.617

Т.е. минимум 4 * 2$ = 8$ в месяц?

Так и есть

  • #1.618

Как обновляются майнеры в RaveOS? Чтобы продолжить копать ETCHash надо будет обновлять систему или достаточно пересоздать кошелек с новой версией манера, который подгрузится по факту?

  • #1.619

Как обновляются майнеры в RaveOS? Чтобы продолжить копать ETCHash надо будет обновлять систему или достаточно пересоздать кошелек с новой версией манера, который подгрузится по факту?

прописать надо параметр майнера -coin etc

  • #1.620

перед запуском RAVE /
дальше не грузит
2.006254 initramfs unpacking failed uncompression error
носители разные использовал . флешка / ssd / hdd …биос сбрасывал..z 270 p

  • qPmgqq2rRmE.jpg

    qPmgqq2rRmE.jpg

    359,4 КБ · Просмотры: 51


Description


harryharryharry



2018-05-26 14:11:30 UTC

Created attachment 276207 [details]
Initramfs unpacking failed: uncompression error

Since 4.17-rc1 my Asus X205TA (baytrail platform) often hangs on boot, when this happens I need to hard reset the laptop. I've looked for similar bugtrackers and there are some:

Black screen every 1/3 times on boot
https://bugzilla.kernel.org/show_bug.cgi?id=199613

screen stays dark for long on bootup since kernel 4.17.0-rc2+
https://bugzilla.kernel.org/show_bug.cgi?id=199619

black screen irrespective of amdgpu.dc=1 or 0 at boot on kernels 4.17-rc2 and onwards caused by low entropy
https://bugzilla.kernel.org/show_bug.cgi?id=199567

The first one being the most similar in describing the symptoms. But neither one of the recommended solutions (generating entropy on boot, enabling kasan memory debugger) helped for me.

I noticed while on ubuntu with the mainline kernel 4.17-rc1 that sometimes instead of a black screen I got an actual screendump of what went wrong (I've attached pictures). The errors are always slightly different but all point to initramfs decompression issues. So I started looking at the diff between 4.16 and 4.17-rc1 and reverted the commits to head_64.S (and for the compilation to succeed also the commits to pgtable_64.c). This 'solves' or rather circumvents the boot hangs for me. This workaround still works on 4.17-rc6.


Comment 3


Dmitry Vyukov



2018-05-26 14:54:04 UTC

This does not seem to be related to KASAN/sanitizers.


Comment 4


harryharryharry



2018-05-26 16:40:44 UTC

Sorry, I couldn't find a suitable category. I must have missed 'other'. Thanks for amending.


Comment 5


Kirill A. Shutemov



2018-05-28 11:49:00 UTC

Hm. Could you try to bisect which commit is first broken one?


Comment 7


Kirill A. Shutemov



2018-05-28 13:31:19 UTC

That's not commits. That's just diffs between v4.16 and v4.17-rc1 for these files. It doesn't help much with isolating the problem.

Could you find the first broken *commit*.

This would give the list of commits to look at:

git log --no-merges --oneline v4.16..v4.17-rc1 arch/x86/boot/compressed

And have you checked that plain 4.17-rc6 or -rc7 are still broken? There was couple of fixes in v4.17-rc6 in this area.


Comment 8


harryharryharry



2018-05-30 20:46:40 UTC

Thanks for the pointers, sorry I'm not too savvy with git but I'm trying to learn.

When head is at:
d6289f36aa7d (HEAD) x86/build: Don't pass in -D__KERNEL__ multiple times
loading the initramfs never freezes.

When head is at:
07344b15a994 (HEAD) x86/boot: Fix SEV boot failure from change to __PHYSICAL_MASK_SHIFT
loading the initramfs freezes regularly.

I checked 07344b15a994 with git show, but there doesn't seem to be anything regarding head_64.S or pgtable_64.c in there. However the following commit (194a9749c73d) pertains arch/x86/boot/compressed/head_64.S

Is this the commit that causes the random freezes during initramfs load ?


Comment 9


harryharryharry



2018-05-31 10:45:36 UTC

Forgot to add: I've tried 4.17-rc6 en 4.17-rc7 and 4.17.0-rc7-next-20180529 and they all exhibit the same freezing behaviour.


Comment 10


Kirill A. Shutemov



2018-05-31 14:13:40 UTC

Could you also check if 547edaca247a works fine for you?


Comment 11


harryharryharry



2018-05-31 20:11:49 UTC

No the initramfs also fails to load sometimes when booting a kernel compiled with head at:
547edaca247a (HEAD) x86/mm: Update comment in detect_tme() regarding x86_phys_bits


Comment 12


harryharryharry



2018-06-17 14:12:44 UTC

Issue still occurs with 4.18-rc1

Понравилась статья? Поделить с друзьями:
  • Initram register write error
  • Initializing usb controllers done как исправить
  • Ingenico ошибка 4134
  • Ingenico alert irruption как исправить
  • Information exposure through an error message