Search...

How to refresh stored data with Linux and Windows

In addition to making website backups (and other data backups), it is important to make sure those backups are in good condition. In this post I’ll write how to simply maintain the integrity of data stored on local (and external) storage drives – both Hard Disk Drives (HDD) and Solid State Drives (SSD).
In a separate article, I’ve explained all about hard disk drives (how they work, performance, and buying recommendations).

Table Of Contents (T.O.C.):

  1. Data degradation with time
    1.1. Hard Disk Drive (HDD) data degradation
    1.2. Solid State Drive (SSD) data degradation
  2. Stored data (and backup) preservation
    2.1. Refreshing data on Hard Disk Drives (HDD)
    2.2. Refreshing data on Solid State Drives (SSD)
  3. Apendix – DiskFresh for Windows 10 and Windows 11?


1. Data degradation with time

This phenomena is also referred to as: “bit rot.”

1.1. Hard Disk Drive (HDD) data degradation

Hard disks write data on magnetic disks. With a head used for reading and writing (equivalent of a gramophone needle, only without any physical contact, only electro-magnetic induction is used).

What can get broken here?

  • Electric motor that keeps it spinning can get broken.
  • Electronic controller can get broken – from bad power source, moisture, or just aging.
  • Very high and/or very low temperatures, as well as high moisture can speed up degradation.
  • Shocks, or strong vibrations, especially while a disk is working, can physically damage disks with data.
  • Bearings on which disks rotate can get stuck from long time without use.
  • Disks get de-magnetized in time, all of themselves. Very slowly, but surely.
  • Presence of a strong magnet can corrupt data, or drastically speed up the demagnetization process.

– T.O.C. –

1.2. Solid State Drive (SSD) data degradation

SSD-s, unlike HDD-s, don’t have any moving parts and don’t use magnet disks. This is why they are much more resistant to vibrations and magnetic fields. Still they aren’t perfect and have their downsides which, in terms of data retention, are:

  • Bad power supply can damage the electronics, which makes all the data unusable.
  • Data holding cell deterioration over time – based on the number of read and write cycles.
  • Data loss if drive isn’t powered on (used) over a certain period of time.

– T.O.C. –


2. Stored data (and backup) preservation

How to preserve stored data?

First and foremost: good quality motherboard and power supply. I like to say: if you aren’t sure what’s good, go with SeaSonic (Amazon affiliate link) – you won’t go wrong. Good computer power supply and good quality motherboard are often neglected, but they save both time and money in the long run, by making the components last longer and run better.

Next up is an UPS. Sudden power loss can sometimes damage equipment, including drives. When it comes to UPS, I really can only recommend APC (Amazon affiliate link). The model I currently use is APC Back-UPS 950VA (model BX950U-GR, with “Schuko” standard plugs).

Keeping drives in a dry place (with little air moisture) and at room temperature (best between 15 and 30 degrees °C, or 60 to 90 °F).

When it comes to hard disks (HDD), it is good to keep them away from any magnets.

In the following chapters, I’ll explain how to refresh the stored data.


Help BikeGremlin
stay online & independent

This website is educational, free, objective, and not commercial
(sponsors don’t enjoy paying if you mention all the product downsides that you notice 🙂 ).

If you find this site to be good and helpful,
and if $5 per month is what you can afford to set aside,
please consider supporting my work with a Patreon donation:


patreon.com/bikegremlin

– T.O.C. –


2.1. Refreshing data on Hard Disk Drives (HDD)

Chapter 1.1. explains HDD data deterioration. To refresh hard disk stored data, it must be re-written. Either at a new location, or over the same location. It suffices to do this once a year, unless the disks are stored in hot/cold/humid area, or close to strong magnetic fields (in which case this should be done once per month).

Do not attempt procedures from this chapter with SSD-s! For them the procedures are given in chapter 2.2.

For Windows operating system users, an excellent free tool is DiskFresh (direct download link).

It is simple to use. Once it is run, it shows a list of drives, along with a read-only mode option (in which case there is no data refreshing, of course). It works with any FAT32 and NTFS file system.

DiskFresh menu example
DiskFresh menu – just check the drives you wish to refresh (1) and choose the refresh option (2)
Picture 1


For Linux users, especially with Ext4 file system, best option is badblocks. Note: badblocks works very slowly with NTFS and FAT32 partitions. For those, it is best to have a Windows with DiskFresh (either using a virtual machine, or a dual boot system).

Command prompt command for refreshing data on a partition is the following:

sudo badblocks -f -b 4096 -p 1 -c 32768 -nsv /dev/PARTITION

Where “PARTITION” is the name of a partition. This can be found in Linux Mint by using “Disk” application (can be found under Accessories menu). Or using the command:

sudo fdisk -l

This is what it looks like using Disk application:

Choose disk (1) Choose partition (2) Read the partition's device info (3)
Choose disk (1)
Choose partition (2)
Read the partition’s device info (3)
Picture 2


Command for refreshing data on the partition in picture 2 (sdb3) looks like this:

Badblocks data refresh command
Badblocks data refresh command
Picture 3


There’s a warning in line 3 that the partition is mounted (like external USB drive). If I hadn’t used the “-f” switch, it wouldn’t run. Of course, if you do this operation on mounted drives, make sure not to dismount them until it is finished.

I’ll explain the other switches as well:

  • “-f” forces the program to run even with a mounted drive.
  • “-b 4096” sets a block size do the given number of bytes. For this use case it is a good default that speeds up the process.
  • “-p 1” specifies the number of passes to 1, ie. not to start it over again several times.
  • “-c 32768” the number of blocks tested at once. For computers with 4 GB of RAM and more, a value this high can speed up the process (though take more RAM of course).
  • “-nsv” “n” parameter says to use non-destructive method (to not destroy the data), “s” is for enabling progress tracking and “v” is for showing it on the screen (verbose mode), so that you can see if the program got “stuck”.

Disk defragmentation has nothing to do with refreshing data and it is a separate topic, related to performance. For Linux file systems (Ext4), defragmentation is needless, just make sure to always have at least 20% free space on each partition. For NTFS and FAT32 it is useful if data is often written-deleted (goes only for hard disks).

– T.O.C. –


2.2. Refreshing data on Solid State Drives (SSD)

With SSD-s, even though they have no magnet disks, or moving parts, stored data will degrade if they are not being used (not powered on). Consumer grade SSD-s should be powered on at least once every 6 months. For server grade SSD-s, it is advisory at least once per month.

So all you need to do is connect the drive to a computer and browse the contents. Less than a minute should do. Just open an image, or edit a text file. Then leave the drive on for at least 10 minutes. It will automatically refresh the cells that need refreshing.

– T.O.C. –


3. Apendix – DiskFresh for Windows 10 and Windows 11?

Based on my experience, the above-mentioned DiskFresh software works fine on Windows 10 Pro (64-bit), and on Windows 11 Pro (64-bit).

This is the 1.1 version, published in July 2013:
“03 July 2013 – Version 1.1 Enhanced reading of data for more compatibility with systems running low level read/write software like full disk encryption software.”

– T.O.C. –

7 thoughts on “How to refresh stored data with Linux and Windows”

  1. Hi,
    It seems DiskFresh do not work on windows 10. What do you suggest to use on that system?
    Piotr

    • For me it works on Windows 10 (64 bit).
      It seems to be no longer developed/updated, but still works (for now, on the computers I’ve tried it on).
      I have fixed the download link though.

    • Use the file DiskFreshHomeSetup.exe provided here for Windows 10.
      DiskFresh is a good programme for Data Fade Prevention.

  2. Hi

    I got problems with windows XP , Disk fresh gives answer : no access to partition, cannot refresh

    • Hi Menard,

      Can you read the disk in Windows XP normally otherwise (using file explorer or similar)?

      Have you tried any disk diagnostic tools (or a simple chkdsk from the command prompt) to confirm your drive is OK?

      Relja

  3. Yes, I have access to these disks and all the tools tag them with OK or passed, I ve checked with Crystaldiskinfo and HD Tune

  4. That’s good. OK – a few more stupid questions, just to eliminate the “usual suspects.” Starting with the HelpDesk all-time favourite: 🙂

    – Did you try shutting down the computer and turning it on again?

    – Are you logged in as a local administrator?

    – Does it not work with every disk and every partition, or only with one, or a few in particular?
    If that’s the case, I’d check access rights/permissions. Wild guess again, but no other ideas for now.

    – Is there an anti-virus software running that could be “getting in the way?” It’s a wild guess, but worth trying (nothing to lose) – disconnect from the Internet to be on the safe side, temporarily disable any antivirus software and try again. Might be worth doing a restart after having disabled any anti-virus and trying again.

Comments are closed.


Please use the BikeGremlin.net forum for any comments or questions.

If you've found any errors or lacking information in the article(s) - please let me know by commenting on the BikeGremlin forum.
You can comment anonymously (by registering with any name/nickname), but I think it is good to publicly document all the article additions (and especially corrections) - even if their author chooses to remain anonymous.

Tools and other products that I use (and can recommend)

Skip to content