From dave at thefletchers.net Fri Jul 30 17:40:48 2021 From: dave at thefletchers.net (David Fletcher) Date: Fri, 30 Jul 2021 17:40:48 -0000 Subject: [Wiltshire] Suspect hard drive infant mortality - SOLVED In-Reply-To: References: <1605714187.3269.28.camel@boss> <8356a4ad10d73de2573aa6d046ca31fe999dd32f.camel@thefletchers.net> <20210530071355.95480220BB@orac.inputplus.co.uk> Message-ID: <17b6a4b891fdbaaa33651e12dc6965b7b43ceef4.camel@thefletchers.net> Sorry it was two months since I last posted on this.... I want to document here what I have eventually found out for the benefit of anybody else who might be having shutdown troubles. Briefly, I thought I might have had a bad hard drive after upgrading to Mint 20 but I now believe the problems were caused by corruption of the file system when the computer was not shutting down and switching off properly. I could only get it to switch off by holding down the power button something like every other time. Not good. Then one day I was Google searching the shutdown problem and found out about the file /etc/systemd/system.conf.d/60_linuxmint.conf which now has the line DefaultTimeoutStopSec=10s that in Mint 18 used to be DefaultTimeoutStopSec=90s Mint 18 shuts down and auto powers off properly, every single time. The instructions at the top of the file # To override these values, create your own file in # /etc/systemd/systemd.conf.d/60_custom.conf. # Reload configuration with "sudo systemctl daemon-reload" # Test with "systemctl show" DO NOT WORK! so I ended up editing the 50_linuxmint.conf file to set the value to 50s and since I did that two months ago all computers, my desktop, my laptop and the old desktop computer I set up at my girlfriend's house, have been shutting down properly every single time and causing me no problems at all. This however, as was pointed out by Ralph. What DOES appear to work is to do cd /etc/systemd/system.conf.d/ sudo cp 50_linuxmint.conf 60_linuxmint.conf and then edit the value in the 60_ file. Somebody appears to have been careless with the instructions at the top of the 50_ file.