How to restore your USB to its original state?

Sometimes flashing the USB won't work or you want to use an USB that had other Linux versions flashed on. In such cases, you will need to do a full restore of your USB as simple format won't be sufficient. You will certainly need to do that, if after flashing you don't have the access to the USB and can't edit the config.js file.

Windows

If you are using Windows, first open a Command Prompt (cmd.exe) as an administrator and enter the following commands step by step.

  1. diskpart (this will run new diskpart window)
  2. list disk
  3. select disk x (with x being the disk number of your USB)
  4. clean (in case you get an error on this step, unplug the USB and plug it back in and start from beginning)
  5. create partition primary
  6. active
  7. format fs=fat32 quick
  8. exit

This procedure will restore your USB to its original state.

Linux

If you are using Linux, you will need to delete the old partitions that remain on the USB first, then create a new partition. First, open the terminal and then enter the commands step by step.

  1. sudo su
  2. fdisk -l to see the letter of your USB
  3. fdisk /dev/sdx (with x being the letter of your USB)
  4. d to delete a partition
  5. 1 to select the first partition
  6. d to delete another partition
  7. n to make a new partition
  8. p to make this partition primary
  9. 1 to make this the first partition
  10. Press enter to accept the default first cylinder
  11. Press enter again to accept the default last cylinder
  12. w to write the new partition information to the USB
  13. umount /dev/sdx1 (with x being the letter of your USB)
  14. mkfs.vfat -F 32 /dev/sdx1 (with x being the letter of your USB)

This procedure will restore your USB to its original state.

Revolutionize your mining operation with minerstat

It's easy and free to get started. Monitor, manage, and optimize your mining rigs with our powerful platform.

Sign up for free now

msOS

Play-to-Earn TON Game
Play