Home > computers > linux > diskformatting | About
When a flashdrive is in EOL it will enter write-protect mode and there's nothing you can do about it.
Otherwise, follow these steps as root
(you won't be able to do much as a normal user) :
-1 fdisk /dev/sdb
in fdisk, type the following commands:
N
will create aN
ew partition, for all subsequent questions you can safely typeEnter
to keep the defaults. When asked for partition type, typep
forp
rimaryw
willw
rite changes to disk
-2 partprobe
then partprobe -s
will refresh and print the partition table that is stored in the kernel
-3 mkfs.vfat -F 32 /dev/sdb1
will create a FAT32 partition in sdb1
That's it, you should now be able to mount the key.
Source : https://www.lifewire.com/fix-a-broken-usb-drive-using-linux-4116970
contact : @ychaouche yacinechaouche at yahoocom