rootfs挂载失败(error -5)的一个可能

bash[ 复制代码
[    4.070602] block ubiblock0_4: created from ubi0:4(rootfsB)

[    4.074961] ubiblock: device ubiblock0_4 (rootfsB) set to be root filesystem

[    4.082820] clk: Not disabling unused clocks

[    4.086143] usb0_vbus: disabling

[    4.089341] usb1_vbus[    4.099482] VFS: Cannot open root device "(null)" or unknown-block(254,0): error -5

[    4.105758] Please append a correct "root=" boot option; here are the available partitions:

[    4.114075] 0100           30000 ram0 [    4.117555]  (driver?)

[    4.119904] 1f00            1024 mtdblock0 [    4.123916]  (driver?)

[    4.126240] 1f01             256 mtdblock1 [    4.130227]  (driver?)

[    4.132599] 1f02             256 mtdblock2 [    4.136565]  (driver?)

[    4.138913] 1f03             256 mtdblock3 [    4.142923]  (driver?)

[    4.145251] 1f04            1024 mtdblock4 [    4.149238]  (driver?)

[    4.151616] 1f05          251904 mtdblock5 [    4.155576]  (driver?)

[    4.157924] 1f06            6912 mtdblock6 [    4.161934]  (driver?)

[    4.164262] 1f07             512 mtdblock7 [    4.168249]  (driver?)

[    4.170598] 1f08            2976 mtdblock8 [    4.174608]  (driver?)

[    4.176936] 1f09           33480 mtdblock9 [    4.180929]  (driver?)

[    4.183294] 1f0a             124 mtdblock10 [    4.187347]  (driver?)

[    4.189696] 1f0b            2852 mtdblock11 [    4.193792]  (driver?)

[    4.196121] 1f0c           30256 mtdblock12 [    4.200194]  (driver?)

[    4.202566] 1f0d             124 mtdblock13 [    4.206619]  (driver?)

[    4.208966] fe00           30256 ubiblock0_4 [    4.213150]  (driver?)

[    4.215479] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(254,0)

报-5错误有几种可能,一个是驱动未正确加载或没编译,一个是有坏块或刷入未完成,前两种是常见情况,最后一种是SquashFS/UBIFS签名不匹配,不常见,但我碰到的就是这种情况,原因是使用的打包工具mksquashfs4使用了上一个sdk版本,替换成新版重新打包刷入后rootfs成功挂载

相关推荐
tntxia10 小时前
linux curl命令详解_curl详解
linux
扛枪的书生12 小时前
Linux 网络管理器用法速查
linux
顺风尿一寸15 小时前
Java Socket 内核之旅:从 SocketChannel.read() 到 tcp_recvmsg 与 epoll 的完整调用链路
linux
XIAOHEZIcode21 小时前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
唐青枫1 天前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux
AlfredZhao3 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐4 天前
Linux内存扩容指南
linux
zylyehuo4 天前
Linux 彻底且安全地删除文件
linux
用户805533698035 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式
用户034095297915 天前
linux fcitx 5 雾凇拼音 设置在中文输入法下仍然输入英文标点
linux