I tried with gparted, it didn't work. I found a SDFormatter, tool for windows that did the full erase.
I have a SD card and want to install Debian onto it. The dd process takes about 45 minutes, after that I quit it. In my Windows machine, it shows up in drive list but there's also an undefined error while try formatting or even opening. gparted just tells me
/dev/mmcblk0: unrecognised disk label
dd if='deb.iso' of=/dev/mmcblk0 bs=512k dd: error writing „/dev/mmcblk0“: I/O error 0+1 data in 0+0 data out copied 0 Bytes (0 B), 10,098 s, 0,0 kB/s
After that I tried
root@kali:~# lsblk -o NAME,FSTYPE,MOUNTPOINT,SIZE,RO NAME FSTYPE MOUNTPOINT SIZE RO sda 465,8G 0 ├─sda1 ext4 / 450,1G 0 ├─sda2 1K 0 └─sda5 swap [SWAP] 15,7G 0 sr0 1024M 0 mmcblk0 29,5G 0
mmcblk0 is the one i have problems with. Last,I tried
root@kali:~# mkdosfs -F 32 -v /dev/mmcblk0 mkfs.fat 3.0.26 (2014-03-07) /dev/mmcblk0 has 4 heads and 16 sectors per track, hidden sectors 0x0000; logical sector size is 512, using 0xf8 media descriptor, with 61896704 sectors; drive number 0x80; filesystem has 2 32-bit FATs and 32 sectors per cluster. FAT size is 15105 sectors, and provides 1933326 clusters. There are 32 reserved sectors. Volume ID is 2df52746, no volume label. mkdosfs: failed whilst writing reserved sector
I have absolutely no idea why it won't work.