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 a New partition, for all subsequent questions you can safely type Enter to keep the defaults. When asked for partition type, type p for primary
  • w will write 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

Source


contact : @ychaouche yacinechaouche at yahoocom


QR Code
QR Code diskformatting (generated for current page)