this post was submitted on 31 Oct 2025
        
      
      778 points (98.3% liked)
      Programmer Humor
    27175 readers
  
      
      1073 users here now
      Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
 - No advertisements
 - Posts must be related to programming or programmer topics
 
        founded 2 years ago
      
      MODERATORS
      
    you are viewing a single comment's thread
view the rest of the comments
    view the rest of the comments
I used to do this, because it didn't seem to cause any issues — until it did, and I lost a lot of data.
People who say this I'll tell you what actually happens so you can know. When you tell it to safely eject all the volatile memory saved in RAM it actually writes to the permenant storage memory instead of holding it in volatile storage. Every time you yank you're betting that its not in volatile storage anymore and was written to storage. That's what safely eject does, forces the CPU to write to permenant storage.
Edit: the problem comes from whats doing what at what time and you will see why you can lose everything.
Maybe you know why does my microSD card get corrupted any time its pulled unless "ejected"? I need to either "eject" if its on my computer or completely power down the device to keep it from corrupting. Ive tested in both camera and 3dprinter with same result.
Is it just a crap card (its kingston 32 GB)?
From what I learned check to see if the card is set for better performance it makes it write to a cache as consequence but makes it faster on the other hand. I had this problem and this was my answer but other software might be messing with it as well but I always safely eject for good measure anyways.
Ill have a look if I can find anything like that, thanks
I simply don't put data I care about on USB drives any more. They are all basically boot drives or a way to transfer firmware files.