- Code: Select all
if [ $(cat /etc/fstab | grep swap | awk '{print $1}') == $(cat /etc/fstab | grep swap | awk '{print $1}') ]; then echo "All is good";else echo "Swap UUID is different to fstab";fi
into a terminal and it will tell you "All is good" (if UUID's match) or "Swap UUID is different to fstab" if it is different. This is only a simple bash command and I just tested it on a machine here and it seemed to work.
After all this, it may not be anything to do with your fstab or swap, but I thought I would mention it as I have known it to be an issue before...
HTH