Raspbian is installed on a btrfs partition, and as such, has an initramfs. After a kernel update, I forgot to regen that initramfs. As it wasn't the first time it happened, I removed the SD card, unpacked the old archive, dropped the new modules in place and repacked the archive. However, this time it ends with a kernel panic: not syncing: VFS: Unable to mount root fs on unknown-block(179,2). The partition mounts fine on my desktop, so I know it is not corrupted. I even recently ran a scrub on it, and no problems were found. Where's the problem and how can I solve it?
Asked
Active
Viewed 2,329 times
0
adamski234
- 21
- 3
2 Answers
1
I figured out what happened. The initramfs uses symlinks for /bin, /lib and /sbin. Something happened, and those links disappeared. I have recreated them, and now I should be good to go
adamski234
- 21
- 3
0
Raspberry Pi OS does not support btrfs.
Presumably you installed btrfs support into initramfs so just repeat what you did before, although it is unclear that this offers any advantage over the default ext4.
Milliways
- 62,573
- 32
- 113
- 225