Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 01:07 03 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Silicon Chip March 2024 editorial....

     Page 1 of 2    
Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 06:21am 14 Apr 2024
Copy link to clipboard 
Print this post

The editorial in the March 2024 issue of Silicon Chip, makes some excellent and very valid points about using flash-drives or SSD's as a long-term storage medium.

I have old PATA hard-drives that are about 30 years old, and they still read just fine!    

Nothing on those old drives is important, but the fact remains that magnetic platter-based HDD's still seem the best choice for off-line archival backups - for a few decades at least.

Thoughts?
Opinions?

The editorial in SC talks about how the charge on the SSD's can dissipate over time, which is totally correct, and even talks about SSD's sitting in machines running 24/7/365 - but if the data in certain cells is never "Refreshed"(copied and rewritten again), that these drives can also fail or cause problems.

The article goes on to mention that there are softwares that can automate this refreshing process for you, so do any of the members have anything they can recommend?

I would prefer a Linux-type USB you can boot, and it will set about refreshing the entire SSD.  That could be an issue with Windoze-based SSD's, as I understand that reading NTFS is no problem in Linux, but WRITING to NTFS volumes is still a bit of an issue, due to the closed-source nature of NTFS.
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3661
Posted: 02:26pm 14 Apr 2024
Copy link to clipboard 
Print this post

Is it enough to simply read the SSD block by block? (dd is good enough if so)

If not, maybe per group of blocks: read, invert, write it back, then restore the original.
(Will take forever! Use a big group so as to speed it up.)

John
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3552
Posted: 05:31pm 14 Apr 2024
Copy link to clipboard 
Print this post

Look at this video

tube computer with magnetic drum memory

A 1959 computer is started up, and the magnetic drum still has clock and sync pulses on it. At 19:56 the clock pulses are measured. By the way, I think it is impressive how these machines worked. In this series many of the detailed circuits are described.

Volhout
PicomiteVGA PETSCII ROBOTS
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 903
Posted: 07:29pm 14 Apr 2024
Copy link to clipboard 
Print this post

looks like the template for the computers on the Enterprise, Pre Time-Tunnel
'no comment
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1804
Posted: 09:29pm 14 Apr 2024
Copy link to clipboard 
Print this post

I found this from a Kingston representative....
  Quote  Flash products built by Kingston are not built for archival purposes but if they are used in this capacity the best way to ensure the data integrity is maintained throughout the life-time of the product is to read all the data off the drive, perform a HDDErase cycle to clear all blocks and lastly, rewrite all the data back to the drive.

Unfortunately there is little information available from studies into this field to decisively state the exact frequency that this should be done since the error correction capability varies between the various NAND flash mediums and their featured controllers/software. There on-going discussions by IEEE and various standards groups to enhance and study this field further.

Hard disk drive manufacturer readily recommend performing a read and re-write on their hard disk drives every 3 years for archival purposes and I would suggest doing the same with NAND flash based products, even when the contents of the stated NAND flash based products are not modified by a read-erase-write cycle.

Plugging the device into the computer now and then won't help, ditto read the data.

You really must rewrite the data to refresh it.

"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
PilotPirx

Regular Member

Joined: 03/11/2020
Location: Germany
Posts: 66
Posted: 06:32am 15 Apr 2024
Copy link to clipboard 
Print this post

Normally the data retention on SSD Drives with MLC or 3D-TLC Flash (multi level cell with 2-Bit per cell or triple level cell with 3-Bit)is around 10 Years without power supply, but only if the used Write/Erase cycles are below 10%. If they are powered and in use, the internal wear leveling swaps the data to other blocks if the voltage-level of the storage cell is going bad. So you need a lot of spare cells. Therefore its important to have a lot of unused flash on your SSD for a long lifetime.

All of the above is only for ambient temperatures in the normal range. High temperatures also stress SSDs enormously and shorten the service life of the data.

But - a lot of the new SSD with high density for the consumer market are QLC Flash (quad level cell with 4-bit per cell and 300 write/erase cycles) which have a data retention of only 1-2 years without power.
For industry use you have other flash which has more Write/Erase cycles with SLC and pSLC (pseudo single level cell). This flash is more expensive than the consumer flash. I use HDDs for longtime backups.
My company sells SSDs for the industry, so I'm familiar with the subject matter
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3661
Posted: 09:53am 15 Apr 2024
Copy link to clipboard 
Print this post

  palcal said  I found this from a Kingston representative....
  Quote  Hard disk drive manufacturer readily recommend performing a read and re-write on their hard disk drives every 3 years for archival purposes

That's news - but do HDD makers actually say that (so far haven't found it to be so)?

I expect many people buy a computer with OS etc preinstalled and vast amounts of the disk never get rewritten - unless Windows etc do this in the background? I never heard of it if so.

John
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 316
Posted: 09:41pm 17 Apr 2024
Copy link to clipboard 
Print this post

  palcal said  Hard disk drive manufacturer readily recommend performing a read and re-write on their hard disk drives every 3 years for archival purposes and I would suggest doing the same with NAND flash based products, even when the contents of the stated NAND flash based products are not modified by a read-erase-write cycle.


Back in the early 90's, each year the System Administrator of the company I worked for, liked to copy all of the files off the VAX server drives and into a backup, and then restore the files to a new drive and swap it in/out. His argument was that not only did it prove the backups worked, but also he felt that re-writing the magnetic imprint on the drive would stop it degrading.

I'm not sure if he was right or not, but it made laymans sense to me.

Pete
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 382
Posted: 10:35pm 17 Apr 2024
Copy link to clipboard 
Print this post

Yeah this applies to SDcards too... We need MMBasic to support Floppy or HDD! :D

-Daniel
 
EDNEDN
Regular Member

Joined: 18/02/2023
Location: United States
Posts: 64
Posted: 02:31pm 24 Apr 2024
Copy link to clipboard 
Print this post

  Amnesie said  Yeah this applies to SDcards too... We need MMBasic to support Floppy or HDD! :D


SATA is a very easy command set to do.   If there was an Pico to SATA connector easily available it would be very straight forward to do.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5735
Posted: 02:46pm 24 Apr 2024
Copy link to clipboard 
Print this post

First you need an OS. The Pico hasn't got one, it just looks like one. Support for file handling isn't really an OS as such.

Use a SD card to copy everything to the HDD on your PC - and into cloud storage if you must. You'll use far less pins.

Spinning rust drives are still very good. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3552
Posted: 02:58pm 24 Apr 2024
Copy link to clipboard 
Print this post

SD card versus HDD ?

Why do you think the bits in the picomite flash memory would be more robust than the bits on an SD card ? I guess the pico would die before the SD card does.
Absolutely nonsense to revert to SATA for PicoMite.

If you want something that will withstand the time, use core rope memory, like the Apollo missions had in their guidance computer. Or carve the information in stone, like the Egyptians did (actually quite similar).

Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5735
Posted: 03:57pm 24 Apr 2024
Copy link to clipboard 
Print this post

Or you can resort to writing to a HDD via a serial interface that you might need to design first. :)

I suggested transfer via SD card (sneakernet) because it's more straightforward than using XMODEM if you have a load of files to back up.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
EDNEDN
Regular Member

Joined: 18/02/2023
Location: United States
Posts: 64
Posted: 04:05pm 24 Apr 2024
Copy link to clipboard 
Print this post

  Mixtel90 said  First you need an OS. The Pico hasn't got one, it just looks like one. Support for file handling isn't really an OS as such.


No....   I was kind of thinking it could be an alternative lower layer to the FAT file system support that is already in MMBasic.   Rather than reading and writing blocks on an SD-Card, it could (based on the drive letter) know to use the SATA support instead.

Everything would be there.   The drive formatting.   The hierarchical directory support.   Etc.     The FAT file code would just be writing to a SATA interface instead of the SD-card.
Edited 2024-04-25 02:06 by EDNEDN
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3661
Posted: 06:00pm 24 Apr 2024
Copy link to clipboard 
Print this post

Done that way you'd have a HDD max size the same as the SD card max size supported.

Some work on the actual hardware needed of course :)

Or send/receive HDD blocks over an existing interface to a host which does the actual I/O.  (I did this rather a long time ago in the days of the 8086 over RS232. Think of it as remote I/O.)

John
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 382
Posted: 06:17pm 24 Apr 2024
Copy link to clipboard 
Print this post

  Volhout said  SD card versus HDD ?

Why do you think the bits in the picomite flash memory would be more robust than the bits on an SD card ?

Volhout


Hello

because it is a matter of fact, that flash memory isn't made for long term storage. It is just for this purpose of robustnes. I encountered A LOT of faulty and corrupt data on SD cards over time. I am not speaking of removing the SD as a main storage. And using another computer to backup is no option. The whole point of a "Boot-To-BASIC" computer is to be resilient  

And for REAL backups I use something called MDSICs which are pretty much like you've written (carved / etched by laser into a special material). For small and crucial data I am even using "matrices" printed on paper (acid free) as backup which can be read in via a scanner. It has reed solomon error correction too and can even corrected manually. This piece of software is called Paperback (https://gigazine.net/gsc_news/en/20120817-paperback/)

Greetings
Daniel
Edited 2024-04-25 04:19 by Amnesie
 
EDNEDN
Regular Member

Joined: 18/02/2023
Location: United States
Posts: 64
Posted: 07:15pm 24 Apr 2024
Copy link to clipboard 
Print this post

  JohnS said  Done that way you'd have a HDD max size the same as the SD card max size supported.


Yes.   The manual says:  "Maximum SD card size is 2GB formatted with FAT16 or 2TB formatted with FAT32."     2TB should be enough.


  JohnS said  
Some work on the actual hardware needed of course :)


Yeah...  That is the real problem.   I don't think there are any simple and small shields or hats for the Pico that do SATA.   Part of the problem might be the signals are differential and getting the voltage levels to do that on a small shield.
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 382
Posted: 07:55pm 24 Apr 2024
Copy link to clipboard 
Print this post

There is a HDD shield for Arduino but sadly only on german and I can't find any schematic.

https://www.youtube.com/watch?v=HpQQx_lyQKM&t=7s
https://luca-elektronik.de/index.php?main_page=product_info&cPath=7&products_id=160

Greetings
Daniel
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 11:23pm 24 Apr 2024
Copy link to clipboard 
Print this post

Some interesting posts on this thread!  

It would therefore seem, that for archival purposes, good old magnetic HDD's are still the way to go - for up to, say, twenty years or so.

As has been mentioned, no archival medium is perfect.  There are some very good media like M-disc that has been mentioned, but the kink in the idea, is having a drive that can actually read the disc later on down the track.  Without a way to read the data on those discs, they are basically nothing more then beer coasters.  

Even SATA is now a technology largly being replaced by NVMe and M.2 interfaces.
Yes, I know you can also have SATA over the M.2 interface, but the point being, that given time, even the SATA connectors will start to vanish in favour of multipule plug-in M.2 SSD's.

I guess there will always be some form of adaptors.
You can get SATA-to-IDE adaptors allowing you to connect old IDE HDD's to a SATA port, so you'll probably get M.2-to-SATA adaptors - assuming they don't ALREADY exist - I have not looked.  

However, it would seem that good-old spinning HDD's are still the best choice for offline/not-powered archive storage.  For a few decades anyway.
Smoke makes things work. When the smoke gets out, it stops!
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1790
Posted: 12:25am 25 Apr 2024
Copy link to clipboard 
Print this post

Even carving in stone isn't always enough. If not for the chance discovery of the Rosetta Stone Egypt's monuments may as well have blank walls.
 
     Page 1 of 2    
Print this page
© JAQ Software 2024