My SD card is not booting more. This is the error end Kernel panic - not sycing: VFS: Unable to mount root fs on unknown-black(179,2) I tried many wasy to boot it that are given on internet, no solution work. Now the issue is I did lot of programming work on it and my program file is reside in it. Its effort of many days and night. I want to recover that .py file.
I tried many ways to recover that file also, I don't find solution of it. When I open it on windows or Linux system via SD card reader or USB card reader it only shows one boot partition containing all those files that are usually reside when we first time write SD card with raspbian operating system.
I also tried this solution that is given in answer but it didn't work:
when I paste this command in terminal:
sudo fdisk -l /dev/sdb it showed sdb1 and sdb2 partitions.
Then I used
sudo e2fsck /dev/sdb2, it showed
rootfs: **** WARNING: Filesystem still has errors *****
So the next command
sudo mount /dev/sdb2 /mnt/whatever not work and showed that
mount: /mnt/whatever: mount point does not exist.
Is there any way to recover that programming file. If yes kindly provide me solution of that. I will be very thankful to one who solve my problem!