How do you update fstab
after destroying the original file? I am trying to completely overwrite a pendrive with zeros, then create a partition of arbitrary size to store data with no room for viruses.
fstab
was fine, for starters.- I ran
dd
on the flash drive, to fill it with zeros. It was full, within about 2 kilobytes. - I removed the flashdrive and re-inserted it, hopefully I ejected it first, I don't remember.
I ran some commands in the terminal to place a partition on the USB drive. I'm not sure if they worked, or not.
sudo parted /dev/sdb mklabel msdos sudo parted -a none /dev/sdb mkpart primary fat32 0 2048 mkfs.vfat -n "Disk" /dev/sdb1
Somewhere among the above steps "you may need to update fstab" messages started appearing.
I installed GParted to check on or fix the partition, but could not see the USB drive.
- Other undoctored pendrives function normally.
I was using How do I clear everything (data, viruses) from a thumbdrive? as a guide.