Skip to content

pacman -Suy crashed/froze on kernel update, system froze & became un-bootable

Not downloaded yet

On friday evening I ran pacman -Suy as usual, but it weirdly just froze while upgrading the package linux-zen. This seemed bit alarming, but I decided to open a new terminal session (in konsole, and on tty2) and I was greeted with red text saying /usr/bin/bash didn't exist. Uh-oh.

I left the machine be for a bit (like 10-15 minutes), maybe it was still doing some upgrade on something but the output just was stalled, for whatever reason. But it didn't progress. Desktop "worked", as in mouse moved, running applications kinda worked, nothing new could be launched. I forcefully shut it down, and as expected, the system didn't boot.

GRUB said kernel was not found.

Fastforward to today, I booted the system with fresh arch install usb-disk, mounted my root partition to /mnt, tried to arch-chroot to it and got greeted with an error which roughly read "Can't find or execute /usr/bin/bash". The file did exist on the partition, but just didn't execute. File permissions seemed fine. On a hindsight should have checked the contents of the file.

I got it fixed with pacstrap /mnt base linux-zen linux linux-firmware bash (installed the base linux kernel for future failsafe), and after that arch-chroot worked. Ran a full pacman -Suy, no errors. Updated grub config and rebooted & everything seems to work.

But.. what the heck happened? How do I even begin to troubleshoot this so that it doesn't happen again?

Initial suspect was my SSD, it's ~few years old, Kingston. I've been checking massive reads and writes with:

  • dd the whole /dev/sda to /dev/null, no read errors
  • dd if=/dev/zero of=herp.data bs=4k count=4M; cmp -b /dev/zero herp.data; data seems fine.

SMART data seems right to me https://pastebin.com/73ZGrzaf - unless I'm horribly mistaken.

DiskMonitor (from aur) shows temperature-celsius as 98.15 C, which ... does kinda sound bad, but the device itself doesn't feel warm at all (took it out to check if it felt warm). Seems like a faulty reading. (edit: https://i.imgur.com/CEpipvx.png)

At the time of the incident, I had ~week of uptime, can't recall if I had ran pacman during the week. There is a chance I executed pacman from a directory which no-longer existed (had several konsole-tabs open, some home-directory cleanup did happen), but surely that shouldn't break it? There were like ~50 GiB of free space on / parition as well.

Any and all ideas welcome

edit:

the linux-zen package which crashed last time, seems to be the same as it was on friday, yet now it works

root@dev /var/cache/pacman/pkg # ls -l | grep zen
-rw-r--r-- 1 root root 141238588  8.12. 19:34 linux-zen-5.15.7.zen1-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root       141  8.12. 19:34 linux-zen-5.15.7.zen1-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root  27228340  8.12. 19:34 linux-zen-headers-5.15.7.zen1-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root       141  8.12. 19:34 linux-zen-headers-5.15.7.zen1-1-x86_64.pkg.tar.zst.sig

root@dev /var/cache/pacman/pkg # md5sum linux-zen*
5a00a0863b3ea191c33c549333e0ec7f  linux-zen-5.15.7.zen1-1-x86_64.pkg.tar.zst
c20aa07c875d897f4732aac6e86779a5  linux-zen-5.15.7.zen1-1-x86_64.pkg.tar.zst.sig
f67b24f93212026e69c34751cb7920c6  linux-zen-headers-5.15.7.zen1-1-x86_64.pkg.tar.zst
ec9c882fd65b0e13570802b39eaf6376  linux-zen-headers-5.15.7.zen1-1-x86_64.pkg.tar.zst.sig

edit2: and the bash package.

root@dev /var/cache/pacman/pkg # ls -l | grep bash
-rw-r--r-- 1 root root   1712112 21.11. 23:39 bash-5.1.012-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root       566 21.11. 23:39 bash-5.1.012-1-x86_64.pkg.tar.zst.sig

root@dev /var/cache/pacman/pkg # md5sum bash*
ffcdf85599f4bda15c0864aa6536cffe  bash-5.1.012-1-x86_64.pkg.tar.zst
f289c8e2d184e9ed165164e15777212d  bash-5.1.012-1-x86_64.pkg.tar.zst.sig

Edited 13 Dec 2021. We only hold this version.

5 points7 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
5 · 86% up
Kind
Image
ID
rfcha4

Author

2
posts
68
comments
2
media
View profile
No comments archived yet. Reddit counts 7.

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.