Forum Discussion
How do you clean the MBR on removal drives.
I can't remember what the command was. Trying to get rid of trojan, but also need to clean all my USB drives.
I'm noticing all information seems to have been removed or moved so far down the list it's not visible anymore.
All of them return UEFI, and nothing on cleaning MBRs on removal drives. UEFI is unreliable (as far as I can tell). The hackers are better getting in than UEFI is at keeping them out.
5 Replies
- Ethanparker9Copper Contributor
If you want to completely wipe the MBR on a USB drive, the easiest way is to use diskpart in Windows. Open Command Prompt as administrator, then run:
- diskpart
- list disk (this shows all drives, so double‑check you pick the correct one)
- select disk X (replace X with the number of your USB drive)
- clean (this wipes the partitions and the MBR)
After that, you can re‑initialize and reformat the drive in Disk Management. Keep in mind this erases everything on the drive, so back up anything important first.
- gracemillerBrass Contributor
To clean the MBR on a removable drive like a USB, you can use Diskpart on Windows or GParted on Linux. On Windows, run Command Prompt as administrator, open Diskpart, select the correct disk, and use the "clean" command to wipe the MBR and all partitions. On Linux, use a tool like GParted to create a new partition table, which also removes the MBR. This process completely clears the drive, so double-check the selected device before proceeding.
- jamesehenCopper Contributor
If you just want to clean the MBR on a USB drive, the quickest way is to use Diskpart in Windows. Open Command Prompt as admin, run:
diskpart
list disk
select disk X (your USB number)
clean
exit
This wipes the MBR completely, then you can reformat the drive. Just be careful to pick the right disk because it erases everything.
- stusstowIron Contributor
Have you fixed?
- HutsellIron Contributor
On Windows you can wipe the MBR of a removable drive with diskpart.
Open an elevated Command Prompt, then:
diskpart
list disk
select disk <number of your USB drive>
clean
exit
⚠️ Warning: clean will erase the partition table and all data on that disk. Double-check the disk number before running it.If you want a full overwrite (not just removing the partition table), follow up with a format or use clean all to zero the entire drive.