You are not logged in.

#1 2014-12-09 17:38:56

kamazee
Member
Registered: 2014-05-02
Posts: 2

systemd + fsck -- default timeout is not enough

systemd-fsck tries for check my ~ 1 TB ext3 partition, but it fails: machine gets turned off because the check seems to reach some systemd timeouts (despite 15 minutes seems reasonable long for it at first):

-- Reboot --
Dec 09 19:08:52 hostname systemd-journal[169]: Journal stopped
Dec 09 19:08:52 hostname systemd[1]: Shutting down.
Dec 09 19:08:52 hostname systemd[1]: Forcibly powering off as result of failure.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Network Manager.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for A lightweight DHCP and caching DNS server.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Login Service.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Graphical Interface.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Multi-User System.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for GNOME Display Manager.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for D-Bus System Message Bus.
Dec 09 19:08:52 hostname systemd[1]: Dependency failed for Permit User Sessions.
Dec 09 19:08:52 hostname systemd[1]: Timed out starting Basic System.
Dec 09 19:08:52 hostname systemd[1]: Job basic.target/start timed out.
Dec 09 18:53:53 hostname systemd-fsck[300]: /dev/sdb5 has been mounted 24 times without being checked, check forced.

I failed to google it or find in man pages how to change timeout for basic.target/start -- increasing it looks valid in this particular case. Does anyone know how to do that or has another idea how to get fs checked on boot?

Offline

#2 2014-12-16 20:02:30

jose1711
Member
Registered: 2006-07-08
Posts: 147

Re: systemd + fsck -- default timeout is not enough

being hit by the same issue, does this help?

[root@olivia ~]# systemctl show basic.target | grep Path
FragmentPath=/usr/lib/systemd/system/basic.target
[root@olivia ~]# vi /usr/lib/systemd/system/basic.target
# change 15min to 35min, save and exit
[root@olivia ~]# systemctl daemon-reload

Offline

Board footer

Powered by FluxBB