View previous topic :: View next topic |
Author |
Message |
un74 n00b
Joined: 09 Jan 2025 Posts: 8
|
Posted: Fri Jan 10, 2025 11:09 am Post subject: boot breaks upon 'Network Time Syncronization' |
|
|
Yesterday finally updated/upgraded my gentoo system and averything was all right. Left pc on during the night after xlocking. This morning was not able to login and restarted pc.
Gentoo does not boot anymore! Boot uses systemd and gets stuck at message:
[OK] Started Network Time Syncronization.
[OK] Reached target Containers.
[ 16....] igb ....enp4s0 NIC Link is up ...
You are in emergency mode
at the following link you should be able to see a srennshot of the messages...
https://1drv.ms/i/c/3e25edf804115a0f/EUhB0Xb8a7dOqCwWJ7qqnkgBqGaSS3iTwZ6aCK-foAKPDw?e=B15qJU
Finally, worth to say I dual boot windows 11.
What could have happened tonight -? How to sort booting out again? |
|
Back to top |
|
|
un74 n00b
Joined: 09 Jan 2025 Posts: 8
|
Posted: Fri Jan 10, 2025 2:52 pm Post subject: |
|
|
am noticing 2 issues:
[*] systemd-journald starts one hour earlier than current time
[*] timedatectl does not work i emergency mode and delivers message:" Failed to connect to bus: File or directory not existing"
[*]hwclock and date commands release times that differ by one hour, unless enter 'hwclock --systohc' and then hwlock is correct
[*]changed regedit in Windows 11 to UTC time |
|
Back to top |
|
|
Ralphred l33t
Joined: 31 Dec 2013 Posts: 702
|
Posted: Fri Jan 10, 2025 7:34 pm Post subject: Re: boot breaks upon 'Network Time Syncronization' |
|
|
un74 wrote: | Finally, worth to say I dual boot windows 11. |
Yeah, Windows uses "local time" for the CMOS RTC, linux uses UTC. You need to make them both use "local time" or both use UTC.
I know how to make gentoo use a local time RTC with openrc, but not systemd, so here are some instructions I found for making windows use UTC instead: https://uilton.com/kb/how-to-make-windows-store-time-in-utc/
Once that's done disable timesyncd and install ntp instead, that way you don't have to worry about synctohw etc. |
|
Back to top |
|
|
druggo Guru
Joined: 24 Sep 2003 Posts: 325 Location: Hangzhou, China
|
Posted: Sat Jan 11, 2025 10:04 am Post subject: Re: boot breaks upon 'Network Time Syncronization' |
|
|
un74 wrote: |
You are in emergency mode
at the following link you should be able to see a srennshot of the messages...
|
enter your root password to login the emergency mode and to see what's going on _________________ AMD FX-8300 / Loongson-2f (lemote-yeeloong) |
|
Back to top |
|
|
un74 n00b
Joined: 09 Jan 2025 Posts: 8
|
Posted: Sun Jan 19, 2025 3:22 pm Post subject: |
|
|
Thank you druggo! Issue was indeed with fsck, which came up beforehand in booting process. So far, the problem was not really related to network, even if emergency mode became available at this point. Can reproduce the issue even now, because xlock (activated along the night) does not accept my user pwd for some reason, so need to shutdown the system the hard way and in subsequent reboot fsck fails. Anyway, just in case you can correct the partition# as root in emergency mode with command 'fsck -y /dev/partition#'. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23020
|
Posted: Sun Jan 19, 2025 3:38 pm Post subject: |
|
|
Why are you using a hard power-off to recover from a locked terminal? Log in as root on a separate terminal, or use an ACPI soft-off to trigger a halt blindly.
Generally, fsck should not fail to recover a system after a hard poweroff. I try hard not to let my systems die that way, but I cannot recall a case in many years where fsck did not gracefully recover on its own, even when power failure forced an unclean poweroff. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Sun Jan 19, 2025 4:43 pm Post subject: |
|
|
Do you use ReiserFS for your /boot and/or root partition? |
|
Back to top |
|
|
|