SD card BAD?
Posted by kll on April 11 2018 07:53:40
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!


[insert_php] text_svg('win 7',70,'#ff0000','#ffee00','#ffeeff','','gradient'); [/insert_php]
*** 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]
H2testw resultWarning: Only 14831 of 14832 MByte tested.
Test finished without errors.
You can now delete the test files *.h2w or verify them again.
Writing speed: 6.23 MByte/s
Reading speed: 16.3 MByte/s
H2testw v1.4







-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.


[insert_php] text_svg('linux',70,'#ff0000','#ffee00','#ffeeff','','gradient'); [/insert_php]
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