Problem: Booting has slowed down due to file system scanning on bootup.
This problem began after an update last week, apparently on Sept. 8. What happens is that when the bootup process reaches the drive mounting stage, the whole thing slows down. It actually runs the file system check on at least one file system every boot, even though the threshold has been set with tune2fs into the 30's. Nothing has been changed in fstab.
What I have discovered:
I tried dismounting one fo the file systems, running and e2fsck -f, (these are all ext4 systems) then remounting. If I do that, using dumpe2fs I find that the last mount date/time and count are correct. I can dismount and remount, and the mount count advances as expected. If I then shut down and reboot, it runs a scan on that system at bootup, and when I check with dumpe2fs, I find the last mount time has been reset to Thu Sep 8th, and the mount count set to 1. Something, therefore, is seriously messed up.
Looking at the dpkg logs, starting with Sept. 7th, for what might have been updated, I see the following, none of which jump out at me as being related to file system mounting:
greenman@Crynfyd16.04 /var/log$ grep "2016-09-07" dpkg.log | grep upgrade
2016-09-07 06:27:07 upgrade chromium-browser-l10n:all 51.0.2704.79-0ubuntu0.16.04.1.1242 52.0.2743.116-0ubuntu0.16.04.1.1250
2016-09-07 06:27:09 upgrade chromium-browser:amd64 51.0.2704.79-0ubuntu0.16.04.1.1242 52.0.2743.116-0ubuntu0.16.04.1.1250
2016-09-07 06:27:18 upgrade chromium-codecs-ffmpeg-extra:amd64 51.0.2704.79-0ubuntu0.16.04.1.1242 52.0.2743.116-0ubuntu0.16.04.1.1250
2016-09-07 06:27:19 upgrade p11-kit-modules:i386 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:20 upgrade p11-kit-modules:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:21 upgrade libp11-kit-dev:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:22 upgrade libp11-kit0:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:23 upgrade libp11-kit0:i386 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:24 upgrade libegl1-mesa-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:25 upgrade libwayland-egl1-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:26 upgrade libgbm1:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:26 upgrade libegl1-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:27 upgrade libgl1-mesa-dri:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:29 upgrade libgl1-mesa-dri:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:31 upgrade libegl1-mesa-drivers:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:32 upgrade libgl1-mesa-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:33 upgrade mesa-common-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:35 upgrade libosmesa6:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:36 upgrade libosmesa6:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:37 upgrade libgles2-mesa-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:37 upgrade libgles2-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:39 upgrade libgl1-mesa-glx:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:41 upgrade libgl1-mesa-glx:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:42 upgrade libgles1-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:43 upgrade libglapi-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:44 upgrade libglapi-mesa:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:44 upgrade metacity:amd64 1:3.18.5-0ubuntu0.1 1:3.18.7-0ubuntu0.1
2016-09-07 06:27:45 upgrade libmetacity-private3a:amd64 1:3.18.5-0ubuntu0.1 1:3.18.7-0ubuntu0.1
2016-09-07 06:27:46 upgrade metacity-common:all 1:3.18.5-0ubuntu0.1 1:3.18.7-0ubuntu0.1
2016-09-07 06:27:50 upgrade libnm-gtk0:amd64 1.2.0-0ubuntu0.16.04.3 1.2.0-0ubuntu0.16.04.4
2016-09-07 06:27:50 upgrade libnm-gtk-common:all 1.2.0-0ubuntu0.16.04.3 1.2.0-0ubuntu0.16.04.4
2016-09-07 06:27:51 upgrade libxatracker2:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:52 upgrade mesa-vdpau-drivers:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:53 upgrade p11-kit:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
greenman@Crynfyd16.04 /var/log$ grep "2016-09-08" dpkg.log | grep upgrade
2016-09-08 09:37:00 upgrade libgtkspell3-3-dev:amd64 3.0.8-1~xenialppa1 3.0.9-1~xenialppa2
2016-09-08 09:37:01 upgrade libgtkspell3-3-0:amd64 3.0.8-1~xenialppa1 3.0.9-1~xenialppa2
2016-09-08 09:37:02 upgrade gir1.2-gtkspell3-3.0:amd64 3.0.8-1~xenialppa1 3.0.9-1~xenialppa2
greenman@Crynfyd16.04 /var/log$ grep "2016-09-09" dpkg.log | grep upgrade
2016-09-09 06:24:22 upgrade libgtkspellmm-3.0-dev:amd64 3.0.4-1~xenialppa1 3.0.5-1~xenialppa2
2016-09-09 06:24:23 upgrade accountsservice:amd64 0.6.40-2ubuntu11.1 0.6.40-2ubuntu11.2
2016-09-09 06:24:24 upgrade libaccountsservice0:amd64 0.6.40-2ubuntu11.1 0.6.40-2ubuntu11.2
2016-09-09 06:24:25 upgrade libimlib2:amd64 1.4.7-1build1 1.4.7-1ubuntu0.1
2016-09-09 06:24:26 upgrade libqtspell-qt5-dev:amd64 0.8.1-1~xenialppa2 0.8.2-1~xenialppa1
2016-09-09 06:24:27 upgrade libqtspell-qt5-0:amd64 0.8.1-1~xenialppa2 0.8.2-1~xenialppa1
Addendum: I tried booting with a 16.04 system that was backed up a couple of weeks ago, and after rescanning, the file systems mount normally, But then when booting the updated Xenial, the problem starts again. So it's got to be something from an update.
This problem began after an update last week, apparently on Sept. 8. What happens is that when the bootup process reaches the drive mounting stage, the whole thing slows down. It actually runs the file system check on at least one file system every boot, even though the threshold has been set with tune2fs into the 30's. Nothing has been changed in fstab.
What I have discovered:
I tried dismounting one fo the file systems, running and e2fsck -f, (these are all ext4 systems) then remounting. If I do that, using dumpe2fs I find that the last mount date/time and count are correct. I can dismount and remount, and the mount count advances as expected. If I then shut down and reboot, it runs a scan on that system at bootup, and when I check with dumpe2fs, I find the last mount time has been reset to Thu Sep 8th, and the mount count set to 1. Something, therefore, is seriously messed up.
Looking at the dpkg logs, starting with Sept. 7th, for what might have been updated, I see the following, none of which jump out at me as being related to file system mounting:
greenman@Crynfyd16.04 /var/log$ grep "2016-09-07" dpkg.log | grep upgrade
2016-09-07 06:27:07 upgrade chromium-browser-l10n:all 51.0.2704.79-0ubuntu0.16.04.1.1242 52.0.2743.116-0ubuntu0.16.04.1.1250
2016-09-07 06:27:09 upgrade chromium-browser:amd64 51.0.2704.79-0ubuntu0.16.04.1.1242 52.0.2743.116-0ubuntu0.16.04.1.1250
2016-09-07 06:27:18 upgrade chromium-codecs-ffmpeg-extra:amd64 51.0.2704.79-0ubuntu0.16.04.1.1242 52.0.2743.116-0ubuntu0.16.04.1.1250
2016-09-07 06:27:19 upgrade p11-kit-modules:i386 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:20 upgrade p11-kit-modules:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:21 upgrade libp11-kit-dev:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:22 upgrade libp11-kit0:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:23 upgrade libp11-kit0:i386 0.23.2-3 0.23.2-5~ubuntu16.04.1
2016-09-07 06:27:24 upgrade libegl1-mesa-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:25 upgrade libwayland-egl1-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:26 upgrade libgbm1:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:26 upgrade libegl1-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:27 upgrade libgl1-mesa-dri:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:29 upgrade libgl1-mesa-dri:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:31 upgrade libegl1-mesa-drivers:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:32 upgrade libgl1-mesa-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:33 upgrade mesa-common-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:35 upgrade libosmesa6:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:36 upgrade libosmesa6:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:37 upgrade libgles2-mesa-dev:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:37 upgrade libgles2-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:39 upgrade libgl1-mesa-glx:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:41 upgrade libgl1-mesa-glx:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:42 upgrade libgles1-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:43 upgrade libglapi-mesa:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:44 upgrade libglapi-mesa:i386 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:44 upgrade metacity:amd64 1:3.18.5-0ubuntu0.1 1:3.18.7-0ubuntu0.1
2016-09-07 06:27:45 upgrade libmetacity-private3a:amd64 1:3.18.5-0ubuntu0.1 1:3.18.7-0ubuntu0.1
2016-09-07 06:27:46 upgrade metacity-common:all 1:3.18.5-0ubuntu0.1 1:3.18.7-0ubuntu0.1
2016-09-07 06:27:50 upgrade libnm-gtk0:amd64 1.2.0-0ubuntu0.16.04.3 1.2.0-0ubuntu0.16.04.4
2016-09-07 06:27:50 upgrade libnm-gtk-common:all 1.2.0-0ubuntu0.16.04.3 1.2.0-0ubuntu0.16.04.4
2016-09-07 06:27:51 upgrade libxatracker2:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:52 upgrade mesa-vdpau-drivers:amd64 11.2.0-1ubuntu2.1 11.2.0-1ubuntu2.2
2016-09-07 06:27:53 upgrade p11-kit:amd64 0.23.2-3 0.23.2-5~ubuntu16.04.1
greenman@Crynfyd16.04 /var/log$ grep "2016-09-08" dpkg.log | grep upgrade
2016-09-08 09:37:00 upgrade libgtkspell3-3-dev:amd64 3.0.8-1~xenialppa1 3.0.9-1~xenialppa2
2016-09-08 09:37:01 upgrade libgtkspell3-3-0:amd64 3.0.8-1~xenialppa1 3.0.9-1~xenialppa2
2016-09-08 09:37:02 upgrade gir1.2-gtkspell3-3.0:amd64 3.0.8-1~xenialppa1 3.0.9-1~xenialppa2
greenman@Crynfyd16.04 /var/log$ grep "2016-09-09" dpkg.log | grep upgrade
2016-09-09 06:24:22 upgrade libgtkspellmm-3.0-dev:amd64 3.0.4-1~xenialppa1 3.0.5-1~xenialppa2
2016-09-09 06:24:23 upgrade accountsservice:amd64 0.6.40-2ubuntu11.1 0.6.40-2ubuntu11.2
2016-09-09 06:24:24 upgrade libaccountsservice0:amd64 0.6.40-2ubuntu11.1 0.6.40-2ubuntu11.2
2016-09-09 06:24:25 upgrade libimlib2:amd64 1.4.7-1build1 1.4.7-1ubuntu0.1
2016-09-09 06:24:26 upgrade libqtspell-qt5-dev:amd64 0.8.1-1~xenialppa2 0.8.2-1~xenialppa1
2016-09-09 06:24:27 upgrade libqtspell-qt5-0:amd64 0.8.1-1~xenialppa2 0.8.2-1~xenialppa1
Addendum: I tried booting with a 16.04 system that was backed up a couple of weeks ago, and after rescanning, the file systems mount normally, But then when booting the updated Xenial, the problem starts again. So it's got to be something from an update.
Comment