Unable to access/use internal storage

by XBCreepinJesus

I just tried to use adb pull to grab the Kodi log file off my TV (it's stuck on "waiting for external storage") only to find that /sdcard is now inaccessible (hence Kodi error, presumably).

I recently added a USB stick and configured it as internal storage, but after finding out only 2 apps could actually be moved to it I reformatted it as external storage and removed it. I'm guessing ever since then this has been broken.

When I try to install a new app, the TV says I'm out of space (actually almost 6GB free). Using adb shell I cannot browse /sdcard , /data , etc.

An output of df -H shows that nothing is mounted to /sdcard ! (I know it used to be on there because of a previously run command.)

127|BRAVIA_ATV3_4K:/ $ df -H
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0G 377k 1.0G 1% /dev
tmpfs 1.0G 0 1.0G 0% /mnt
/dev/block/dm-0 1.2G 1.2G 0 100% /system
/dev/block/mmcblk0p46 602M 508k 558M 1% /cache
/dev/block/mmcblk0p45 8.7G 2.8G 5.4G 34% /data
/dev/block/dm-1 75M 75M 0 100% /linux_rootfs
/dev/block/mmcblk0p4 4.0M 74k 3.8M 2% /perm
/dev/block/dm-2 78M 78M 0 100% /3rd
tmpfs 1.0G 64M 956M 7% /tmp
/dev/block/mmcblk0p51 1.0G 1.0G 0 100% /data_demo
/dev/block/mmcblk0p41 2.1G 4.0k 2.1G 1% /upgrade

Anyone got any ideas on how to fix? Trying to avoid a factory reset but it's probably the easiest (albeit frustrating) way.

XBCreepinJesus

Just for future reference - I can't say for certain whether this was the fix, but after going through the settings in preparation for a factory reset, I found a 'USB device' listed under Storage. Selecting it and pressing 'Forget' removed it, and now everything sdcard-wise is working as it should.

I can only assume removing this USB device re-mounted the internal storage properly? Not sure why it didn't do that to start with, but it was probably me doing it wrong!