I recently wanted to format the USB flash drive in the Ubuntu operating system, but since it was in UDF format, formatting was refused and many programs did not see it as a flash drive.
To begin with, let’s look at the discs:
sudo fdisk -lu
Then the solution was to execute the following command:
sudo shred -vzn 0 /dev/sdc
After that, the flash drive can be formatted by any program.