码迷,mamicode.com
首页 > 其他好文 > 详细

一次树莓派的故障处理

时间:2016-11-21 20:41:27      阅读:416      评论:0      收藏:0      [点我收藏+]

标签:树莓派 emergency mode

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

解决办法:
原因:没有找到该swap分区ID 导致的。所以延迟90s
方法:lsblk -f
sda3 swap a7fa69a8-31bd-448c-98de-55de4aa6f06a
显示出来自己的SWAP ID 拷贝之
然后编辑 /etc/fstab 中的swap 的UUID 值
保存推出。再次启动会找到该UUID 然后,duang 瞬间启动。可恶的90s没了

I used the command lsblk -f , and it didn‘t show any errors , my problems solved!

thanks for zhihu!


一次树莓派的故障处理

标签:树莓派 emergency mode

原文地址:http://40725.blog.51cto.com/30725/1875001

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!