Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
boot breaks upon 'Network Time Syncronization'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
un74
n00b
n00b


Joined: 09 Jan 2025
Posts: 8

PostPosted: Fri Jan 10, 2025 11:09 am    Post subject: boot breaks upon 'Network Time Syncronization' Reply with quote

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
View user's profile Send private message
un74
n00b
n00b


Joined: 09 Jan 2025
Posts: 8

PostPosted: Fri Jan 10, 2025 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 702

PostPosted: Fri Jan 10, 2025 7:34 pm    Post subject: Re: boot breaks upon 'Network Time Syncronization' Reply with quote

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
View user's profile Send private message
druggo
Guru
Guru


Joined: 24 Sep 2003
Posts: 325
Location: Hangzhou, China

PostPosted: Sat Jan 11, 2025 10:04 am    Post subject: Re: boot breaks upon 'Network Time Syncronization' Reply with quote

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
Code:
 journalctl -xb
to see what's going on
_________________
AMD FX-8300 / Loongson-2f (lemote-yeeloong)
Back to top
View user's profile Send private message
un74
n00b
n00b


Joined: 09 Jan 2025
Posts: 8

PostPosted: Sun Jan 19, 2025 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23020

PostPosted: Sun Jan 19, 2025 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Sun Jan 19, 2025 4:43 pm    Post subject: Reply with quote

Do you use ReiserFS for your /boot and/or root partition?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum