I am getting an error with my Raspberry Pi on boot:
Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block(179,2)
I have been trying to follow this answer: Kernel panic-not syncing: VFS: unable to mount root fs on unknown- block(179,6) running Raspbian on top of NOOBS
But I cannot get my Raspberry Pi into recovery mode - I have tried holding shift down the whole time, holding it down after the RGB splash screen, repeatedly pressing shift, etc and nothing works.
I then tried to follow these instructions on the NOOBS GitHub page: https://github.com/raspberrypi/noobs/blob/master/README.md#how-to-force-recovery-mode-being-entered-on-boot-overrides-gpio-or-keyboard-input
This says to append forcetrigger
to the recovery.cmdline
file.
I have put my SD card into my Mac and can access a small number of files in what I believe is the boot
volume. There is no recovery.cmdline
but there is a cmdline.txt
- however, any changes to this file are lost when I remove the SD card.
I then followed the instructions on https://www.jeffgeerling.com/blog/2017/mount-raspberry-pi-sd-card-on-mac-read-only-osxfuse-and-ext4fuse to properly mount the SD card but I cannot find any file called recovery.cmdline
.
The boot
directory is empty and the root
directory only had some .cache
and .profile
files.
Please help. I don't know how to fix this issue and I really do not want to have to reformat my SD card and start over again.