backup


CGI Coffee

Recharge Your USB Flash Drive Today or Say Goodbye to the Files Tomorrow

I know, I know. The title will inevitably raise some eyebrows. Rest assured, by the end of this brief post it will make perfect sense.

flash-memory-post-low-battery

A couple months ago I sat down to sort out my USB thumb drive collection. I have 10 of those used either to move large files between distant machines, as OS installation and recovery media, and to actually store some non-critical data. Then, while sorting through them, I pulled out the USB stick I’d brought back from a trip to Japan in Summer 2018. The last time I used it was around September 2018, when I transferred some video clips from the PlayStation 4 to study while building my Dynamic Sloshing Liquid Rig.

Which means the drive was left unused for 3 years.

Imagine my surprise when I found out that two out of three short in-game video clips were corrupted. The first clip wouldn't even copy over to the PC, while the other one took its sweet time and eventually, after about 30 minutes (for a 100 MB file), finally copied over to the HDD.

Overwhelmed by curiosity I immediately fired up my video player...

What you see here is the result of physical data corruption (a.k.a. "bit rot" or "data degradation" or "data decay"). The electrical charge holding the data had decayed, making the bits harder for the controller to read.

While such graphic and "movie-like" damage is, ironically, quite fitting to the overall presentation of Horizon: Zero Dawn — a game about hunting mechanical dinosaurs in a post-apocalyptic world, — this incident begs the question...

What Happened?

To answer it, let's briefly recall how a Flash Drive actually works.

Backup and Restore a Live Linux System Using Snapshots. How to Install Linux Mint 20 on an LVM Partition

In my previous post on the topic of Backup and Restore I mostly focused on Windows use cases and only briefly touched upon backing up Linux and MacOS systems. This is because Windows users have access to the amazing file system snapshotting capabilities in the form of Volume Shadow Copy “by default”. As for MacOS – it comes bundled with its own backup management suite called Time Machine, so backups are possible out of the box in there as well.

As for Linux folk... It’s a bit more involved, but still perfectly possible to backup systems without any downtime. And to do this one would need to make sure their system is running off an LVM system partition.

Why LVM?

If you have no idea what LVM stands for (spoiler: it’s “Logical Volume Management”), I would suggest you first get up to speed with what LVM is and why one would want to use an LVM partition for system storage rather than a standard EXT4/XFS one.

Either way, if you want to have an ability to backup a live Linux system (like an "always on" server or a hypervisor), you need to make sure the OS is installed onto an LVM-enabled volume, which supports creation of Snapshots. In this example we’ll set up an installation for a system with an EFI System Partition for boot-loader management. If you’re planning to go with a legacy BIOS boot instead, just skip the EFI partition creation step. The process is very straightforward and only takes minutes to complete.

Install Linux Mint on LVM Partition How-to

Linux Mint is my long-standing favorite among all distros, so I will be using it to guide you through the process. But the steps described here should be more or less identical for the majority of Linux distributions, especially Ubuntu Linux derivatives, which Mint certainly is. I will also assume you have basic understanding of Linux, storage systems and disk partitioning, otherwise you should certainly not follow the guide and get some more experience first.

Backup and Restore. Don't Delay! Secure Your Files With Freeware Backup Software Today

I have a lot of files...

And I bet you do too.

You probably also use your computers on a daily basis. Those are cool — but sometimes they crash or glitch. They get stolen or hacked. Or they install Windows updates. Or they die in a fire.

Together with all your files and memories.

Consequently, today I'd like to direct your attention to the topic of data backup.

"Wait — Isn't This a Computer Graphics Blog?"

It sure is.

Still, part of getting any work done on a computer is making sure your files don't accidentally get lost. Whether you like it or not, unless you have someone else responsible for keeping your data safe, you should adopt a backup strategy yourself.

Unfortunately, lots of people overlook this topic and end up losing sizable amounts of their work.

data-backup-dog-meme

If any of this sounds familiar, this post presents a couple of suggestions and tools, most of which won't cost you a dime.

Otherwise, if you are already using some form of backup solution to manage redundant copies of the files you're working on, you probably won't find anything particularly new here.

This article is not meant to be an all-encompassing guide, but rather a brief introduction — one without product placements, affiliate links, or hidden ads. Just honest opinions based on personal knowledge and experience.