I backed up my Pi 8GB SD card using Win32DiskImager. I then wrote that image to another (exact same size/brand) 8GB SD card, again using Win32DiskImager.
Now when I tried to boot the Pi using that new SD card, I got a kernel panic with this error:
Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block(179,6)
I found this page on the site: Kernel panic-not syncing: VFS: unable to mount root fs on unknown- block(179,6) running Raspbian on top of NOOBS
I followed the process there and fsck.ext4
sat there for 10-15 minutes fixing stuff.
Once that was done, I rebooted and am now faced with this error:
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
I tinkered with the parameters in cmdline.txt
as described here, but no luck:
Error on Boot. 'No working init found.'
I can basically get this to bounce between the first and second panic errors (VFS error or no init error) by changing the cmdline.txt
file parameters.
I have a second Pi, I am able to mount the SD card from the non-functional one and I can see all the data files etc, so I'm at a loss as to what the problem could be. I am by no means a linux jockey so I imagine there's some low-level config file somewhere that's messed up, though how that happened when this was a direct copy of the original SD card image I have no idea.
Anyway, I would ideally like to recover this, as setting up the environment etc., was time-consuming, and I would prefer not to have to do it again. But at least the files (scripts & such) can be recovered.
Let me know your thoughts/suggestions.