嵌入式linux系统运行过程中报告SQUASHFS error错误, 并且在系统重启之后就能恢复正常.

[ 5742.104968] SQUASHFS error: xz decompression failed, data probably corrupt
[ 5742.118815] SQUASHFS error: squashfs_read_data failed to read block 0x302780
[ 5742.132914] SQUASHFS error: Unable to read data cache entry [302780]
[ 5742.145672] SQUASHFS error: Unable to read page, block 302780, size a478
[ 5742.159102] SQUASHFS error: Unable to read data cache entry [302780]
[ 5742.171800] SQUASHFS error: Unable to read page, block 302780, size a478
[ 5742.185204] SQUASHFS error: Unable to read data cache entry [302780]
[ 5742.197907] SQUASHFS error: Unable to read page, block 302780, size a478
[ 5742.211323] SQUASHFS error: Unable to read data cache entry [302780]
[ 5742.224040] SQUASHFS error: Unable to read page, block 302780, size a478
[ 5742.237446] SQUASHFS error: Unable to read data cache entry [302780]

原因是: 

执行了下面的指令:

echo 3 > /proc/sys/vm/drop_caches

这会释放内存中所有的pagecache, dentries and inodes, 所以会导致文件系统找不到cache entry.

关于 /proc/sys/vm/drop_caches的说明:

/proc/sys/vm/drop_caches (since Linux 2.6.16). Writing to this file causes the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.

To free pagecache, use echo 1 > /proc/sys/vm/drop_caches;

to free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;

to free pagecache, dentries and inodes, use echo 3 >/proc/sys/vm/drop_caches.

Because this is a non-destructive operation and dirty objects are not freeable, the user should run sync first.

可以参考这篇文章: http://www.linuxfly.org/post/320/

SQUASHFS error相关推荐

  1. 虚拟机上安装Ubuntu时遇到SQUASHFS错误解决办法:QUASHFS error: squashfsread_data failed to read block 0x3773d14e

    在虚拟机上安装Ubuntu20.04系统时,感觉已经安装的差不多了,但是屏幕上一直刷屏SQUASHFS error: squashfsread_data failed to read block 0x ...

  2. 初识squashfs

        在装ubuntu过程中,偶然遇到squarshfs error, 例如: [ 135.292409] SQUASHFS error: sb_bread failed reading block ...

  3. 安卓机顶盒也能玩树莓派linux,附fastboot常用命令

    安卓机顶盒也能玩树莓派linux,附fastboot常用命令 网上看到的安卓手机(通常为ARM硬件)安装Linux,实际上这个linux只相当于安卓系统下的一个app应用而已. 这篇文章安装的是完全独 ...

  4. 创建squashfs.img文件挂载失败

    场景说明:因为需要重新定制squashfs.img文件的大小,其实是稀疏文件的大小,和实际文件的大小有区别.实际的操作如下: 1)dd if=/dev/zero of=rootfs bs=65536 ...

  5. 使用Squashfs和Overlayfs提高嵌入式Linux文件系统可靠性

    在使用嵌入式 Linux 系统的时,会出现由于设备意外断电引起文件系统损坏而最终使该设备无法启动的现象.为了应对这种情况,通常会从硬件设计如采用备用电源,无论是锂电池还是超级电容等,或者从系统软件设上 ...

  6. 解决gitte提交报错 error: GE007: Your push would publish a private email address.

    错误情况: gitte提交报错,无法提交上去,报错如下: remote: Powered by GITEE.COM [GNK-6.0] remote: error: GE007: Your push ...

  7. 使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with

    使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with ...

  8. Workbench Could not connect the SSH Tunnel Authentication error

    1. 问题现象 平日正常使用的 Workbench 在重启电脑之后发现无法连接到对应的数据库,workbench log显示 SSH tunnel]: Authentication error ope ...

  9. python2 安装faiss-gpu 报错 faiss/faiss/python/swigfaiss.i:241: Error: Unable to find ‘faiss/impl/platfo

    1. 安装报错 $ sudo pip install faiss-gpu --default-timeout=1000 -i https://pypi.douban.com/simple DEPREC ...

最新文章

  1. day12-mysql 事务与索引
  2. #279. [SYZOI Round1] 滑稽♂树(树状数组套主席树)
  3. pandas合并concatmerge和plot画图
  4. 程序员找工作那点事儿
  5. [php] 高级教程
  6. 数学建模学习笔记(十一)——预测模型
  7. kibana客户端工具操作ElasticSearch(增删改查三)
  8. 模拟——扫雷游戏(洛谷 P2670)
  9. 1700x关闭超线程超频_转发分享一个超频技术新手知识BIOS设置指南
  10. 2018-03-28 Linux学习
  11. 湖南2021年高考成绩查询与录取查询课件,@所有高考生,高考成绩和录取动态查询方式公布...
  12. leetcode[232]用栈实现队列/Implement Queue using Stacks
  13. 最简便的Unity详细安装步骤及官网插件
  14. 吉比特无源光纤说明书_[干货]光纤通信之缩略语英汉对照表
  15. Matlab批量修改文件格式
  16. MacOS Mojave/Catalina和Windows安装佳能LBP2900打印机驱动教程
  17. NLP-文本摘要:Rouge评测方法【Rouge-1、Rouge-2、Rouge-L、Rouge-W、Rouge-S】
  18. 什么是低代码(Low-Code)?
  19. Unity策略游戏集合
  20. linux_ohs安装_weblogic进行管理

热门文章

  1. 移动跨平台开发选型参考建议
  2. java中中国货币符号怎么打_用Java中的货币符号解析价格
  3. 【转】UIPopoverController的使用
  4. 基于SpringBoot+Vue实现的酒店管理系统
  5. 清华大学html理论考试题,1+X Web前端开发(初级)理论考试样题(附答案)
  6. 蒋鑫鸿:9.8白银!沪银!期货白银!周四黄金价格走势分析及操作建议
  7. 1688按关键字搜索商品 API
  8. 1-4 工厂模式(工厂方法模式/抽象工厂模式)
  9. SpringMVC:配置文件
  10. 写代码太累,找一款低代码开发平台吧