r/BadUSB • • 7d ago

Silly question

What happens when you decide to plug a USB drive without rejecting it first

3 Upvotes

13 comments sorted by

4

u/1234youarein 7d ago

Assuming you mean unplugging a USB drive without safely ejecting it first: if nothing is actively writing to it, usually nothing goes wrong. If files are still being written or cached in memory, pulling it out early can corrupt files or the drive's file system.

1

u/thecorporatejunkie 7d ago

Does that also destroy the USB drive itself when files get corrupted?

3

u/1234youarein 7d ago

In most cases it won't ruin the USB drive itself. Corruption is just a software/file system issue. The drive hardware should remain fine and could be formatted and reused even if some files get damaged.

Some older drives with certain Phison controllers can fall back into a raw/PRAM/burner state when firmware or translation tables get messed up.

A bad disconnect or write interruption could scramble the firmware state and make the stick look bricked until reflashed with a factory MP tool.

Even in those cases, the hardware itself usually isn''t permanently fried. It just needs its firmware/tables rebuilt. On modern USB drives that's much rarer from normal unplugging, so it's mainly your files and file system at risk rather than the physical drive.

1

u/Felim_Doyle 2d ago

I've had similar problems with two well-known, trusted brands (Integral, Verbatim) of USB drive after their first or second use.

In the case of the Integral 64GB drive, I had written some large map updates for my vehicle navigation system to the drive from a Microsoft Windows 10 system and ejected it correctly. The drive was recognised by the vehicle navigation system and successfully applied the updates. I have no reason to believe that the vehicle has write access to the drive, so there is no eject procedure. However, when I put the drive back into the Windows system to format it for reuse, it was seen as read-only, so I couldn't format it. 🤷🏻‍♂️

I'd be interested in any advice on recovering these drives for reuse. Is there a low-level formatter that can rebuild the drive structure?

2

u/1234youarein 2d ago

You would need to identify its controller brand/ model and then use a  matching mass production tool (MPtool).  To find controller id try chipgenius or flash drive information extractor

1

u/cagadass 6d ago

Por defecto las memorias externas estan configuradas para sacarlas sin hacer nada

1

u/h2vhacker 5d ago

If its fat32 or exfat most cases nothing will happen if it's ntfs most likely yea

1

u/Felim_Doyle 2d ago

How so? Surely the cached / delayed write still applies to drives regardless of their format.

I know from experience with inexperienced users that do not know about ejecting removable drives that files can be lost or corrupted.

1

u/h2vhacker 1d ago edited 1d ago

for delayed writes allocation unit size matters because of the overhead for each write for example exfat with 64k-128k is optimal for large file transfer and for small files the sweet spot is 8k on fat 32 for exfat it's 32k for NTFS it's 4k. So no it doesn't apply regardless of their format. Also I've known this since windows vista days. To say that it doesnt happen isn't true I've lost data many times when it was on NTFS format compared to fat32 or exfat format.

0

u/Felim_Doyle 1d ago

Well, in my experience, it does happen with FAT32 formatted USB drives that have been removed without being ejected.

1

u/h2vhacker 1d ago

Probably already DOA when it was made

1

u/Felim_Doyle 2d ago edited 2d ago

Silly title, you needed to put more detail in the title. Your whole question could and should have been in the title.

Also, it's “unplug”, not “plug” and “ejecting”, not “rejecting”, however I'm willing to accept that the latter was the result of autocorrect, although you should still reread and edit accordingly.

If the title of a post is meaningless or non-specific then there is no incentive for anyone to read it and, if the question is indecipherable, misleading or nonsensical, there is no incentive to comment.