You are not logged in.

#1 2012-09-05 22:14:53

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

An FYI about systemd

After spending the past hour troubleshooting a "Welcome to emergency mode" problem on my system, whereby after a quick recovery mode test to see if I had finally got it working I couldn't boot anything but emergency mode, I figured I should post this in case it helps someone out in the future.

If you use systemd, have a partition mounted via fstab, and change that partition (whether it be splitting it, formatting to a different FS or whatever - anything that will change the way the drive presents itself to the system), be sure to change your fstab entry before you reboot. If you don't, systemd will choke and drop you to emergency mode at boot without so much as a bye or leave, and nothing to tell you why.

In my case, I'd reformatted an ext4 partition on my SSD to NTFS while testing efficiency to see if I could carry some benefits across to Windows on those rare occasions that I actually boot Windows, but I'd forgotton to change the fstab entry, and since I hadn't rebooted my system for three days, I'd forgotten I made the change. Oddly, my fstab and grub entries got themselves re-written to boot from and mount the platter drive rather than the SSD, too (adding to the confusion for me). I presume it picked the entries up from the platter drive, though how they got written back to the ssd I have no idea.

Even more annoying, systemd reported an error on one drive, though the one it complained about is not mounted at boot and is a truecrypt partition anyway. It didn't stop me trying all sorts of things (including adding it to fstab with "nofail") trying to get it working. The fix in the end was to comment out the entry for the changed partition and then it booted like nothing had happened. That hasn't stopped me missing my mid-week pint while I fixed it, though sad

I hope this saves someone else the headache.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#2 2012-09-05 23:46:17

ratcheer
Member
Registered: 2011-10-09
Posts: 912

Re: An FYI about systemd

I had a very similar issue, just today.

Tim

Offline

#3 2012-10-26 00:45:24

OttoKrueja
Member
From: PM & CB · GER
Registered: 2011-11-04
Posts: 2

Re: An FYI about systemd

Thanks! Thanks! Thanks! Solved my issues after a fresh installation.

Offline

#4 2012-10-26 00:47:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: An FYI about systemd

A better place to report this would be the systemd wiki article if you haven't done so already.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB