11

My question is:

Can anybody point me to a documented case of a flash drive dying from running Ubuntu?

People talk about the dangers and urge cautions, but I have researched on the internet and asked on Ubuntu Forms and have never found a single case of a (name brand) flash drive failure due to running Linux.

They say lifespan is 10000 to 100000 writes and up. With wear leveling this seems to work out to years or decades of normal use.

I am talking about Persistent and Full installs as there is no writing to disk with a Live install.

C.S.Cameron
  • 20,530
  • 12
  • 78
  • 125

5 Answers5

3

I have broken:

1 stick physically (verbatim 32GB?, plastic, PCB broken on physical bend),

1 stick by excessive? write (intenso slim line 64GB, installed veracrypt container, stick switched to read-only after app. 1 hr. of use),

3 sticks by benchmarking (intenso slim line 64GB, intenso premium line 32GB and 64GB, gnome-disks, benchmark disk, write benchmark, standard settings, unresponsive in first or second pass),

none yet by running ubuntu or other linux (kali) in live mode, even with 'encrypted persistence', but that might come as I'll try it 'installed' on a 256GB sandisk ultra-fit ...

user1018684
  • 131
  • 2
2

this is old experience (10 yrs) I ran into usb failures twice. It may have been the old USBs were less rugged(?). I'd assumed without finding references that several attempts writing grub to the USB's MBR had worn out the 0 (beginning) of the flash, rendering it in my case, read only. Subsequent retries lead to unreadable also. Like I stated, this is old and newer USB's may be more dependable.

2

Recently, My Hard Disk had a slow failure.
So, I Ran Live Ubuntu Persistent from my Sandisk 16GB.
For a week, it ran perfectly and 2 days back the OS abruptly got struck.
Restarting the device, it was not able to access the pen drive error was showing up.
Tried to Flash using mkusb in another system, and quitted during the middle of the process as it was stuck(to me) maybe the process would have been running.
This led to the brick of USBs and its inaccessible anymore.

Potential Reasons:

  1. Frequent Power Outages leading to abrupt cutoff (At least 10 times)
  2. Duplicate USB
Rishon_JR
  • 1,028
1

I've actually never had one fail in all the time I've been using them, which is about the last 10 years. (Whether they were NVME or traditional SSD)

The wear leveling is automatic, but it's not X number of writes as much as it is X number of total GB (or more like TB) and that doesn't mean that the drive will suddenly fail past those threshholds, it means that they're no longer under warranty.

Most of these drives are rated for more bytes than you could ever write in your life. For example, Samsung Evo Pro 1TB is warrantied to 1200TB written, and you wouldn't get there if you were blowing up a virtual machine the size of the hard drive and rebuilding it for 3-4 years. Enterprise drives (used for servers) have even more insane write thresholds... It's suffice to say most people can never even get close... BUT... if you do...

The answer is OVER-PROVISIONING! Your little drive has a certain percentage of storage (sometimes up to twice what the listed size is) that it uses to replace and correct error blocks. It basically isn't in trouble until you have run out of that. Modern SSD/NVME will even let you dedicate more space to that feature if you leave part of the drive un-formatted, but most consumer drives have at least 10%-20% extra blocks. Enterprise drives may have 50-100% more than the listed capacity. Until that threshold is reached there is zero chance of a corruption or failure related to the physical hardware.

In Ubuntu, you can get a report with:

sudo smartctl /dev/YOURDEVICEHERE -a

That will tell you something like:

...
Available Spare:                    100%
Available Spare Threshold:          10%
...

As long as you're not burning up about 5% of that or more you're just fine.

sean
  • 546
1

I'm not sure what you mean by "documented" or by "dying", but I've had several cases of running Xubuntu from USB sticks for months or more, and seeing them develop file corruption, popping up more frequent "system problem detected" dialogs, and even freezing up (no continuation possible other than pressing the hardware Reset button).

The longest-lasting one was a SanDisk Extreme 32GB, which worked for a good 1.5 years and then suddenly started showing problems after I downloaded a torrent to it - after that episode for the rest of its life it would "hiccup" and pause during every write operation every 3-4 seconds or so. I put up with it for a while but when that turned into more errors and freezes I gave up on it and moved back to an internal SSD.

Other sticks I've used recently that just started showing failures this month are Samsung Bar Plus 64GB ones, it's a little harder to tell what cumulative runtime I have on them because since 2021 I had used them mostly occasionally/sporadically, not as the main "home/media desktop", but I switched to one of them this winter as a main OS and it hasn't been more than... 3 months before I started seeing "system problem" dialogs, or failing partition-related commands saying the disk is read-only (happens a lot when flash storage starts failing, whether it's USB stick or SSD).

And, mind you, internal SSDs haven't done that great for me either, used with Ubuntu - I think all my SSDs so far have lasted me 1-3 years and then started to develop unacceptable errors and freezes and forced me to buy something else (didn't know you could sort of revive them by filling with 0s until very recently).

So I have to say I'm really surprised you don't have more reports about Ubuntu "killing" flash storage when used as the daily home/media OS, this has been my constant experience with Ubuntu+SSDs+Live USBs since 2012.

Don Joe
  • 76