I have a USB stick which I want to reformat on Ubuntu 24.04.1 LTS. In lsblk it looks like this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 29.4G 0 disk
First, I tried to just use sudo mkfs.vfat -F 32 /dev/sda, but it fails with mkfs.vfat: failed whilst writing reserved sector. So, I followed answers such as How to format a USB stick and executed
sudo dd if=/dev/zero of=/dev/sda bs=2048 count=32 && sync
(I also tried with bs=4M and no count).
However, this command runs forever (I let it run for about 30h).
It seems dd gets stuck somewhere.
Is there a way to fix this?
Anamnesis of the USB stick
Earlier I tried to create a bootable medium from it using a Windows. The app always returned some generic error, but I tried a few times.