You are not logged in.

#1 2021-11-12 19:31:18

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 10
Website

[SOLVED] System apparently freezes during boot after a fresh install

I've just completed my second attempt at installing Arch Linux on Bcache + Btrfs. In my first attempt (that took 1.5 days to complete) I did one mistake and destroyed the entire root partition file permissions so I had to start over.

Because from the Arch ISO I had not enough space in ramdisk to install bcache-tools I had to use Endeavour OS live USB as my installation environment.

I've followed the official guide for installing with a bootstrap image as close as I could, triple checking everything as well as checking with an unofficial guide to installing on Bcache + Btrfs, making sure the Bcache module is in initramfs etc. Bcache works.

An important consideration for me is making sure Timeshift will be able to utilize Btrfs snapshots.

That's been a nightmare, because it requires a very specific Btrfs layout and marking subvolumes id 5 (filesystem root) as default. Last time I have trashed my install when moving files to subvolumes because I didn't preserve permissions when using `cp -r --reflink`, and deleted the source files before I realized my mistake.

But I've figured it out, this time not breaking my installation.

Now I think I've done everything I could but the system won't boot.

The only error shown in systemd boot up screen is the one I mentioned in the title. However the system seems to continue beyond that point.

It gets to "Finished Record System Boot/Shutdown in UTMP." And then just stops. No error message, no recovery shell, nothing. I tried booting in recovery mode, but it doesn't drop me to the recovery shell.

I've booted live Endeavour OS, set up Bcache there and chrooted probably about 50 times at that point.

In chroot everything seems fine. If I can supply any configuration files that'll help identify the issue - please let me know. I've searched everywhere for possible solutions but it seems nobody has screwed up in the same way before as I did now.

I am absolutely exhausted. I've been trying to install Arch for the past 2.5 days after a catastrophic failure of my previous install, I've done nothing but bash my head against this. And when it briefly works, then I go further and it falls apart again. Things that worked one moment stop working at the next step.

Please, help me.

Last edited by unfa (2021-11-13 12:41:34)


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#2 2021-11-12 19:36:29

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 4,750

Re: [SOLVED] System apparently freezes during boot after a fresh install

unfa wrote:

Because from the Arch ISO I had not enough space in ramdisk to install bcache-tools I had to use Endeavour OS live USB as my installation environment.

Nope. You can just adjust the size of the ramdisk when you boot the Arch ISO...
https://wiki.archlinux.org/title/Tmpfs#Examples


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-11-12 23:45:27

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 10
Website

Re: [SOLVED] System apparently freezes during boot after a fresh install

Slithery wrote:
unfa wrote:

Because from the Arch ISO I had not enough space in ramdisk to install bcache-tools I had to use Endeavour OS live USB as my installation environment.

Nope. You can just adjust the size of the ramdisk when you boot the Arch ISO...
https://wiki.archlinux.org/title/Tmpfs#Examples

Well, that's cool. I didn't know that. Though it doesn't help me any right now big_smile


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#4 2021-11-12 23:48:37

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 10
Website

Re: [SOLVED] System apparently freezes during boot after a fresh install

I've kept around the files from my previous botched install (I am using the same filesystem - no point it reformatting). So I'll try to compare the configuration files between them, maybe I can spot something I've done wrong. Though I don't understand why the boot up process just stalls indefinitely. I've waited a few minutes and nothing happened, and previously I was at the login prompt in a dozen seconds.
Also, the "Failed to start Remount Root and Kernel File Systems" error was shown before and the system still has completed the boot sequence. But not now.


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#5 2021-11-12 23:57:33

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 10
Website

Re: [SOLVED] System apparently freezes during boot after a fresh install

I wonder if the issue could be with my `fstab`, thought I believe it's been like this before and it worked:

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/bcache0 LABEL=unfa-desktop-root
UUID=80591a23-998f-4142-949b-de1ca81d4849       /               btrfs           rw,relatime,space_cache,compress=zst,subvol=/@          0 0
UUID=80591a23-998f-4142-949b-de1ca81d4849       /home           btrfs           rw,relatime,space_cache,compress=zst,subvol=/@home      0 0

# /dev/sdc4
UUID=8550d756-eba0-4039-a936-7769540dd949       /boot           ext4            rw,relatime     0 2

# /dev/sdc1
UUID=3660-3C10                                  /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/sdc2
UUID=d5a67968-e8e4-4687-b3ae-6e962222e027       none            swap            defaults        0 0

# /data
UUID=3f1008b5-df96-427b-8a2e-7e7d1fbc3d76       /data           btrfs           rw,relatime,noauto,user,nofail,space_cache,compress=zst 0 2

EDIT:

I've taken some time off from trying to figure this out, and I have new ideas.

I've pulled systemd log from the last boot and I think I know what the problem might be.

I have installed Timeshift as early as possible to be able to snapshot the system in case I screw something up later.
That has installed Gtk and probably a chunk of the X.org display server. And it seems that this causes my system to crash, because the graphical environemnt is incomplete and not configured correctly.

I'll go on and just install KDE desktop in chroot and see if that fixes the problem.

I'd share my entire boot log, but I am not sure how to do it properly here. Should I use some paste service?

Last edited by unfa (2021-11-13 00:09:46)


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#6 2021-11-13 02:10:36

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 10
Website

Re: [SOLVED] System apparently freezes during boot after a fresh install

I've followed the Installation guide to install KDE Plasma desktop environment and attempted to boot.
I've also updated to Linux 5.15 in the meantime.

Interestingly, the system now fails to boot in a different way. I think the previous issue is solved, but there's now problems.

Here's a complete journal entry from the last boot I've attempted:

https://0bin.net/paste/KWKq2Ez4#ewzxERZ … bgWW+baI1y

Even though I did not touch fstab, somehow the / directory failed to mount:

Nov 13 02:05:31 unfa-desktop systemd-remount-fs[399]: mount: /: mount point not mounted or bad option.
Nov 13 02:05:31 unfa-desktop systemd-remount-fs[396]: /usr/bin/mount for / exited with exit status 32.
Nov 13 02:05:31 unfa-desktop systemd[1]: systemd-remount-fs.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 02:05:31 unfa-desktop systemd[1]: systemd-remount-fs.service: Failed with result 'exit-code'.
Nov 13 02:05:31 unfa-desktop systemd[1]: Failed to start Remount Root and Kernel File Systems.

This is probably the problem I've had before, and I don't know if it's a critical one.

There 's more though:

Nov 13 02:05:31 unfa-desktop systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 02:05:31 unfa-desktop systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Nov 13 02:05:31 unfa-desktop systemd[1]: Failed to start Load Kernel Modules.
(...)
Nov 13 02:05:31 unfa-desktop systemd-modules-load[395]: Failed to look up module alias 'crypto_user': Function not implemented

This is another error that I've seen in the past that didn't seem to be a critical one.

Interestingly /home was mounted fine. I don't see how that could happen if / was not mountable. Or was that error about something else?

Nov 13 02:05:33 unfa-desktop systemd[1]: Mounting /home...
(...)
Nov 13 02:05:33 unfa-desktop systemd[1]: Mounted /home.

Then there's something about unrecognized ext4 filesystem on the boot partition:

Nov 13 02:05:33 unfa-desktop systemd[1]: boot.mount: Directory /boot to mount over is not empty, mounting anyway.
Nov 13 02:05:33 unfa-desktop systemd[1]: Mounting /boot...
Nov 13 02:05:33 unfa-desktop mount[495]: mount: /boot: unknown filesystem type 'ext4'.
Nov 13 02:05:33 unfa-desktop systemd[1]: boot.mount: Mount process exited, code=exited, status=32/n/a
Nov 13 02:05:33 unfa-desktop systemd[1]: boot.mount: Failed with result 'exit-code'.
Nov 13 02:05:33 unfa-desktop systemd[1]: Failed to mount /boot.
Nov 13 02:05:33 unfa-desktop systemd[1]: Dependency failed for /boot/efi.
Nov 13 02:05:33 unfa-desktop systemd[1]: Dependency failed for Local File Systems.

I've realized that I've forgotten to do `mount -a` in chroot and then updated the kernel, which has put the images into /boot, but not on the boot partition. I've just fixed that and I'll see if that resolves all the issues. I don't expect it to though.


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#7 2021-11-13 12:09:37

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 10
Website

Re: [SOLVED] System apparently freezes during boot after a fresh install

It seems the only real problem is with my GPU.

From journalctl boot log it appears that the system is working fine under the hood, but the display freezes, due to a problem with initializing the GPU.

Nov 13 03:14:10 unfa-desktop kernel: [drm:gmc_v8_0_sw_init.cold [amdgpu]] *ERROR* Failed to load mc firmware!
Nov 13 03:14:10 unfa-desktop kernel: [drm:amdgpu_device_init.cold [amdgpu]] *ERROR* sw_init of IP block <gmc_v8_0> failed -2
Nov 13 03:14:10 unfa-desktop kernel: amdgpu 0000:05:00.0: amdgpu: amdgpu_device_ip_init failed
Nov 13 03:14:10 unfa-desktop kernel: amdgpu 0000:05:00.0: amdgpu: Fatal error during GPU init
Nov 13 03:14:10 unfa-desktop kernel: amdgpu 0000:05:00.0: amdgpu: amdgpu: finishing device.
Nov 13 03:14:10 unfa-desktop kernel: x86/PAT: systemd-udevd:400 freeing invalid memtype [mem 0x00000000-0xffffffffffffffff]
Nov 13 03:14:10 unfa-desktop kernel: amdgpu: probe of 0000:05:00.0 failed with error -2

Here's the full boot log: https://0bin.net/paste/pLBmR2kf#Hml-mV4 … 1oqPZz55MC

I'll see if it's a missing drm package...

Last edited by unfa (2021-11-13 12:10:34)


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

#8 2021-11-13 12:40:35

unfa
Member
From: Warsaw/Poland
Registered: 2016-11-07
Posts: 10
Website

Re: [SOLVED] System apparently freezes during boot after a fresh install

I've figured it out.

I've checked the AMDGPU section on the Wiki and found out that I did not install linux-firmware.
I've also realized that I did not enable the sddm service in systemctl.

After applying these two changes, my system booted to KDE desktop (since I've previously configured autologin).

Last edited by unfa (2021-11-14 00:07:49)


I make videos about audio production using Linux & FOSS: YouTube · Odysee · PeerTube

Offline

Board footer

Powered by FluxBB