I found bad sectors on my usb external drive and so I want to perform a full wipe overwriting the disk with zeroes. I found this command:
sudo dd if=/dev/zero of=/dev/sd<disk-letter> bs=8M
and I have some questions:
- Is the block size value correct or should I set a different value depending if the disk is internal or external?
- Is there another command in case of a pen drive or a SSD drive?
- After I've deleted all partitions and created a new partition table by Gparted, should I also create a new partition (e.g. ext4) before typing the above command?
Thank you! :)