解决orangpi pc2_win_win plus 挂载rootfs失败的问题

解决orangpi pc2_win_win plus 挂载rootfs失败的问题


现象:
[   11.120389] Freeing unused kernel memory: 524K (ffffffc0009d3000 - ffffffc000a56000)
Kernel params: console=tty0 console=ttyS0,115200n8 no_console_suspend earlycon=uart,mmio32,0x01c28000 mac_addr= root=/dev/mmcblk0p2 ro rootwait
Waiting for root system /dev/mmcblk0p2, countdown : 5
Rootfs: /dev/mmcblk0p2
[   11.196833] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[   11.211846] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[   11.246431] JBD2: Unrecognised features on journal
[   11.257072] EXT4-fs (mmcblk0p2): error loading journal
[   11.320138] UDF-fs: warning (device mmcblk0p2): udf_fill_super: No partition found (2)
mount: mounting /dev/mmcblk0p2 on /mnt/root failed: Invalid argument
umount: can't unmount /mnt/root: Invalid argument
[   11.662906] [DISP] disp_device_attached_and_enable,line:159:attched ok, mgr0<-->device1, type=4, mode=10
Waiting for root system /dev/mmcblk0p2, countdown : 4
Rootfs: /dev/mmcblk0p2
[   16.299145] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[   16.314316] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[   16.337816] JBD2: Unrecognised features on journal
[   16.348449] EXT4-fs (mmcblk0p2): error loading journal
[   16.408561] UDF-fs: warning (device mmcblk0p2): udf_fill_super: No partition found (2)
mount: mounting /dev/mmcblk0p2 on /mnt/root failed: Invalid argument
umount: can't unmount /mnt/root: Invalid argument
Waiting for root system /dev/mmcblk0p2, countdown : 3
Rootfs: /dev/mmcblk0p2
[   21.387365] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[   21.402515] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[   21.426085] JBD2: Unrecognised features on journal
[   21.436881] EXT4-fs (mmcblk0p2): error loading journal
[   21.498652] UDF-fs: warning (device mmcblk0p2): udf_fill_super: No partition found (2)
mount: mounting /dev/mmcblk0p2 on /mnt/root failed: Invalid argument
umount: can't unmount /mnt/root: Invalid argument
Waiting for root system /dev/mmcblk0p2, countdown : 2
Rootfs: /dev/mmcblk0p2
[   26.477553] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[   26.492925] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[   26.516735] JBD2: Unrecognised features on journal
[   26.527698] EXT4-fs (mmcblk0p2): error loading journal
[   26.586798] UDF-fs: warning (device mmcblk0p2): udf_fill_super: No partition found (2)
mount: mounting /dev/mmcblk0p2 on /mnt/root failed: Invalid argument
umount: can't unmount /mnt/root: Invalid argument
Waiting for root system /dev/mmcblk0p2, countdown : 1
Rootfs: /dev/mmcblk0p2
[   31.565894] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[   31.581561] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[   31.605669] JBD2: Unrecognised features on journal
[   31.616892] EXT4-fs (mmcblk0p2): error loading journal
[   31.677603] UDF-fs: warning (device mmcblk0p2): udf_fill_super: No partition found (2)
mount: mounting /dev/mmcblk0p2 on /mnt/root failed: Invalid argument
umount: can't unmount /mnt/root: Invalid argument
Rootfs: /dev/mmcblk0p2
[   36.617567] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[   36.633252] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[   36.657258] JBD2: Unrecognised features on journal
[   36.668464] EXT4-fs (mmcblk0p2): error loading journal
[   36.726306] UDF-fs: warning (device mmcblk0p2): udf_fill_super: No partition found (2)
mount: mounting /dev/mmcblk0p2 on /mnt/root failed: Invalid argument
umount: can't unmount /mnt/root: Invalid argument
Dropping to a shell.


/ # 
/ # 


原因:
出现该问题主要是由于host上新版的mkfs.ext4工具在制作镜像时部分默认的特性在orangePi的内核上不支持;


解决方法:
添加控制选项将不支持的特性关闭,命令如下:
mkfs.ext4 -O ^64bit,^metadata_csum -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs ${IMAGE}2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lanpinguo

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值