I encountered a problem yesterday, my raspberrypi has entered emergency mode after I plug out the power cord directly, I searched in the internet, it said need to check the file system because of power loss, I used ckfs and e2fsck command to fix the partition, but it still doesn't work, I found that it shows "a start job is running for dev-sda1.device" and timed out. I searched the problems, it said that
Solution:
Cause: the swap partition ID is not found. Therefore, the latency is 90 s.
Method: lsblk-F
Sda3 swap a7fa69a8-31bd-448c-98de-55de4aa6f06a
Copy your swap ID
Edit the uuid value of swap in/etc/fstab.
Save and launch. After the uuid is restarted, the uuid is found and duang starts immediately. The hateful 90s is gone.
I used the command lsblk-F, and it didn't show any errors, my problems solved!
Thanks for zhihu!
One Raspberry Pi Fault Handling