Sysvinit works, Systemd doesn't  [Solved]

Message
Author
User avatar
zoli62
Posts: 46
Joined: Tue Dec 18, 2018 6:55 am

Re: Sysvinit works, Systemd doesn't

#31 Post by zoli62 »

Richard wrote: Sun Nov 28, 2021 9:20 pm use blkid & lsblk to check the actual UUID.
And if I looked at the current UUID, what else to do?

User avatar
Richard
Posts: 1590
Joined: Fri Dec 12, 2008 9:31 am

Re: Sysvinit works, Systemd doesn't

#32 Post by Richard »

As root, make a backup of the file, /etc/fstab, of the distro controlling the boot.

Compare the UUID of swap partition to the result of blkid from fstab of distro controlling the boot.
If different, then change the UUID in /etc/fstab and reboot.

Note:
blkid gives all the info though not formatted very well.

sudo lsblk -o NAME,FSTYPE,SIZE,LABEL,MOUNTPOINT,UUID
is more legible format
and
lsblk -f
is easier & legible! [Thanks @ fehlix]
Last edited by Richard on Thu Dec 02, 2021 9:19 am, edited 1 time in total.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
__kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
__Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
HP Ryzen 5 17-cp3xxx with MX23.4 AHS & Liquorix 6.10-12~mx23ahs amd64

User avatar
zoli62
Posts: 46
Joined: Tue Dec 18, 2018 6:55 am

Re: Sysvinit works, Systemd doesn't

#33 Post by zoli62 »

Richard wrote: Wed Dec 01, 2021 9:53 am As root, make a backup of the file, /etc/fstab, of the distro controlling the boot.

Compare the UUID of swap partition to the result of blkid from fstab of distro controlling the boot.
If different, then change the UUID in /etc/fstab and reboot.

Note:
blkid gives all the info though not formatted very well.

sudo lsblk -o NAME,FSTYPE,SIZE,LABEL,MOUNTPOINT,UUID
is more legible format
I made changes to the swap, including, of course, disabling it, the situation remained the same. The problem may be caused by the EFI partition, but other distributions with systemd installed on the machine are working fine.

User avatar
dolphin_oracle
Developer
Posts: 22051
Joined: Sun Dec 16, 2007 12:17 pm

Re: Sysvinit works, Systemd doesn't

#34 Post by dolphin_oracle »

Our efi partition is mounted in fstab as well.

Strticlty speaking it’s not required to mount it at all. So you can comment the line out in fstab and see if that helps
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Richard
Posts: 1590
Joined: Fri Dec 12, 2008 9:31 am

Re: Sysvinit works, Systemd doesn't

#35 Post by Richard »

@DO, yes I thought about that.
There is more automation that probably obviates the need to tweak fstab.

I think you are correct, the issue is deeper than fstab.
I have only ever used systemd for a while when Manjaro went there.
My main reason for hopping away from Manjaro.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
__kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
__Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
HP Ryzen 5 17-cp3xxx with MX23.4 AHS & Liquorix 6.10-12~mx23ahs amd64

User avatar
zoli62
Posts: 46
Joined: Tue Dec 18, 2018 6:55 am

Re: Sysvinit works, Systemd doesn't

#36 Post by zoli62 »

dolphin_oracle wrote: Thu Dec 02, 2021 7:04 am Our efi partition is mounted in fstab as well.

Strticlty speaking it’s not required to mount it at all. So you can comment the line out in fstab and see if that helps
Bingo!

Code: Select all

● mx
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Thu 2021-12-02 16:24:31 CET; 5min ago
   CGroup: /
           ├─user.slice 
           │ └─user-1000.slice 
           │   ├─user@1000.service …
           │   │ ├─app.slice 
           │   │ │ ├─pulseaudio.service 
           │   │ │ │ └─1681 /usr/bin/pulseaudio --daemonize=no --log-target=journal
           │   │ │ └─gpg-agent.service 
           │   │ │   └─1848 /usr/bin/gpg-agent --supervised
           │   │ └─init.scope 
           │   │   ├─1661 /lib/systemd/systemd --user
           │   │   └─1662 (sd-pam)
           │   └─session-2.scope 
           │     ├─1411 lightdm --session-child 12 19
           │     ├─1684 /usr/bin/gnome-keyring-daemon --daemonize --login
           │     ├─1687 xfce4-session
           │     ├─1732 dbus-launch --autolaunch=fd3922b3b21c7a69d665653c5dd718cc --binary-syntax --close-stderr
           │     ├─1733 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
           │     ├─1736 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd
           │     ├─1748 /usr/bin/dbus-launch --exit-with-session --sh-syntax
           │     ├─1749 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
           │     ├─1796 /usr/bin/ssh-agent x-session-manager
           │     ├─1819 /usr/libexec/gvfsd
           │     ├─1824 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f
           │     ├─1832 /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd
           │     ├─1838 /usr/bin/xfce4-screensaver --no-daemon
           │     ├─1850 xfwm4
           │     ├─1857 xfsettingsd
           │     ├─1890 xfce4-panel
           │     ├─1894 Thunar --daemon
           │     ├─1899 xfdesktop
           │     ├─1900 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libwhiskermenu.so 20 29360139 whiskermenu Whisker Menü menü megjelenítése a telepített alkalmazások könnyű eléréséhez
           │     ├─1905 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libsystray.so 6 29360141 systray Status Tray Plugin Provides status notifier items (application indicators) and legacy systray items
           │     ├─1906 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libactions.so 9 29360142 actions Műveletgombok Kijelentkezés, zárolás vagy más rendszerműveletek
           │     ├─1907 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libweather.so 2 29360143 weather Időjárási adatok frissítése A jelenlegi időjárási helyzet megjelenítése
           │     ├─1908 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libbattery.so 13 29360144 battery Akkumulátorfigyelő Az akkumulátor állapotának megjelenítése és figyelése
           │     ├─1909 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libpulseaudio-plugin.so 1 29360145 pulseaudio PulseAudio bővítmény A PulseAudio hangrendszer hangerejének beállítása
           │     ├─1910 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libdatetime.so 14 29360146 datetime Dátum/idő Dátum és idő bővítmény egyszerű naptárral
           │     ├─1943 plank
           │     ├─1950 /usr/bin/python3 /usr/bin/blueman-applet
           │     ├─1972 fbxkb
           │     ├─1973 mx-usb-unmounter
           │     ├─1975 /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
           │     ├─1983 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
           │     ├─1999 nm-applet
           │     ├─2008 /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
           │     ├─2011 xfce4-power-manager
           │     ├─2020 xiccd
           │     ├─2026 diodon
           │     ├─2033 /usr/bin/python3 /usr/share/system-config-printer/applet.py
           │     ├─2044 /usr/libexec/dconf-service
           │     ├─2066 /bin/bash /usr/libexec/bamf/bamfdaemon-dbus-runner
           │     ├─2070 /usr/libexec/bamf/bamfdaemon
           │     ├─2076 /bin/sh -c /usr/lib/zeitgeist/zeitgeist-maybe-vacuum; /usr/bin/zeitgeist-daemon
           │     ├─2083 /usr/bin/zeitgeist-daemon
           │     ├─2095 /usr/lib/zeitgeist/zeitgeist-fts
           │     ├─2110 /usr/bin/python3 /usr/bin/blueman-tray
           │     ├─2120 /usr/libexec/bluetooth/obexd
           │     ├─2147 /usr/libexec/gvfs-udisks2-volume-monitor
           │     ├─2153 /usr/libexec/gvfs-gphoto2-volume-monitor
           │     ├─2158 /usr/libexec/gvfs-mtp-volume-monitor
           │     ├─2163 /usr/libexec/gvfs-goa-volume-monitor
           │     ├─2168 /usr/libexec/gvfs-afc-volume-monitor
           │     ├─2179 /usr/libexec/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
           │     ├─2185 /usr/libexec/gvfsd-metadata
           │     ├─2224 /usr/bin/python3 /usr/lib/apt-notifier/modules/apt-notifier.py
           │     ├─2292 conky -c /home/zoli62/.conky/MX-APInfo/AP-info-debianUpdates-coloursMod
           │     ├─2441 /bin/bash /usr/bin/mx-pkexec doublecmd
           │     ├─2442 doublecmd
           │     ├─2506 dbus-launch --autolaunch fd3922b3b21c7a69d665653c5dd718cc --binary-syntax --close-stderr
           │     ├─2507 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
           │     ├─2554 xfce4-terminal
           │     ├─2559 bash
           │     ├─2584 su
           │     ├─2605 bash
           │     └─2614 systemctl status
           ├─init.scope 
           │ └─1 /lib/systemd/systemd
           └─system.slice 
             ├─haveged.service 
             │ └─397 @usr/sbin/haveged --Foreground --verbose=1
             ├─acpi-fakekey.service 
             │ └─800 /usr/sbin/acpi_fakekeyd -f
             ├─systemd-udevd.service 
             │ └─353 /lib/systemd/systemd-udevd
             ├─cron.service 
             │ └─1012 /usr/sbin/cron -f
             ├─nfs-mountd.service 
             │ └─927 /usr/sbin/rpc.mountd --manage-gids
             ├─polkit.service 
             │ └─811 /usr/libexec/polkitd --no-debug
             ├─bluetooth.service 
             │ └─1231 /usr/libexec/bluetooth/bluetoothd
             ├─accounts-daemon.service 
             │ └─799 /usr/libexec/accounts-daemon
             ├─wpa_supplicant.service 
             │ └─817 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
             ├─lightdm.service 
             │ ├─1039 /usr/sbin/lightdm
             │ └─1098 /usr/lib/xorg/Xorg -dpi $DPI :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
             ├─ModemManager.service 
             │ └─903 /usr/sbin/ModemManager
             ├─nmbd.service 
             │ └─1507 /usr/sbin/nmbd --foreground --no-process-group
             ├─systemd-journald.service 
             │ └─331 /lib/systemd/systemd-journald
             ├─unattended-upgrades.service 
             │ └─901 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
             ├─colord.service 
             │ └─1025 /usr/libexec/colord
             ├─NetworkManager.service 
             │ └─807 /usr/sbin/NetworkManager --no-daemon
             ├─nfs-blkmap.service 
             │ └─345 /usr/sbin/blkmapd
             ├─rsyslog.service 
             │ └─812 /usr/sbin/rsyslogd -n -iNONE
             ├─rpcbind.service 
             │ └─398 /sbin/rpcbind -f -w
             ├─nfs-idmapd.service 
             │ └─357 /usr/sbin/rpc.idmapd
             ├─cups-browsed.service 
             │ └─1121 /usr/sbin/cups-browsed
             ├─smartmontools.service 
             │ └─814 /usr/sbin/smartd -n
             ├─cups.service 
             │ └─895 /usr/sbin/cupsd -l
             ├─upower.service 
             │ └─1861 /usr/libexec/upowerd
             ├─udisks2.service 
             │ └─816 /usr/libexec/udisks2/udisksd
             ├─acpid.service 
             │ └─801 /usr/sbin/acpid
             ├─ntp.service 
             │ └─954 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 105:112
             ├─smbd.service 
             │ ├─1518 /usr/sbin/smbd --foreground --no-process-group
             │ ├─1520 /usr/sbin/smbd --foreground --no-process-group
             │ ├─1521 /usr/sbin/smbd --foreground --no-process-group
             │ └─1524 /usr/sbin/smbd --foreground --no-process-group
             ├─dbus.service 
             │ └─806 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
             ├─system-getty.slice 
             │ └─getty@tty1.service 
             │   └─1512 /sbin/agetty -o -p -- \u --noclear tty1 linux
             ├─avahi-daemon.service 
             │ ├─804 avahi-daemon: running [mx.local]
             │ └─818 avahi-daemon: chroot helper
             └─systemd-logind.service 
               └─815 /lib/systemd/systemd-logind
Thank you, that was the solution. This thread was very instructive. :) What could have caused the EFI partition problem? Maybe the reason for the error was that it was created during the installation of another distribution? I will now tell you that this is a test laptop with a quad boot (Windows 10, MX Linux, Kubuntu, EndeavourOS). Grub is handled by Kubuntu.
Last edited by zoli62 on Thu Dec 02, 2021 10:51 am, edited 1 time in total.

User avatar
zoli62
Posts: 46
Joined: Tue Dec 18, 2018 6:55 am

Re: Sysvinit works, Systemd doesn't

#37 Post by zoli62 »

Richard wrote: Thu Dec 02, 2021 8:37 am @DO, yes I thought about that.
There is more automation that probably obviates the need to tweak fstab.

I think you are correct, the issue is deeper than fstab.
I have only ever used systemd for a while when Manjaro went there.
My main reason for hopping away from Manjaro.
Haven't tried EndeavourOS? Although it also works with systemd.

User avatar
zoli62
Posts: 46
Joined: Tue Dec 18, 2018 6:55 am

Re: Sysvinit works, Systemd doesn't

#38 Post by zoli62 »

Richard wrote: Sat Nov 27, 2021 3:23 pm Many years ago, systemd would go to emegency shell
if the swap was formatted during installation of another distro.
UUID of swap changed.
Maybe it still does?
Final solution.
You're right, it wasn't just the swap partition that was the problem, but the EFI partition, whose UUID changed for some mysterious reason. I think this may have been when I installed Kubuntu on this laptop after installing the other distributions. As soon as I changed the UUID of the EFI partition in the fstab file to the one in the output of the lsblk -o command, the system started immediately, smoothly with no problems. Thanks for the tip, a lesson is that if you have multiple operating systems installed on a drive in a row, you should pay attention to that as well.

User avatar
dolphin_oracle
Developer
Posts: 22051
Joined: Sun Dec 16, 2007 12:17 pm

Re: Sysvinit works, Systemd doesn't

#39 Post by dolphin_oracle »

zoli62 wrote: Wed Dec 08, 2021 11:21 pm
Richard wrote: Sat Nov 27, 2021 3:23 pm Many years ago, systemd would go to emegency shell
if the swap was formatted during installation of another distro.
UUID of swap changed.
Maybe it still does?
Final solution.
You're right, it wasn't just the swap partition that was the problem, but the EFI partition, whose UUID changed for some mysterious reason. I think this may have been when I installed Kubuntu on this laptop after installing the other distributions. As soon as I changed the UUID of the EFI partition in the fstab file to the one in the output of the lsblk -o command, the system started immediately, smoothly with no problems. Thanks for the tip, a lesson is that if you have multiple operating systems installed on a drive in a row, you should pay attention to that as well.
I'm thinking the EFI partition is being formatted by whatever installer kubuntu is using. formatting the partition changes the UUID.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
zoli62
Posts: 46
Joined: Tue Dec 18, 2018 6:55 am

Re: Sysvinit works, Systemd doesn't

#40 Post by zoli62 »

dolphin_oracle wrote: Thu Dec 09, 2021 10:08 am
zoli62 wrote: Wed Dec 08, 2021 11:21 pm
Richard wrote: Sat Nov 27, 2021 3:23 pm Many years ago, systemd would go to emegency shell
if the swap was formatted during installation of another distro.
UUID of swap changed.
Maybe it still does?
Final solution.
You're right, it wasn't just the swap partition that was the problem, but the EFI partition, whose UUID changed for some mysterious reason. I think this may have been when I installed Kubuntu on this laptop after installing the other distributions. As soon as I changed the UUID of the EFI partition in the fstab file to the one in the output of the lsblk -o command, the system started immediately, smoothly with no problems. Thanks for the tip, a lesson is that if you have multiple operating systems installed on a drive in a row, you should pay attention to that as well.
I'm thinking the EFI partition is being formatted by whatever installer kubuntu is using. formatting the partition changes the UUID.
Thanks for everything. This may have been the cause of the problem. One often does not pay attention to such a banal thing. For example, for multiple boot, installing the most recent distribution may affect the previous ones.

Post Reply

Return to “General”