A few days ago I got my Pi out for the first time in a while wanting to play some retro games. Everything was working just fine until I decided to do some updates. The SD card I have was set up with Raspbian Wheezy distribution. After updating RetroPie I was told that I needed to update to a later version of Raspbian to allow it to run so this is when my troubles started.
I followed the process to upgrade the distribution. Both running "apt-get update" and "apt-get upgrade" pointing to the Jessie distribution worked just fine however when running "apt-get dist-upgrade" an error was encountered when attempting to upgrade vsftp and the update aborted. I tried re-running several times but each time it failed when attempting to update vsftp. In frustration I ran the command "apt-get remove vsftp" and then tried running the upgrade again. This time nothing was processed so I thought it was all OK to reboot. Bad idea.
On reboot I was just shown the rainbow screen, nothing else. Removing the SD card and having a look on my Mac showed that the boot directory was empty. I tried renaming boot.bak to boot but this just ended up with the same result.
In frustration I reformatted the SD card. I did make a back up of the SD card with my Mac early in the year so I thought I could just restore it and start again. I now get an error when I attempt to restore the backup image onto the card. Here is the message:
After this failure I eject the card from my Mac and then reinsert it. Both partitions are accessible, both called "Untitled". If I then eject the SD card and try it in my Pi the Pi will start to boot and then fails stating that it cannot mount the disk. Putting the car back in my Mac only the BOOT partition mounts. The other partition is visible in Disk Utility but is not being mounted.
Code: Select all
bash-3.2# dd bs=1m if=Grants-Pi-SD-080215.img of=/dev/rdisk3 dd: /dev/rdisk3: Input/output error 60907+0 records in 60906+0 records out 63864569856 bytes transferred in 4022.555946 secs (15876614 bytes/sec)
I suspect that there is an issue with the main partition of the SD card. How can I fix this with my Mac. Any help would be appreciated as I do not want to lose everything I have done.