How to replace SD card formatted as internal storage?


Question

I need help..



I have a redmi 4a device, with android 7,
I formatted a 64 gb ADATA SD card as internal storage, worked great for long, until after a restart the SD card is corrupted with precious data on it..



It says tap to format, but it doesn't format, I tried on my laptop and windows cd and Easeus partition manager, but none worked..



I lost hope to fix the SD card, but the phone isn't accepting to show photos or store any data, even with new card identical to the old is mounted.. it says unmount usb storage..
When I try to see a photo status on whatsapp, says can't download because no internal storage is available, please unmount it as a disk drive, and try again..
Also I can't see any picture sent to me in chat..



I tried to format the new card as internal, but same problem..



Any help?


Answer

In general fixing an sd-card with corrupt data should be done on raw disk not on partition level, overwriting potential corrupt partition data.



Assuming that the sd-card is physically fully working the best way to reset it is by overwriting the first blocks with zeros.



Unfortunately I don't know a good erase tool that works on Windows and that works on RAW disk level. On Linux this can be easily done using dd writing to the block device of the sdcard (e.g. sdb, sdc or something like this).



For Windows the Hex editor HxD may be an alternative if you know what you are doing. It allows to open the full disk in read-write mode and then you can overwrite the first few kilobytes. Just make sure you are writing to the correct disk (and not overwriting e.g. your main HDD/SSD).



Once you have managed to reset the sd-card eject it and then re-insert it. Then format it on the PC and apply then test it using the tool H2Testw. It fills the sd-card with dummy data and then verifies if the all the written data can be read.


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