WARNING: These steps will delete the entire contents of the USB stick!
Open a command line and run the following:
(accept the request for privileges)
DISKPART> list disk
(determine which disk is your USB stick, for me it was Disk 1)
DISKPART> select Disk 1
DISKPART> create partition primary
This cleared the disk and gave me one large partition that can now be formatted. Instead of trying to partition it from diskpart, I decided to just use the Disk Management gui using these steps:
- Start -> Run : diskmgmt.msc
- Right click on the usb disk in the gui and select Format
- Select the file system you want to use, I used FAT32 so it would also work in Linux
- Press OK
I now have a working USB stick that has all disk space available and no partitions hidden from Windows.