Initramfs, several errors

Hello everyone,

when Fedora was recently installed, I got an error message after I booted it from my SSD.

Initramfs unpacking failed: XZ-compressed data is corrupt

I was able to fix this first error by manually setting the correct tact frequency of my RAM from 2133Mhz to 3200MHz (https://www.linuxquestions.org/questions/linux-software-2/xz-compression-data-is-corrupt-system-halted-error-on-boot-up-4175574040/).

Some days ago I noticed that my mainboard didn’t really turn off when I had shutdown my computer. Then I decided to completely turn off the computer’ electricity (BIOS battery is new). Always if I start the computer after I turned the electricity on again, a new initramfs error appears. It disappears if I start the computer via reset button (electricity wasn’t turned off). Since I read something about FCLK frequency in relation to the first error and informed myself further about the FCLK frequency (https://techgeekish.com/what-is-fclk-frequency/). My idea was: setting it manually might solve the problem “because there’s maybe a relation to the previous initramfs error”? I didn’t set it to auto anymore even if the correct FCLK frequency was automatically chosen (1600Mhz). I did set it to 1600Mhz. Nothing changed due to that. The new error consists. I then used Google. I found this (https://forums.linuxmint.com/viewtopic.php?t=323152) & this (https://bbs.archlinux.org/viewtopic.php?id=136540) but I didn’t change something so far…because I’m not sure what I’d actually doing there. So, the error is following:

Initramfs unpacking failed: uncompression error

How can I fix this? Are the solutions, which I’ve already found useful? Do I even have to fix it? Are there any big risks if I won’t fix it and continue as I did so far (shutdown, turn electricity off, turn electricity on, boot, reboot via reset button, select fedora to boot, boot)?

Sincerely 0udioy1ystery!

P.S. The error DOES NOT appear if I let the electricity on. That is somehow weird…(but somehow not weird because…RAM unloads…if the electricity is off…? And since the electricity is not off/on the RAM has something in itself which is needed so that the error doesn’t appear?)

This sounds like the frequency settings in BIOS may not be properly maintained and when you disconnect power they revert to default. You stated that you have a new battery for BIOS but have you confirmed it is 1) properly installed? and 2) the correct battery?

When power is retained to the machine it automatically maintains the bios settings. When power is disconnected it relies on the battery to retain those settings. I would check and affirm that everything I did was done properly, maybe even installing (another) new battery just in case. Sometimes the contacts in the battery holder may become damaged and not maintain good contact as another potential problem.

2 Likes

Hello Jeff,

I bought the mainboard recently (less than a week ago). The battery was installed and the BIOS also “remembers” the time (it’s 2 hours less than my OS time but it’s saved).

I will exchange the battery as soon as possible (tomorrow or the day after tomorrow).

I will also check the contacts then.

Thanks for the help so far! I’m going to reply as soon as I’ve done all these steps!

Sincerely!

P.S. Is there maybe a setting in the BIOS which says “don’t use the battery’ power, always use the system’ power”?

I just wanted to write down a new appeared error (but I didn’t do the steps which I wanted to do tmw or day after tmw…so this is “just for the documentation”…for now) (the old error wasn’t there, only this new one Xd):

Initramfs unpacking failed: no cpio magic

That does not seem to be related to bios, but the OS itself.

Please show us the output of dnf list installed xz* just in case this may be related to a recent malware found upstream from fedora. (apparently not an issue if the version shown is not 5.6.0)

Your description seems to imply that you may have purchased a second-hand motherboard. Is that correct? If so then this might be related to the bios version as well. Support for SSDs has changed with different motherboards, bios versions, etc.

1 Like

Ok.

The security vulnerability you’re talking about relates only to Fedora 40 Rawhide I believe (https://fedoramagazine.org/cve-2024-3094-security-alert-f40-rawhide/) :thinking:.

Anyway I input the command:

annatar@fedora:~$ dnf list installed xz*
Installed Packages
xz.x86_64                           5.4.4-1.fc39                       @anaconda
xz-libs.i686                        5.4.4-1.fc39                       @fedora  
xz-libs.x86_64                      5.4.4-1.fc39                       @anaconda
annatar@fedora:~$

The motherboard is new, not second-hand (https://www.amazon.de/dp/B089HGSZ1J).

I use the SSD Samsung 850 Pro. My BIOS version is the latest (PRIME B550-PLUS BIOS 3607) because of security vulnerabilities.

With that board, new, there should have been no reason to replace the battery. (they usually last for many years on motherboards)

It was merely a guess and a hope that the malware was not a factor in the problems with uncompressing the initramfs image. I am glad to see that it is not and yes, I knew it should not have been a factor on f39, but sometimes better safe than sorry so I wanted confirmation.

The SSD should not be an issue.
Please show us the results from inxi -Fzxx

1 Like

I did not replace the battery. I’m sorry if it sounded like that. It’s still the original.

It’s alright. No problem.

annatar@fedora:~$ inxi -Fzxx
System:
  Kernel: 6.8.5-201.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-14.fc39
  Desktop: GNOME v: 45.5 tk: GTK v: 3.24.41 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 39 (Workstation Edition)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME B550-PLUS v: Rev X.0x
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 3607
    date: 03/22/2024
CPU:
  Info: 6-core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 3733 high: 4212 min/max: 2200/4208 boost: enabled cores:
    1: 3600 2: 3600 3: 3600 4: 3600 5: 4212 6: 3905 7: 3600 8: 3600 9: 3600
    10: 3598 11: 4199 12: 3692 bogomips: 86403
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: eVga.com. driver: nvidia
    v: 550.67 arch: Maxwell pcie: speed: 8 GT/s lanes: 16 ports: active: none
    off: DVI-D-1 empty: DP-1,DVI-I-1,HDMI-A-1 bus-ID: 06:00.0
    chip-ID: 10de:13c2
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-2:2 chip-ID: 046d:082d
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: DVI-D-1 mapped: DVI-D-0 note: disabled
    model: ViewSonic VG2401 SERIES res: 1920x1080 dpi: 92 diag: 609mm (24")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.67 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce GTX 970/PCIe/SSE2
  API: Vulkan v: 1.3.275 surfaces: xcb,xlib device: 0 type: discrete-gpu
    driver: N/A device-ID: 10de:13c2 device: 1 type: cpu driver: N/A
    device-ID: 10005:0000
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA GM204 High Definition Audio vendor: eVga.com.
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 06:00.1 chip-ID: 10de:0fbb
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 08:00.4 chip-ID: 1022:1487
  Device-3: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-2:2 chip-ID: 046d:082d
  API: ALSA v: k6.8.5-201.fc39.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK RTL8111H driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 05:00.0 chip-ID: 10ec:8168
  IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.54 TiB used: 666.67 GiB (42.3%)
  ID-1: /dev/sda vendor: Crucial model: CT500MX500SSD1 size: 465.76 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-2: /dev/sdb vendor: Samsung model: SSD 850 PRO 128GB size: 119.24 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdc vendor: Seagate model: Expansion+ size: 931.51 GiB
    type: USB rev: 3.0 spd: 5 Gb/s lanes: 1 serial: <filter>
  ID-4: /dev/sdd vendor: Intenso model: Slim Line size: 57.7 GiB type: USB
    rev: 3.0 spd: 5 Gb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 117.66 GiB used: 14.73 GiB (12.5%) fs: btrfs dev: /dev/sdb3
  ID-2: /boot size: 973.4 MiB used: 373.3 MiB (38.3%) fs: ext4
    dev: /dev/sdb2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/sdb1
  ID-4: /home size: 117.66 GiB used: 14.73 GiB (12.5%) fs: btrfs
    dev: /dev/sdb3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 256 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A gpu: nvidia temp: 46 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Memory: total: 16 GiB available: 15.52 GiB used: 6.41 GiB (41.3%)
  Processes: 548 Power: uptime: 2h 8m wakeups: 0 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 14 Compilers: gcc: 13.2.1 Shell: Bash
    v: 5.2.26 running-in: gnome-terminal inxi: 3.3.33
annatar@fedora:~$

The only thing that initially sticks out to me is that you are using a GPU with HDMI, DP, and DVI-D ports and you are using the DVI-D port. Is there a reason you are not using one of the other ports?

This should not cause an issue with loading from the drive, but is just an observation.

The next thing is that you have 4 drives, all apparently sata (sda, sdb, sdc, & sdd), the last 2 seemingly connected by USB. The system is installed on /dev/sdb.

As far as I can tell there really should be no problem unless you may have something miss-configured in the bios such as memory speed, overclocking, or similar; or potentially something is corrupted with the way the OS was installed.

Have you verified all the bios settings to match the RAM installed, the CPU installed, and the power supply is adequate for the included hardware? Have you considered doing a reinstall just in case the os itself may be the problem?

The time should also be displayed with hostnamectl just to rule out other issues caused by time configs.

1 Like

I use DVI-D because then I can get 144 FPS (because I can use 144 Hz).

Ok.

I had to adjust my memory speed (to 3200 MHz) because the BIOS recognized the wrong memory speed (2133 MHz). I did not overclock anything. Ok but what could it be?

I have a Corsair CS750M.

I’ve read that the initramfs can be regenerated so that a reinstallation of the OS isn’t needed.

I think there’s nothing about time there…?

annatar@fedora:~$ hostnamectl
     Static hostname: (unset)                              
  Transient hostname: fedora.fritz.box
           Icon name: computer-desktop
             Chassis: desktop 🖥️
          Machine ID: <I removed this text, hope that's alright>
             Boot ID: <I removed this text, hope that's alright>
    Operating System: Fedora Linux 39 (Workstation Edition)
         CPE OS Name: cpe:/o:fedoraproject:fedora:39
      OS Support End: Tue 2024-11-12
OS Support Remaining: 6month 3w 6d
              Kernel: Linux 6.8.5-201.fc39.x86_64
        Architecture: x86-64
     Hardware Vendor: ASUS
      Hardware Model: PRIME B550-PLUS
    Firmware Version: 3607
       Firmware Date: Fri 2024-03-22
        Firmware Age: 3w 3d
annatar@fedora:~$

You mentioned time. The BIOS time is -2 than my OS time. Is that a problem? On my OS it’s ~11 PM, in my BIOS it’d be ~9 PM.

P.S. I go to sleep. Good night!

The BIOS may be using a lower memory speed due to limitations of other components. Did you use memory from an ASUS Qualified vendor? Try running the system with 2133 to see if the problems go away. Also check that the power supply has ample capacity – a marginal supply may give poor quality power under load.

1 Like

OOPs.
I meant to use timedatectl instead.
Sorry about the mixup.

1 Like

Good morning,

the memory is from G. Skill (F4-3200C16D-16GIS).

It’s not going to work on 2133MHz as the reason had been stated out right at the beginning of this thread. The PSU isn’t a bad quality; the PSU’ name also had been stated in this thread. And my hardware isn’t really limitated as this fact can be filtered out by reading the already given data about my specs, which had been given already (I guessed this is the data: https://discussion.fedoraproject.org/t/initramfs-several-errors/113160/9).

If I’d doubt something about my hardware, it’d be maybe - but I’m not sure so far since we’re still trying to find the problem/s - that my RAM somehow could have problems. Further details, which could underline this guess, in a seperate reply (https://discussion.fedoraproject.org/t/initramfs-several-errors/113160/17).

Good morning,

no problem, nothing has damaged. This is the console log:

annatar@fedora:~$ timedatectl
               Local time: Tue 2024-04-16 11:19:14 CEST
           Universal time: Tue 2024-04-16 09:19:14 UTC
                 RTC time: Tue 2024-04-16 09:19:14
                Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
annatar@fedora:~$

P.S. I’ve got a new error:
https://discussion.fedoraproject.org/t/initramfs-several-errors/113160/17

Good morning everyone,

I just got a new error which replaced the old one. It’s now:

Initramfs unpacking failed: broken padding

I informed myself of course. And I found this (but not sure if it could be a solution):
https://forums.linuxmint.com/viewtopic.php?t=360898

Kind Regards!

From: [quote=“0udio1ystery, post:17, topic:113160”]
https://forums.linuxmint.com/viewtopic.php?t=360898
[/quote]

The “broken padding” thing would quite likely be to say you have physical memory issues. We can’t in that case advise much more than e.g. running memtest86 to diagnose such.

1 Like

Yes, I will try that. I just began to read the Github guide (https://github.com/memtest86plus/memtest86plus/?tab=readme-ov-file#build-and-installation); looks very complicated but somehow I will be able to run this.

So I have now used Memtest. I had completely forgotten that Memtest just continues unless you cancel the program yourself; it ran 5 hours :roll_eyes::smiling_face_with_tear::face_holding_back_tears:. I also forgot to save the result somehow - I installed the Fedora package but I think I still have to save the results separately somehow. Anyway, there was an error. This is bad. I’m going to run Memtest again tomorrow. After that I’m going to post a screenshot/photo here. Cya!