
NOTE: it is very important the identify the name for your drive correctly since we will be erasing the data on it - you don't want to accidentally choose your hard drive and erase personal data! Make a note of the Disk's name in this example, this would be /dev/sda. We can now reclaim this space so that all of it is accessible to you (instead of just the 2 MB in Disk). In the original question, the Disk entry would show 2 MB of space, and Device would show 16 GB. You will likely see two entries for your one USB drive like above: one for Disk (a portion of the drive which is accessible to you) and one for Device (the total space on the drive). Find your USB drive from the list based on the expected size in bytes.I/O size (minimum/optimal): 512 bytes / 512 bytesĭevice Boot Start End Sectors Size Id Type Sector size (logical/physical): 512 bytes / 512 bytes This will output all of your mounted disks and devices, with an individual entry looking something like:ĭisk /dev/sda: 57.8 GiB, 62058921984 bytes, 121208832 sectors

Identify the USB drive using the command sudo fdisk -l.

Open up a terminal using Ctrl + Alt + t.In this example, I am using a drive that has 64 GB total space, but displays only 512MB as available. This CLI solution uses fdisk on Ubuntu 18.04. This is an old question, but here is a solution for Ubuntu since the only complete answer here is for Windows (on AskUbuntu.).
