您尚未登录。

楼主 #1 2019-09-21 08:30:35

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

S3 ext4 根文件系统, 用着用着就挂了, 请问应该如何修复?

[    1.562498] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:02:34 UTC (154)
[    1.570912] vcc3v0: disabling
[    1.573892] vcc5v0: disabling
[    1.576917] ALSA device list:
[    1.579885]   No soundcards found.
[    1.591285] List of all partitions:
[    1.594832] b300          122880 mmcblk0
[    1.594838]  driver: mmcblk
[    1.601736]   b301           16384 mmcblk0p1 ad68a8dc-01
[    1.601739]
[    1.608561]   b302          105472 mmcblk0p2 ad68a8dc-02
[    1.608563]
[    1.615369] No filesystem could mount root, tried:
[    1.615373]  ext3
[    1.620242]  ext2
[    1.622163]  ext4
[    1.624084]  vfat
[    1.626019]
[    1.629435] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    1.637863] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #26
[    1.645245] Hardware name: Allwinner sun8i Family
[    1.649982] [<c010e514>] (unwind_backtrace) from [<c010b1b8>] (show_stack+0x10/0x14)
[    1.657731] [<c010b1b8>] (show_stack) from [<c065bb04>] (dump_stack+0x88/0x9c)
[    1.664958] [<c065bb04>] (dump_stack) from [<c011b48c>] (panic+0xdc/0x248)
[    1.671835] [<c011b48c>] (panic) from [<c0901250>] (mount_block_root+0x220/0x268)
[    1.679313] [<c0901250>] (mount_block_root) from [<c09013b8>] (mount_root+0x120/0x128)
[    1.687224] [<c09013b8>] (mount_root) from [<c0901510>] (prepare_namespace+0x150/0x198)
[    1.695222] [<c0901510>] (prepare_namespace) from [<c0900e08>] (kernel_init_freeable+0x1c0/0x1d0)
[    1.704090] [<c0900e08>] (kernel_init_freeable) from [<c066d554>] (kernel_init+0x8/0x110)
[    1.712265] [<c066d554>] (kernel_init) from [<c0107538>] (ret_from_fork+0x14/0x3c)
[    1.719837] Rebooting in 5 seconds..

离线

楼主 #2 2019-09-21 08:38:30

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

Re: S3 ext4 根文件系统, 用着用着就挂了, 请问应该如何修复?

Unable to detect file system! Possible reasons are:
- The file system is damaged
- The file system is unknown to GParted
- There is no file system available (unformatted)
- The device entry /dev/sdg2 is missing

2019-09-21_083814.png

gparted 提示的错误信息。

离线

楼主 #3 2019-09-21 08:44:42

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

Re: S3 ext4 根文件系统, 用着用着就挂了, 请问应该如何修复?

2019-09-21_084225.png

sudo fsck /dev/sdg2 修复了一堆错误, 用gparted看是正常了,插入S3重启试一试。

离线

楼主 #4 2019-09-21 08:46:55

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

Re: S3 ext4 根文件系统, 用着用着就挂了, 请问应该如何修复?

2019-09-21_084607.png

重启成功进入,怎么用才能像 Windows 一样开机自动修复文件系统错误呢?

嵌入式折腾不起啊

离线

楼主 #5 2019-09-21 08:48:02

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

Re: S3 ext4 根文件系统, 用着用着就挂了, 请问应该如何修复?

刚刚VMWware Ubuntu18.04 挂了, 开机提示硬盘出错, 吓傻我了: https://whycan.cn/t_2909.html

无意中找到一个同样问题的朋友

离线

楼主 #6 2019-09-21 08:54:25

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

Re: S3 ext4 根文件系统, 用着用着就挂了, 请问应该如何修复?

找到树莓派的开机自动修复ext4 https://raspberrypi.stackexchange.com/questions/61723/raspberry-pi-3-and-raspbian-jessie-how-to-run-fsck-at-boot

但是有一个问题, 根文件系统都挂载不上, 怎么调用命令修复了, 又是一个鸡生蛋,蛋生鸡的问题了。

离线

楼主 #8 2019-09-21 09:47:52

还能这么玩
会员
注册时间: 2019-04-14
已发帖子: 119
积分: 119

Re: S3 ext4 根文件系统, 用着用着就挂了, 请问应该如何修复?

多谢指教!我去了解一下 initramfs

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn