Categories: Linux Tutorials

Restore Corrupted USB Drive To Original State In Linux

Many times our storage devices like sd cards and Pen drives get corrupted and unusable due to one or other reasons.   It may be because of making a bootable media with that device, formatting via wrong platforms or creating partitions in that device.  

Restore Corrupted USB Drive to Original state

Warning: The following procedure will format all your data from your device   Whatever the reason, the final outcome is that we are not able to use that device.
So here is a solution to restoring a corrupted USB drive or sd card to its original working state.

Most of the time a simple format via the file browser solves the problem, But for extreme cases where the file manager isn’t helpful and you need your device working, you can follow this guide.

We will be using a small tool called mkusb for this purpose. The installation is easy.

Add the repository tor mkusb.

sudo apt add repository ppa:mkusb/ppa 

Now, Update your package lists.

sudo apt-get update 

Install mkusb
sudo apt-get install mkusb 

Now launch mkusb. You will get this prompt, click ‘Yes’.

Now mkusb will ask you one last time if you wish to proceed with the formatting of the data, ‘Stop’ will be selected by default. You now select ‘Go’ and click ‘OK’.

​The window will close and your terminal will look like this.

mkusb

In a few seconds, the process will be completed and you will get a window popup like this.

USB

You need to now remove the device from the system and plug it back in. Your device is Restored to a normal device and it will function properly like before.

Now I know all of these could have been done via terminal commands, GParted or some other software, etc. But that would require some level of knowledge about partition management.​So it’s always good to have a small tool like this to automate the boring work for you.  

Conclusion

mkusb is a fairly easy to use program that can help you repair your USB storage devices and sd cards. It is available through the mkusb ppa as mkusb. All operations on mkusb will require superuser permissions and all your data on that device will be formatted.

Once the operation is completed You will have to reattach the device to make it work. ​​If you have any queries feel free to post them in the comments section below.

Sohail

Mohd Sohail is a web developer and a Linux sysAdmin. He also loves to write how-to articles, applications reviews and loves to use new Linux distributions.

View Comments

  • Thanks for the article. In my case "sudo apt add repository ppa:mkusb/ppa " didn't work .
    I used sudo apt-add-repository ppa:mkusb/ppa
    Also the update command didn't take any arguments it was just "sudo apt update"
    Finally, the last command -- sudo apt-get Install mkusb didn't work I had to change the uppercase I in Install to i (install)

    '

  • how do I know it will do the magic with my intended HHD?
    I tend to use slacko which is started by a USB stick.

    Not that familiar anymore with linux.. it was a while ago when I used it regulary

Recent Posts

How To Host Counter-Strike: Global Offensive Server on Ubuntu

Counter-Strike: Global Offensive popularly known as CS: GO is one of the most popular games…

2 days ago

Blogging with WordPress | WordPress 101

Welcome back to WordPress 101 series. In this series, we're learning the basics of WordPress.…

4 days ago

Top 8 Desktop Environments For Linux [2021]

Linux distributions come in various flavors. No matter if users are joining in from Windows,…

2 months ago

Ubuntu 21.04 “Hirsute Hippo” Released

Today Canonical has released its latest version of the operating system, Ubuntu 21.04. Ubuntu 21.04…

2 months ago

Telegram Launched Telegram WebZ & Telegram WebK

Telegram is a popular instant messaging app known for protecting users' privacy while providing the…

2 months ago

Install Discord On Linux

When you divide gaming into two eras, then you get gaming before the advent of…

2 months ago