The explanation is based on my experience and knowledge : Crossing portable storage solution from different architecture/OS may corrupt the partition table. A corrupted partition table can prevent from using the existing partition or creating new working partition.
Solution with ubuntu computer :
Insert SD card in the computer and open a terminal
lsblk
Find the sdcard in the output. Unmount any mounted filesystem, for example:
udisksctl unmount -b /dev/mmcblk0p1
sudo apt-get install parted
sudo parted
(parted) select /dev/mmcblk0
(parted) print
(parted) mktable msdos
(parted) mkpart primary fat32 1 31300
The last number depends on your SD card. To know that number you need to look at the second line of the print information. mine was 31.3GB so I entered 31300 which is in MB. It is up to you to find this information or to write back here.
(parted) print
(parted) quit
mkfs.fat /dev/mmcblk0p1
You should have a working SD card now.
Some notes on the commands:
(parted)
means that you are still in the parted utilty.
/dev/mmcblk0
is a guess since it can vary from a system to another. Use the correct label for your sdcard
- Be careful to carefully select the right device with parted. If you are not sure that you are selecting the right one come back here and ask.