Install GParted
The following steps will help to fix your USB drive.
Step 1 - Install GParted
By default, GParted isn't installed in Ubuntu.
You can install GParted in a number of ways, but the easiest is to run the following command in the Linux terminal:
sudo apt-get install gparted
Step 2 - Run GParted
Press the super key to bring up the Dash and search for "GParted". Click on the GParted icon when it appears.
Select the disk that represents your drive from the list in the top right corner of the screen.
Step 3 - Create A Partition Table
You should now see a large area of unallocated space.
To create a partition table select the Device menu and then Create Partition Table.
A window will appear stating all data will be erased.
Leave the partition type as "msdos" and click Apply.
Step 4 - Create A Partition
The final step is to create a new partition.
Right click on the unallocated space and click New.
The two key fields in the box that appears are "File System" and "Label".
If you are only ever going to use the USB drive with Linux then you can leave the default file system as "EXT4" but if you plan to use it on Windows as well then change the file system to "FAT32".
Enter a descriptive name into the label field.
Finally, click the green arrow icon in the toolbar to apply the changes.
Another message will appear asking whether you are sure you wish to continue as data will be lost.
Of course by the time you get to this point any data that used to be on that drive is well and truly gone.
Click Apply to finish.
Summary
Your USB drive should now appear in the Ubuntu Launcher and you should be able to load files onto it again.
If you have access to a Windows computer it is worth trying it out to make sure it works correctly.
Troubleshooting
If the above steps don't work do the following:
Open a terminal window by pressing CTRL+ALT+T at the same time. Alternatively, press the super key on the keyboard (Windows key) and search for "TERM" in the Ubuntu Dash search box. When the icon appears, click on it.
In the terminal enter the following command:
dd if=/dev/zero of=/dev/sdb bs=2048
Comments