0

I want to format my USB drive. In terminal, I use the following commands:

umount /dev/sdb1
mkfs.vfat -I -n "New Volume" "/dev/sdb1"

But I could not. It shows me following error:

mkfs.vfat 3.0.12 (29 Oct 2011) 
/dev/sdb1: Permission denied

Somebody helps me, please. Thank you in advanced.

Ps: When I add sudo before the above commands, it works. But nothing changes. My old files and folders still remain. Gparted also does not work. It shows me the following error:

enter image description here

When I try to format by Disk Utility, it shows me the following error: Error formatting volume Error creating file system: helper exited with exit code 1: Error calling fsync(2) on /dev/sdb1: Input/output error

Truong
  • 125

1 Answers1

1

That Input/Output error message suggests there are hardware problems (not viruses as your comments that exist on a now-deleted answer say you think is the case).

You say in those now-deleted comments that Windows also says it can't write to the drive. This further suggests a hardware issue with the USB drive specifically.

It is almost a guarantee that this is a hardware issue, since every attempt to edit the file system (based on your comments) on any operating system results in that error or similar.

I would surmise that your USB drive is no longer functional as a usable USB stick and likely will end up not functioning at all soon enough; I would back up any data you wish to keep and replace the drive as soon as possible to prevent data loss.

Thomas Ward
  • 78,878