I switched from SysVInit to systemd on my VPS and the file system has been mounted read-only ever since. Remounting the file system with
mount -o remount,rw / works, but the file system is mounted read-only again on reboot.
To install systemd, I ran:
apt install systemd
apt install systemd-sysv
To date, I have tried:
- Reinstalling systemd and systemd-sysv
initafter seeing this message when running
apt install systemd-sysv:
dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
init depends on systemd-sysv | sysvinit-core; however:
Package systemd-sysv is not installed.
Package sysvinit-core is to be removed.
- Uninstalling old packages that were required by SysVInit (
I've looked around but I can't seem to find a solution. I read that Linux systems occasionally do this to protect your data when they encounter errors, so I've included the output from
dmesg. Other users seem to experience similar issues when there are problems with storage, but I haven't seen any of the same messages they saw when running
fsck from util-linux 2.36.1
Any help would be appreciated. I'm a relatively experienced GNU/Linux user but I know very little about what happens when a Linux system boots (or why it goes wrong).