SD card problem - can't find a way to format it and test it

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I have this SanDisk Ultra 32GB HC I - class 10 SD card that I have been using on my android phone as means to install and run more stuff on my phone.



I have been using it for around 4 months and yesterday, when I woke up and tried using my phone, it started crashing (it was working fine the night before).



Every app installed in it took a long time to load, and would display error messages related to the unresponsiveness.



I figured the SD card got some problem that degraded it's performance, so I formatted it on android to be used as a "normal" storage card. I am thinking it didn't format properly.



I am trying for 2 days now, to format it in FAT and run a couple of diagnostics to give to SanDisk customer support, so maybe they can send me a new one.



I can't seem to be able to format it.



Using Ubuntu disk utility, it show the card partitioning information as "Master boot record".
On the volume window, it shows as FAT.



Eventually, after running sudo dd if=/dev/zero of=/dev/mmcblk0 and mkusb:



1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,45646 s, 2,3 MB/s
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
Error: You requested a partition from 1049kB to 31,9GB (sectors 2048..62333951).
The closest location we can manage is 1048kB to 1048kB (sectors 2047..2047).
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
mkfs.fat 3.0.28 (2015-05-16)
/dev/mmcblk0p1 has 64 heads and 32 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 7997296 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 7795 sectors, and provides 997709 clusters.
There are 32 reserved sectors.
Volume ID is 39d99a2f, volume label .
Done :-)
created MSDOS partition table and FAT file system
Unplug and re-plug the flash card to see the correct info ... and press Enter
Wait 5 seconds and a little more ...
Model: SD SB32G (sd/mmc)
Disk /dev/mmcblk0: 31,9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 31,9GB 31,9GB primary fat32 boot, lba


MODEL NAME FSTYPE LABEL
mmcblk0
└─mmcblk0p1 vfat


This time, though Disk utility still shows the same, I was able to run some tests:



~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 84 MB in 3.00 seconds = 27.99 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.06 seconds = 28.14 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.05 seconds = 28.22 MB/sec



~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 13,6004 s, 78,9 MB/s
~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 8,1578 s, 132 MB/s
~$


Which I guess is bad, as they mention it's speed as upwards to 80MB/s.



After all this I tried putting it back in my phone and formatting it as internal storage, but android says: command '21 volume partition disk:179,64 private' failed with '400 21 Command failed'
And now my card has a 4.1GB partition somehow.



In summary, my phone started acting weird, I took the SD Card out, wasn't able to format is properly, might have a performance problem, can't figure out a way to test it for problems, Ubuntu's disk utility sees it as "partitioning MBR" BUT I can transfer files to the card.



How can I fix this issue, run some diagnostics for bad sectors and such, and properly measure it's performance?



EDIT:
mkusb:



mkusb log - 1



mkusb log - 2



Disk utility



When I try executing the benchmark from Disk utility, I get: Error writing 10485760 bytes at offset 0: Input/output error (g-io-error-quark, 0)



Also, I don't think those labels(boot and lda) should be there but I can't seem to be able to remove them.










share|improve this question























  • Try according to this link, Can't format my usb drive. I have already tried with mkdosfs and gparted. Memory cards and USB pendrives have the same kind of hardware inside, so the same methods are relevant to both kinds of devices.
    – sudodus
    Mar 11 at 6:20










  • @sudodus I edited my post with information on mkusb that was mentioned on the link you posted.
    – DSaita
    Mar 13 at 1:16










  • The input/output errors in the output from mkusb and Disks indicate, that the SD card is damaged. I think that the hardware or maybe the internal programming (inside the SD card) is damaged in such a way, that tools available to normal users (like you and me) cannot repair it. Maybe it is 'gridlocked' or some similar damage, as described at this link, Pendrive lifetime -- Memory cards and USB pendrives have the same kind of hardware inside, so this post is relevant to memory cards too
    – sudodus
    Mar 13 at 6:46














up vote
2
down vote

favorite












I have this SanDisk Ultra 32GB HC I - class 10 SD card that I have been using on my android phone as means to install and run more stuff on my phone.



I have been using it for around 4 months and yesterday, when I woke up and tried using my phone, it started crashing (it was working fine the night before).



Every app installed in it took a long time to load, and would display error messages related to the unresponsiveness.



I figured the SD card got some problem that degraded it's performance, so I formatted it on android to be used as a "normal" storage card. I am thinking it didn't format properly.



I am trying for 2 days now, to format it in FAT and run a couple of diagnostics to give to SanDisk customer support, so maybe they can send me a new one.



I can't seem to be able to format it.



Using Ubuntu disk utility, it show the card partitioning information as "Master boot record".
On the volume window, it shows as FAT.



Eventually, after running sudo dd if=/dev/zero of=/dev/mmcblk0 and mkusb:



1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,45646 s, 2,3 MB/s
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
Error: You requested a partition from 1049kB to 31,9GB (sectors 2048..62333951).
The closest location we can manage is 1048kB to 1048kB (sectors 2047..2047).
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
mkfs.fat 3.0.28 (2015-05-16)
/dev/mmcblk0p1 has 64 heads and 32 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 7997296 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 7795 sectors, and provides 997709 clusters.
There are 32 reserved sectors.
Volume ID is 39d99a2f, volume label .
Done :-)
created MSDOS partition table and FAT file system
Unplug and re-plug the flash card to see the correct info ... and press Enter
Wait 5 seconds and a little more ...
Model: SD SB32G (sd/mmc)
Disk /dev/mmcblk0: 31,9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 31,9GB 31,9GB primary fat32 boot, lba


MODEL NAME FSTYPE LABEL
mmcblk0
└─mmcblk0p1 vfat


This time, though Disk utility still shows the same, I was able to run some tests:



~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 84 MB in 3.00 seconds = 27.99 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.06 seconds = 28.14 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.05 seconds = 28.22 MB/sec



~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 13,6004 s, 78,9 MB/s
~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 8,1578 s, 132 MB/s
~$


Which I guess is bad, as they mention it's speed as upwards to 80MB/s.



After all this I tried putting it back in my phone and formatting it as internal storage, but android says: command '21 volume partition disk:179,64 private' failed with '400 21 Command failed'
And now my card has a 4.1GB partition somehow.



In summary, my phone started acting weird, I took the SD Card out, wasn't able to format is properly, might have a performance problem, can't figure out a way to test it for problems, Ubuntu's disk utility sees it as "partitioning MBR" BUT I can transfer files to the card.



How can I fix this issue, run some diagnostics for bad sectors and such, and properly measure it's performance?



EDIT:
mkusb:



mkusb log - 1



mkusb log - 2



Disk utility



When I try executing the benchmark from Disk utility, I get: Error writing 10485760 bytes at offset 0: Input/output error (g-io-error-quark, 0)



Also, I don't think those labels(boot and lda) should be there but I can't seem to be able to remove them.










share|improve this question























  • Try according to this link, Can't format my usb drive. I have already tried with mkdosfs and gparted. Memory cards and USB pendrives have the same kind of hardware inside, so the same methods are relevant to both kinds of devices.
    – sudodus
    Mar 11 at 6:20










  • @sudodus I edited my post with information on mkusb that was mentioned on the link you posted.
    – DSaita
    Mar 13 at 1:16










  • The input/output errors in the output from mkusb and Disks indicate, that the SD card is damaged. I think that the hardware or maybe the internal programming (inside the SD card) is damaged in such a way, that tools available to normal users (like you and me) cannot repair it. Maybe it is 'gridlocked' or some similar damage, as described at this link, Pendrive lifetime -- Memory cards and USB pendrives have the same kind of hardware inside, so this post is relevant to memory cards too
    – sudodus
    Mar 13 at 6:46












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have this SanDisk Ultra 32GB HC I - class 10 SD card that I have been using on my android phone as means to install and run more stuff on my phone.



I have been using it for around 4 months and yesterday, when I woke up and tried using my phone, it started crashing (it was working fine the night before).



Every app installed in it took a long time to load, and would display error messages related to the unresponsiveness.



I figured the SD card got some problem that degraded it's performance, so I formatted it on android to be used as a "normal" storage card. I am thinking it didn't format properly.



I am trying for 2 days now, to format it in FAT and run a couple of diagnostics to give to SanDisk customer support, so maybe they can send me a new one.



I can't seem to be able to format it.



Using Ubuntu disk utility, it show the card partitioning information as "Master boot record".
On the volume window, it shows as FAT.



Eventually, after running sudo dd if=/dev/zero of=/dev/mmcblk0 and mkusb:



1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,45646 s, 2,3 MB/s
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
Error: You requested a partition from 1049kB to 31,9GB (sectors 2048..62333951).
The closest location we can manage is 1048kB to 1048kB (sectors 2047..2047).
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
mkfs.fat 3.0.28 (2015-05-16)
/dev/mmcblk0p1 has 64 heads and 32 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 7997296 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 7795 sectors, and provides 997709 clusters.
There are 32 reserved sectors.
Volume ID is 39d99a2f, volume label .
Done :-)
created MSDOS partition table and FAT file system
Unplug and re-plug the flash card to see the correct info ... and press Enter
Wait 5 seconds and a little more ...
Model: SD SB32G (sd/mmc)
Disk /dev/mmcblk0: 31,9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 31,9GB 31,9GB primary fat32 boot, lba


MODEL NAME FSTYPE LABEL
mmcblk0
└─mmcblk0p1 vfat


This time, though Disk utility still shows the same, I was able to run some tests:



~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 84 MB in 3.00 seconds = 27.99 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.06 seconds = 28.14 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.05 seconds = 28.22 MB/sec



~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 13,6004 s, 78,9 MB/s
~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 8,1578 s, 132 MB/s
~$


Which I guess is bad, as they mention it's speed as upwards to 80MB/s.



After all this I tried putting it back in my phone and formatting it as internal storage, but android says: command '21 volume partition disk:179,64 private' failed with '400 21 Command failed'
And now my card has a 4.1GB partition somehow.



In summary, my phone started acting weird, I took the SD Card out, wasn't able to format is properly, might have a performance problem, can't figure out a way to test it for problems, Ubuntu's disk utility sees it as "partitioning MBR" BUT I can transfer files to the card.



How can I fix this issue, run some diagnostics for bad sectors and such, and properly measure it's performance?



EDIT:
mkusb:



mkusb log - 1



mkusb log - 2



Disk utility



When I try executing the benchmark from Disk utility, I get: Error writing 10485760 bytes at offset 0: Input/output error (g-io-error-quark, 0)



Also, I don't think those labels(boot and lda) should be there but I can't seem to be able to remove them.










share|improve this question















I have this SanDisk Ultra 32GB HC I - class 10 SD card that I have been using on my android phone as means to install and run more stuff on my phone.



I have been using it for around 4 months and yesterday, when I woke up and tried using my phone, it started crashing (it was working fine the night before).



Every app installed in it took a long time to load, and would display error messages related to the unresponsiveness.



I figured the SD card got some problem that degraded it's performance, so I formatted it on android to be used as a "normal" storage card. I am thinking it didn't format properly.



I am trying for 2 days now, to format it in FAT and run a couple of diagnostics to give to SanDisk customer support, so maybe they can send me a new one.



I can't seem to be able to format it.



Using Ubuntu disk utility, it show the card partitioning information as "Master boot record".
On the volume window, it shows as FAT.



Eventually, after running sudo dd if=/dev/zero of=/dev/mmcblk0 and mkusb:



1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,45646 s, 2,3 MB/s
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
Error: You requested a partition from 1049kB to 31,9GB (sectors 2048..62333951).
The closest location we can manage is 1048kB to 1048kB (sectors 2047..2047).
Error: Input/output error during write on /dev/mmcblk0
Warning: Error fsyncing/closing /dev/mmcblk0: Input/output error
mkfs.fat 3.0.28 (2015-05-16)
/dev/mmcblk0p1 has 64 heads and 32 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 7997296 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 7795 sectors, and provides 997709 clusters.
There are 32 reserved sectors.
Volume ID is 39d99a2f, volume label .
Done :-)
created MSDOS partition table and FAT file system
Unplug and re-plug the flash card to see the correct info ... and press Enter
Wait 5 seconds and a little more ...
Model: SD SB32G (sd/mmc)
Disk /dev/mmcblk0: 31,9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 31,9GB 31,9GB primary fat32 boot, lba


MODEL NAME FSTYPE LABEL
mmcblk0
└─mmcblk0p1 vfat


This time, though Disk utility still shows the same, I was able to run some tests:



~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 84 MB in 3.00 seconds = 27.99 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.06 seconds = 28.14 MB/sec
~$ sudo hdparm -t /dev/mmcblk0

/dev/mmcblk0:
Timing buffered disk reads: 86 MB in 3.05 seconds = 28.22 MB/sec



~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 13,6004 s, 78,9 MB/s
~$ dd count=1k bs=1M if=/dev/zero of=/media/danilo/694C-0649/test.img
1024+0 records in
1024+0 records out
1073741824 bytes (1,1 GB, 1,0 GiB) copied, 8,1578 s, 132 MB/s
~$


Which I guess is bad, as they mention it's speed as upwards to 80MB/s.



After all this I tried putting it back in my phone and formatting it as internal storage, but android says: command '21 volume partition disk:179,64 private' failed with '400 21 Command failed'
And now my card has a 4.1GB partition somehow.



In summary, my phone started acting weird, I took the SD Card out, wasn't able to format is properly, might have a performance problem, can't figure out a way to test it for problems, Ubuntu's disk utility sees it as "partitioning MBR" BUT I can transfer files to the card.



How can I fix this issue, run some diagnostics for bad sectors and such, and properly measure it's performance?



EDIT:
mkusb:



mkusb log - 1



mkusb log - 2



Disk utility



When I try executing the benchmark from Disk utility, I get: Error writing 10485760 bytes at offset 0: Input/output error (g-io-error-quark, 0)



Also, I don't think those labels(boot and lda) should be there but I can't seem to be able to remove them.







partitioning android sd-card






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 13 at 6:35









stumblebee

2,3083922




2,3083922










asked Mar 11 at 0:48









DSaita

113




113











  • Try according to this link, Can't format my usb drive. I have already tried with mkdosfs and gparted. Memory cards and USB pendrives have the same kind of hardware inside, so the same methods are relevant to both kinds of devices.
    – sudodus
    Mar 11 at 6:20










  • @sudodus I edited my post with information on mkusb that was mentioned on the link you posted.
    – DSaita
    Mar 13 at 1:16










  • The input/output errors in the output from mkusb and Disks indicate, that the SD card is damaged. I think that the hardware or maybe the internal programming (inside the SD card) is damaged in such a way, that tools available to normal users (like you and me) cannot repair it. Maybe it is 'gridlocked' or some similar damage, as described at this link, Pendrive lifetime -- Memory cards and USB pendrives have the same kind of hardware inside, so this post is relevant to memory cards too
    – sudodus
    Mar 13 at 6:46
















  • Try according to this link, Can't format my usb drive. I have already tried with mkdosfs and gparted. Memory cards and USB pendrives have the same kind of hardware inside, so the same methods are relevant to both kinds of devices.
    – sudodus
    Mar 11 at 6:20










  • @sudodus I edited my post with information on mkusb that was mentioned on the link you posted.
    – DSaita
    Mar 13 at 1:16










  • The input/output errors in the output from mkusb and Disks indicate, that the SD card is damaged. I think that the hardware or maybe the internal programming (inside the SD card) is damaged in such a way, that tools available to normal users (like you and me) cannot repair it. Maybe it is 'gridlocked' or some similar damage, as described at this link, Pendrive lifetime -- Memory cards and USB pendrives have the same kind of hardware inside, so this post is relevant to memory cards too
    – sudodus
    Mar 13 at 6:46















Try according to this link, Can't format my usb drive. I have already tried with mkdosfs and gparted. Memory cards and USB pendrives have the same kind of hardware inside, so the same methods are relevant to both kinds of devices.
– sudodus
Mar 11 at 6:20




Try according to this link, Can't format my usb drive. I have already tried with mkdosfs and gparted. Memory cards and USB pendrives have the same kind of hardware inside, so the same methods are relevant to both kinds of devices.
– sudodus
Mar 11 at 6:20












@sudodus I edited my post with information on mkusb that was mentioned on the link you posted.
– DSaita
Mar 13 at 1:16




@sudodus I edited my post with information on mkusb that was mentioned on the link you posted.
– DSaita
Mar 13 at 1:16












The input/output errors in the output from mkusb and Disks indicate, that the SD card is damaged. I think that the hardware or maybe the internal programming (inside the SD card) is damaged in such a way, that tools available to normal users (like you and me) cannot repair it. Maybe it is 'gridlocked' or some similar damage, as described at this link, Pendrive lifetime -- Memory cards and USB pendrives have the same kind of hardware inside, so this post is relevant to memory cards too
– sudodus
Mar 13 at 6:46




The input/output errors in the output from mkusb and Disks indicate, that the SD card is damaged. I think that the hardware or maybe the internal programming (inside the SD card) is damaged in such a way, that tools available to normal users (like you and me) cannot repair it. Maybe it is 'gridlocked' or some similar damage, as described at this link, Pendrive lifetime -- Memory cards and USB pendrives have the same kind of hardware inside, so this post is relevant to memory cards too
– sudodus
Mar 13 at 6:46















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013770%2fsd-card-problem-cant-find-a-way-to-format-it-and-test-it%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1013770%2fsd-card-problem-cant-find-a-way-to-format-it-and-test-it%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491