Apr 11 2018
SD card BAD?
is my SD card BAD?as the cards are cheap now you could just get it over with and put it in the trash bin.
but if it is in question if the problem is with the card or just the installation or other hardware issues
or you want try to claim that now possibly lifetime warranty of a sd card
brace yourself for a day trip!
*** as format and block read write tests are "destructive" try:
+ + + image backup
+ + + deep format
+ + + write read test
+ + + image restore
-a- win32diskimager 1.0
/my/windows/path/temp_sdcard_readback.img
[read]
for a 16GB sd card it gives a 16GB .img file
if you want to keep it you could zip down, slow but effective.


-b- sd formatter 5.0
[overwrite][label=]





-c- H2testw
[english][all available space]





-d- restore from backup img file
win32diskimager
/my/windows/path/temp_sdcard_readback.img
[write]




-e- boot it in RPI

-f- delete or zip the
/my/windows/path/temp_sdcard_readback.img
file on your windows hard disk.
subject in a external usb card reader
and run a RASPBIAN Desktop setup / updated / customized /
add installs: gparted .. ( this i call MASTER SD card ( best 8GB ) only used to burn new system cards by SD card copier tool or do work on other cards like following: )
first lets find out about that bad? card in card reader :
lsblk
df -Th

following this i try:
sudo fdisk -l /dev/sda

sudo badblocks -v /dev/sda1 > badsectors_sda1.txt
sudo badblocks -v /dev/sda2 > badsectors_sda2.txt

add i try also
sudo umount /dev/sda2
sudo fsck.ext4 -vfc /dev/sda2

from desktop use gparted
sudo apt install gparted


