Using old flash memory as a backup medium
USB Fiddle Stickery
USB sticks and SD cards quickly lose their value, but if a script distributes the data across several such devices, flash memory is still useful as a fast and shockproof backup medium despite limited capacity.
It seems that USB sticks and SD cards also follow Moore's Law, in that the storage capacity they offer doubles each year. A 64GB stick now costs US$ 40, and an 8GB stick, which used to be the market leader just a few years ago, has lost almost all its value and ends up in a drawer. At the other end of the product spectrum, prices rise disproportionately: Whereas a 128GB stick costs about US$ 80, one with twice the capacity, 256GB, is about four times the price.
Combining multiple storage media would achieve acceptable storage capacity at a low price, and, if you are looking for a software solution that combines multiple storage modules to create an array, something like Linux Volume Manager (LVM) springs to mind. It elegantly welds together your hardware to create software partitions, which – at application level – feel exactly like hardware solutions cast in metal and plastic (Figure 1).
Knapsack Problem
Surely no one wants to jab the USB ports on their computer with a handful of USB sticks just to mount an LVM partition that provides access to a backup. It would be better to distribute individual files across the sticks. Scientific literature describes the method as a knapsack problem [1]. In this optimization problem in combinatorics, the task is to pack heavy items into different knapsacks, none of which may exceed its specific maximum weight.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Framework Laptop 13 Pro Competes with the Best
Framework has released what might be considered the MacBook of Linux devices.
-
The Latest CachyOS Features Supercharged Kernel
The latest release of CachyOS brings with it an enhanced version of the latest Linux kernel.
-
Kernel 7.0 Is a Bit More Rusty
Linux kernel 7.0 has been released for general availability, with Rust finally getting its due.
-
France Says "Au Revoir" to Microsoft
In a move that should surprise no one, France announced plans to reduce its reliance on US technology, and Microsoft Windows is the first to get the boot.
-
CIQ Releases Compatibility Catalog for Rocky Linux
The company behind Rocky Linux is making an open catalog available to developers, hobbyists, and other contributors, so they can verify and publish compatibility with the CIQ lineup.
-
KDE Gets Some Resuscitation
KDE is bringing back two themes that vanished a few years ago, putting a bit more air under its wings.
-
Ubuntu 26.04 Beta Arrives with Some Surprises
Ubuntu 26.04 is almost here, but the beta version has been released, and it might surprise some people.
-
Ubuntu MATE Dev Leaving After 12 years
Martin Wimpress, the maintainer of Ubuntu MATE, is now searching for his successor. Are you the next in line?
-
Kali Linux Waxes Nostalgic with BackTrack Mode
For those who've used Kali Linux since its inception, the changes with the new release are sure to put a smile on your face.
-
Gnome 50 Smooths Out NVIDIA GPU Issues
Gamers rejoice, your favorite pastime just got better with Gnome 50 and NVIDIA GPUs.
