HomeTutorials

Easy way to repair a Corrupted USB Drive in Linux

Easy way to repair a Corrupted USB Drive in Linux
Like Tweet Pin it Share Share Email

repair a usb

No matter how small is your usb drives, it always can hold files with bigger importance. However, sometimes your small usb drives can get corrupted without any notices and stopped working out. Good news is that you can repair a corrupted USB drive if you are using linux.

Steps 1:

Run the fsck command on a specific partition to remove the bad block in your drive or in your partition. (e.g. /dev/sdc1), (e.g. /dev/sdc).

sudo fsck /dev/sdc1

Meanwhile, when you drive is completely unreadable then you have only option left to make it to zero.

sudo dd if=/dev/zero of=/dev/sdc
 
 Now, we need to create a new data partition.

Fat32

sudo mkfs.msdos -f 32 /dev/sdc1

Ext4

sudo mkfs.ext4 -f /dev/sdc1

NTFS

sudo mkfs.ntfs -f /dev/sdc1

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *