I have an SD card in a Moto G (2015) running marshmallow, not rooted. It was formatted as internal storage, and contains photos and videos from the birth of our daughter, but has become corrupted.
Since it was formatted as internal storage, it's ESDFS filesystem and presumably encrypted. I can't decrypt it without accessing the encryption key, which I can't do because I'm not rooted. Presumably rooting will delete that encryption key.
I presume it's corrupted because any attempt to look at the SD card from within android unmounts the card, and the phone can't see any of the pictures/video on there. When the card is inserted, the 'storage' menu will initially acknowledge the card and tell me how full it is, but any attempt to look inside the card will result in it unmounting.
I've tried running fsck - within system/bin there are fsck_msdos and fsck.f2fs, but both come up as 'permission denied' when looking for them, and 'no such file' when I try to run them.
I can access /data from an adb shell, but attempting to get into /data/data/media results in 'permission denied'
Can anyone help? E.g: 1) will rooting delete the encryption key so that the card can't be accessed? 2) is there a way to get fsck working? 3) any other ideas for getting the media off this card?
Many thanks in advance. I'm a bit of a noob, so clear instructions much appreciated!