sd card reports full when it isn't


Question

I foolishly interrupted a file deletion operation on my internal sd card. (The card was full when I started) Now using any file explorer tool shows files and directories adding up to ~300 M, yet the entire 1.2 G sd card shows as full.



My tablet is rooted, and I have the file explorers set to show hidden files. I have connected to a Linux PC with adb and done ls -al on the sdcard. Linux disk tools also show the card full, but the extant files only adding up to ~300 M. Nothing shows what is consuming the extra space.



Please do not reply with advice to clear cache, look for dumps, etc. There is no visible or hidden file on the card which is consuming the space. There must be a corrupted file or directory attribute or table or some such. Any advice as to how to reset this parameter(s) would be greatly appreciated.



On Linux I would run fsck on the disk - is there such a thing for Android?


Answer

This did indeed turn out to be file system corruption. This question helped me solve it but I don't think it is a duplicate because the accepted answer did not work for me. However one of the other answers was very close to what I needed.



To fix:
Connected to my Linux PC with adb.
Then issued adb shell mount | grep -i sdcard command. This told me that my sdcard filesystem was vfat, which is why the accepted answer to the other question didn't work for me. So going off another answer to that question I did a adb shell fsck_msdos -y /dev/block/vold/93:80. This spat out a bunch of output and created a bunch of files in LOST.DIR on the sdcard which was awesome, because then I could get at them and delete them. One was 770M which was the bulk of the missing space.



Problem solved.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes