Old *not cleany unmounted* problem revisited with Ubuntu 10.04.3 and Virtualmin/Webmin 1.570

Just performed a clean install of Ubuntu 10.04.3 LTS and Virtualmin/Webmin 1.570 and started getting “/dev/sda1 was not cleanly unmounted, check forced” reports on reboot again (only after installing Virtualmin).

I initially reported the issue in this thread http://www.virtualmin.com/node/19092, where a couple of fixes were suggested for the Webmin 1.560 upstart problem. The first fix appeared to introduce the unmount issue for me, while the second fix solved it.

It appears to be a bug with Ubuntu >= 10.04 as discussed here https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/616287, with a simple solution here http://ubuntuforums.org/showpost.php?p=11253379&postcount=4.

Before installing Virtualmin:

f2g@f2g:/$ ls -l /etc/rc0.d
total 4
-rw-r–r-- 1 root root 353 2011-06-08 19:32 README
lrwxrwxrwx 1 root root 22 2011-11-10 02:50 S15wpa-ifupdown -> …/init.d/wpa-ifupdown
lrwxrwxrwx 1 root root 18 2011-11-10 02:41 S20sendsigs -> …/init.d/sendsigs
lrwxrwxrwx 1 root root 17 2011-11-10 02:41 S30urandom -> …/init.d/urandom
lrwxrwxrwx 1 root root 22 2011-11-10 02:41 S31umountnfs.sh -> …/init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 2011-11-10 02:41 S35networking -> …/init.d/networking
lrwxrwxrwx 1 root root 18 2011-11-10 02:41 S40umountfs -> …/init.d/umountfs
lrwxrwxrwx 1 root root 20 2011-11-10 02:41 S60umountroot -> …/init.d/umountroot
lrwxrwxrwx 1 root root 14 2011-11-10 02:41 S90halt -> …/init.d/halt
f2g@f2g:/$ ls -l /etc/rc6.d
total 4
-rw-r–r-- 1 root root 351 2011-06-08 19:32 README
lrwxrwxrwx 1 root root 22 2011-11-10 02:50 S15wpa-ifupdown -> …/init.d/wpa-ifupdown
lrwxrwxrwx 1 root root 18 2011-11-10 02:41 S20sendsigs -> …/init.d/sendsigs
lrwxrwxrwx 1 root root 17 2011-11-10 02:41 S30urandom -> …/init.d/urandom
lrwxrwxrwx 1 root root 22 2011-11-10 02:41 S31umountnfs.sh -> …/init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 2011-11-10 02:41 S35networking -> …/init.d/networking
lrwxrwxrwx 1 root root 18 2011-11-10 02:41 S40umountfs -> …/init.d/umountfs
lrwxrwxrwx 1 root root 20 2011-11-10 02:41 S60umountroot -> …/init.d/umountroot
lrwxrwxrwx 1 root root 16 2011-11-10 02:41 S90reboot -> …/init.d/reboot

After installing Virtualmin:

f2g@f2g:/$ ls -l /etc/rc0.d
total 4
lrwxrwxrwx 1 root root 16 2011-11-10 03:09 K01webmin -> …/init.d/webmin
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 K03usermin -> …/init.d/usermin
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 K09apache2 -> …/init.d/apache2
lrwxrwxrwx 1 root root 23 2011-11-10 03:14 K20clamav-daemon -> …/init.d/clamav-daemon
lrwxrwxrwx 1 root root 26 2011-11-10 03:14 K20clamav-freshclam -> …/init.d/clamav-freshclam
lrwxrwxrwx 1 root root 23 2011-11-10 03:15 K20openbsd-inetd -> …/init.d/openbsd-inetd
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 K20postfix -> …/init.d/postfix
lrwxrwxrwx 1 root root 19 2011-11-10 03:15 K20saslauthd -> …/init.d/saslauthd
lrwxrwxrwx 1 root root 24 2011-11-10 03:15 K21postgresql-8.4 -> …/init.d/postgresql-8.4
lrwxrwxrwx 1 root root 22 2011-11-10 03:15 K21spamassassin -> …/init.d/spamassassin
lrwxrwxrwx 1 root root 17 2011-11-10 03:15 K50proftpd -> …/init.d/proftpd
lrwxrwxrwx 1 root root 18 2011-11-10 03:09 K79quotarpc -> …/init.d/quotarpc
lrwxrwxrwx 1 root root 15 2011-11-10 03:14 K85bind9 -> …/init.d/bind9
lrwxrwxrwx 1 root root 15 2011-11-10 03:09 K85quota -> …/init.d/quota
-rw-r–r-- 1 root root 353 2011-06-08 19:32 README
lrwxrwxrwx 1 root root 14 2011-11-10 03:09 S01halt -> …/init.d/halt
lrwxrwxrwx 1 root root 20 2011-11-10 03:09 S01networking -> …/init.d/networking
lrwxrwxrwx 1 root root 18 2011-11-10 03:09 S01sendsigs -> …/init.d/sendsigs
lrwxrwxrwx 1 root root 18 2011-11-10 03:09 S01umountfs -> …/init.d/umountfs
lrwxrwxrwx 1 root root 22 2011-11-10 03:09 S01umountnfs.sh -> …/init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 2011-11-10 03:09 S01umountroot -> …/init.d/umountroot
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 S02urandom -> …/init.d/urandom
lrwxrwxrwx 1 root root 22 2011-11-10 03:09 S02wpa-ifupdown -> …/init.d/wpa-ifupdown
f2g@f2g:/$ ls -l /etc/rc6.d
total 4
lrwxrwxrwx 1 root root 16 2011-11-10 03:09 K01webmin -> …/init.d/webmin
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 K03usermin -> …/init.d/usermin
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 K09apache2 -> …/init.d/apache2
lrwxrwxrwx 1 root root 23 2011-11-10 03:14 K20clamav-daemon -> …/init.d/clamav-daemon
lrwxrwxrwx 1 root root 26 2011-11-10 03:14 K20clamav-freshclam -> …/init.d/clamav-freshclam
lrwxrwxrwx 1 root root 23 2011-11-10 03:15 K20openbsd-inetd -> …/init.d/openbsd-inetd
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 K20postfix -> …/init.d/postfix
lrwxrwxrwx 1 root root 19 2011-11-10 03:15 K20saslauthd -> …/init.d/saslauthd
lrwxrwxrwx 1 root root 24 2011-11-10 03:15 K21postgresql-8.4 -> …/init.d/postgresql-8.4
lrwxrwxrwx 1 root root 22 2011-11-10 03:15 K21spamassassin -> …/init.d/spamassassin
lrwxrwxrwx 1 root root 17 2011-11-10 03:15 K50proftpd -> …/init.d/proftpd
lrwxrwxrwx 1 root root 18 2011-11-10 03:09 K79quotarpc -> …/init.d/quotarpc
lrwxrwxrwx 1 root root 15 2011-11-10 03:14 K85bind9 -> …/init.d/bind9
lrwxrwxrwx 1 root root 15 2011-11-10 03:09 K85quota -> …/init.d/quota
-rw-r–r-- 1 root root 351 2011-06-08 19:32 README
lrwxrwxrwx 1 root root 20 2011-11-10 03:09 S01networking -> …/init.d/networking
lrwxrwxrwx 1 root root 16 2011-11-10 03:09 S01reboot -> …/init.d/reboot
lrwxrwxrwx 1 root root 18 2011-11-10 03:09 S01sendsigs -> …/init.d/sendsigs
lrwxrwxrwx 1 root root 18 2011-11-10 03:09 S01umountfs -> …/init.d/umountfs
lrwxrwxrwx 1 root root 22 2011-11-10 03:09 S01umountnfs.sh -> …/init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 2011-11-10 03:09 S01umountroot -> …/init.d/umountroot
lrwxrwxrwx 1 root root 17 2011-11-10 03:09 S02urandom -> …/init.d/urandom
lrwxrwxrwx 1 root root 22 2011-11-10 03:09 S02wpa-ifupdown -> …/init.d/wpa-ifupdown