The crash of systemd-journald with a SIGABRT signal during the fsync() operation is a known issue that has been reported in various contexts. This problem often arises due to underlying hardware or driver issues, particularly related to I/O operations. For instance, in a GitHub issue, it was noted that such crashes can occur when the I/O system hangs during fsync(), leading to the journald process becoming unresponsive and subsequently being terminated by the system watchdog[1].
Given that your Ubuntu installation is on an external HDD and your BIOS defaults to booting from the internal HDD (which starts Windows upon restart), the observed behavior might be influenced by how the system handles the external drive during shutdown and restart sequences.
To mitigate this issue, consider the following steps:
-
Update System Packages: Ensure that your Ubuntu system is fully updated, as fixes for known issues are often included in system updates.
-
Check Hardware and Drivers: Investigate potential hardware or driver issues that could be causing I/O hangs. This includes checking for firmware updates for your external HDD and ensuring that all system drivers are up to date.
-
Modify Shutdown Behavior: Since your BIOS defaults to booting from the internal HDD, you might want to adjust the shutdown behavior of Ubuntu to accommodate this. One approach is to configure Ubuntu to power off the system instead of performing a standard restart. This way, you can manually power on the system, allowing the BIOS to boot from the internal HDD as intended.
To change the default behavior of the restart command to perform a shutdown instead, you can create an alias in your shell configuration file (e.g., ~/.bashrc or ~/.zshrc):
alias restart='sudo shutdown -h now'
After adding this line, reload the shell configuration by running source ~/.bashrc (or source ~/.zshrc for Zsh). Now, when you type restart, the system will shut down instead of restarting.
-
Adjust BIOS Settings: If possible, modify your BIOS settings to change the default boot order or to recognize the external HDD as the primary boot device when it's connected. This adjustment can help ensure that the system boots from the desired device without manual intervention.
By implementing these steps, you can work towards resolving the systemd-journald crash issue and align the system's restart behavior with your preferences.