How do I repair a flash drive in Lunbuntu

Associate
Joined
30 Jan 2019
Posts
953
I have a flash drive which isn't showing in Linux but shows in Windows with two partitions and 1 GB I can't properly format it in Windows and it wont show in Linux. The drive is a 4 GB. I think this was used to install Linux to a computer some time ago but its not needed anymore and I want to use this drive for something else. I need to repair and format this flash drive and I've forgotten how to do it and its driving me mad. I've looked in disk options but I can't see anything that rings a bell?

How do I repair a flash drive that isn't showing?

Thanks.
 
Can't you use diskpart on Windows as you say you're using that as well.

in an admin CMD or Powershell

diskpart
list disk
select disk n (n being the number of the disk in the list when shown, be careful to definitely select the USB stick)
clean
list disk (to make sure it is still selected, it will have an asterisk next to if it is, if not select disk again)
create partition primary
select partition 1
active
format fs=FAT32 label=my-drive-label quick (any label you want, quick for a quick format)
assign letter=Q (any available drive letter)
exit
exit

Follow the above, it's my go to method or just Google "Clean USB stick" for more in depth instructions.
 
Gparted can not see the flash drive and there don't appear to be any options to mount it and Windows 10 can't see it either. It was working fine when it had an ISO image file on it. Windows 98 sees it on my retro system but the only problem is it won't format properly because its only showing a few MB.

Is there an option to mount a drive in G-parted? if not... Is there another tool I can use in Linux?

Edit: I just tried it on Windows 98 and that's no longer seeing it either. Are there any options using sudo commands?
 
Last edited:
Back
Top Bottom