Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
system crash because ssd remounted read-only
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message

Joined: 08 Feb 2006
Posts: 196

PostPosted: Fri Apr 24, 2020 5:14 pm    Post subject: system crash because ssd remounted read-only Reply with quote

Hi everybody,
Today, while my laptop was compiling the weekly world update, the system suddenly crashed. When the screen started to freeze for a moment, I switched to the logging console to see what was going on.
- First thing I noticed was that frequently happening MCE notice about CPUa throttled due to temperature to high.
- Then the xhci modules crashed.
- Then also the SSD stopped: Messages like: "dm-2 ext_end_bio I/O error" or "failed to set apst" showed up, the disk was automatically remounted read-only.
- I could switch back to X but: issuing console commands failed: smartctl > "bus error", mount > "Segmentation fault", halt > "I/O error", clicking plasma power button: kwin crashes
- New console window: bash crashed
- Login attempt at another text console failed, too: "Id 'c2' respawing too fast"
I have to write it from memory, because there was no logging to a readonly filesystem.

Reboot via real power button helps.

Smartctl shows no errors or problems with the disk. Also no logs about temperature problems.

This happened first with the upgrade of mariadb, then also with spidermonkey. Both seem to be resource hungry.

This is a half year old Laptop (Fujitsu Lifebook U939) with 16GB RAM, i5-8265U CPU, Samsung 512GB SSD, dual boot with win10 (rarely used), encrypted root lvm with swap in it, set up partly according to Sakakis Manual.

Could this be a temperature problem? Should I just lower the portage compiling load? Under heavy load, the system temp is shown as 85°C, the SSD according to smartctl is between 50 and 65. This was also the case when the crash happened.
Or should I suspect a hardware problem?


# emerge --info
Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.30-r8, 5.4.28-gentoo x86_64)
System uname: Linux-5.4.28-gentoo-x86_64-Intel-R-_Core-TM-_i5-8265U_CPU_@_1.60GHz-with-gentoo-2.6
KiB Mem: 16064696 total, 11703116 free
KiB Swap: 10485756 total, 10485756 free
Timestamp of repository gentoo: Fri, 24 Apr 2020 09:00:01 +0000
Head commit of repository gentoo: f646e1f7474a0d4e2a284c73d7acb0e105fca0f0
Head commit of repository sakaki-tools: 5df9b0002ae5627043dcbcb3b9e95dcc1a7d0b8e

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash: 4.4_p23-r1::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo, 3.8.2-r1::gentoo
dev-util/cmake: 3.16.5::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.42.1::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.16.1-r1::gentoo
sys-devel/binutils: 2.33.1-r1::gentoo
sys-devel/gcc: 9.3.0::gentoo
sys-devel/gcc-config: 2.2.1::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.30-r8::gentoo

location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://
priority: -1000
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes

location: /var/db/repos/sakaki-tools
sync-type: git
masters: gentoo
priority: 50

MAKEOPTS="-j9 -l8"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8"
ACCEPT_LICENSE="@FREE CC-Sampling-Plus-1.0"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS=" rsync://"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j8 -l8"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac acl acpi activities aes aim alsa amd64 amr berkdb bidi bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif fam flac fortran ftp gdbm gif gimp gphoto2 gpm gtk iconv icu idea imap ipv6 jabber jpeg jpeg2k kde kipi kwallet lcms ldap libnotify libtirpc mad mjpeg mng mp3 mp4 mpeg multilib ncurses nls nptl offensive ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds qml qt5 quicktime readline sdl seccomp semantic-desktop sox spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l vcd vorbis widgets win32codecs wxwidgets x264 xattr xcb xcomposite xine xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Back to top
View user's profile Send private message

Joined: 17 Oct 2006
Posts: 168
Location: Bavaria

PostPosted: Fri Apr 24, 2020 9:35 pm    Post subject: Re: system crash because ssd remounted read-only Reply with quote

freifunk_connewitz wrote:
Could this be a temperature problem?

freifunk_connewitz wrote:
Should I just lower the portage compiling load?

YES !!!
freifunk_connewitz wrote:
Or should I suspect a hardware problem?

Wait until ...
1. You lowered your MAKEOPTS to ="-j4" and
2. Change your EMERGE_DEFAULT_OPTS to ="--with-bdeps=y" and
... then see what happens after an "emerge -uNDv @world"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum