Problem:
After installing the Arch Linux the Block Device Name such as /dev/sda changed to /dev/sdx randomly. That make you fall to rescue mode.
Reason:
The command to generate the fstab
genfstab -p /mnt >> /mnt/etc/fstab Boot
will use the Block Device Name instead of the Device UUID. Because of that the kernel can’t mount the / correctly.
Solution:
open the /etc/fstab and change all the /dev/sdXX to it corresponding UUID.
Useful Commands:
list all the block devices
#lsblk
find out the UUID of each device
#blkid