I too occasionally get a "stop job is running" message at shutdown (maybe one out of ten times). This is on Debian Jessie (up to date) and XFCE desktop. I have two drives. Jessie is installed on a SSD and Stretch on a HDD. This is /etc/fstab for the SSD
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=d217e984-5a4e-4019-9335-8dca4956514b / ext4 noatime,errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=fd34d9a9-e492-4f05-827b-a32dca238490 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
And this is /etc/fstab for the HDD
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=8fe14111-fb44-461b-b458-626c5737d8c2 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=f87f0147-03ee-4960-9d2a-2d76b0828b67 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
This is the result when running the following script I see it showing two(2) swap partitions, one for the SSD and one for the HDD.
Code: Select all
root@JohnBoy:/home/john# blkid | grep swap| awk '{print $2}'|sed s/'"'//g
UUID=f87f0147-03ee-4960-9d2a-2d76b0828b67
UUID=fd34d9a9-e492-4f05-827b-a32dca238490
The HDD is not mounted so why am I seeing the swap partition for that drive. I am assuming that this could be part of the problem. How do I fix this?
By the way, to get the bash script referenced in this post to run, I had to modify the variables with double quotes as shown here
Code: Select all
if [ "$(cat /etc/fstab | grep swap | awk '{print $1}')" == "$(sudo blkid | grep swap | awk '{print $2}' | tr -d '"')" ]; then echo "All is good";else echo "Swap UUID is different to fstab";fi
Otherwise I get an error message about too many arguments. And when I run that script I get the following
Code: Select all
root@JohnBoy:/home/john# if [ "$(cat /etc/fstab | grep swap | awk '{print $1}')" == "$(sudo blkid | grep swap | awk '{print $2}' | tr -d '"')" ]; then echo "All is good";else echo "Swap UUID is different to fstab";fi
Swap UUID is different to fstab
I am not irrational, I'm just quantum probabilistic.