I have migrated a physical machine to a virtual machine, I had a error in booting complaining about some disk not found, but after 1minute 30 it booted and everything seems to work fine. All disk in fstab are mounted.
**aldebaran:~ #** cat /etc/fstab
/dev/disk/by-uuid/44232fae-9e52-498d-b6cb-ec8fde256ca8f / ext4 defaults,acl 1 1
/dev/disk/by-uuid/d1f4340a-7be8-48f9-9fc4-6026c01ce493 /home ext4 defaults,acl 1 1
/dev/disk/by-id/9ea082f6-b5e6-4d38-b4e2-073d0a71195a swap swap pri=0 0 0
/dev/disk/by-uuid/136bcd13-f94d-46fd-b5ad-6f9c29bfbed9 /home/fdo ext4 defaults,acl 1 2
/dev/disk/by-uuid/933990d1-d8f7-4eb4-98fe-f9de29244be3 /home/xstreamer ext4 defaults,acl 1 2
/dev/disk/by-uuid/1315c80f-e475-4530-afbc-6b4df8a26814 /backup ext4 defaults,acl 1 2
**aldebaran:~ #** ls /dev/disk/by-uuid -l
total 0
lrwxrwxrwx 1 root root 10 Feb 24 13:30 1315c80f-e475-4530-afbc-6b4df8a26814 -> **../../sde1**
lrwxrwxrwx 1 root root 10 Feb 24 13:30 136bcd13-f94d-46fd-b5ad-6f9c29bfbed9 -> **../../sdd1**
lrwxrwxrwx 1 root root 10 Feb 24 13:30 44232fae-9e52-498d-b6cb-ec8fde256ca8 -> **../../sda1**
lrwxrwxrwx 1 root root 10 Feb 24 13:30 933990d1-d8f7-4eb4-98fe-f9de29244be3 -> **../../sdb1**
lrwxrwxrwx 1 root root 10 Feb 24 13:30 9ea082f6-b5e6-4d38-b4e2-073d0a71195a -> **../../sdf1**
lrwxrwxrwx 1 root root 10 Feb 24 13:30 d1f4340a-7be8-48f9-9fc4-6026c01ce493 -> **../../sdc1**
**aldebaran:~ #**
Then I have found errors in in /var/log/messages
2021-02-24T23:26:23.446226+01:00 aldebaran systemd[1]: dev-disk-by\x2did-9ea082f6\x2db5e6\x2d4d38\x2db4e2\x2d073d0a71195a.device: Job dev-disk-by\x2did-9ea082f6\x2db5e6\x2d4d38\x2db4e2\x2d073d0a71195a.device/start timed out.
2021-02-24T23:26:23.446968+01:00 aldebaran systemd[1]: Timed out waiting for device dev-disk-by\x2did-9ea082f6\x2db5e6\x2d4d38\x2db4e2\x2d073d0a71195a.device.
2021-02-24T23:26:23.447418+01:00 aldebaran systemd[1]: Dependency failed for /dev/disk/by-id/9ea082f6-b5e6-4d38-b4e2-073d0a71195a.
2021-02-24T23:26:23.447849+01:00 aldebaran systemd[1]: dev-disk-by\x2did-9ea082f6\x2db5e6\x2d4d38\x2db4e2\x2d073d0a71195a.swap: Job dev-disk-by\x2did-9ea082f6\x2db5e6\x2d4d38\x2db4e2\x2d073d0a71195a.swap/start failed with result 'dependency'.
2021-02-24T23:26:23.448265+01:00 aldebaran systemd[1]: dev-disk-by\x2did-9ea082f6\x2db5e6\x2d4d38\x2db4e2\x2d073d0a71195a.device: Job dev-disk-by\x2did-9ea082f6\x2db5e6\x2d4d38\x2db4e2\x2d073d0a71195a.device/start failed with result 'timeout'.
2021-02-24T23:26:26.947657+01:00 aldebaran systemd[1]: user-runtime-dir@0.service: Unit not needed anymore. Stopping.
I am almost sure it is related to the previous swap partition, but I have changed it in /etc/fstab, I have changed it in /etc/defaults/grub, I have done
#grub2-mkconfig -o /boot/grub2/grub.cfg
#mkinitrd
#grub2-install /dev/sda
and rebooted… again same error while booting.
and
**aldebaran:~ #** free
total used free shared buff/cache available
Mem: 8161640 1111808 5382672 26336 1667160 6757592
Swap: 0 0 0
**aldebaran:~ #**
It is not using the swap partition I have set in fstab
What am I missing?