The upgrade process was designed to not delete any of your personal files (so long as they are kept in the /home/yourusername/
directory, or on another, custom configured partition on the disk (that you (as a safety precaution) unmount and "unlink" (by commenting it out) in /etc/fstab
beforehand)).
Yet, as things don't always work out 100% as planned, you could should do some safety preparations, to protect yourself from any unwanted consequences.
Before you perform the upgrade, prepare with two things:
- An external drive onto which you back up all your important files.
- This could be a portable USB HDD (probably the fastest to set up), or a Network Attached Storage, or a Raspberry Pi with a HDD attached, or within another full-fledged computer that you connect to on your local network.
- Be prepared: if you end up using NFS or CIFS protocols for this, you need to learn to set the connection up with suitable file ownership and permissions. This task alone is a pretty attention-intensive one, so grant yourself enough time and capacity to deal with this. Even if setting up a backup solution delays your intended upgrade by two / three weeks, be in the know that it's the right thing to do, and you are making the right deviation from your original plans. You should rely on such an arrangement anyways, and could see immense benefits from it in the future.
- Do a backup of your data and verify that you can access it on this drive and you can restore files from there, should the need arise.
- You may choose to use the
tar
utility to back up all config files found in your /home/yourusername
directory.
- A live Ubuntu USB drive that you verify that you can boot from and initiate a "Try Ubuntu without installing" session
- This could come useful if the on-disk OS gets a bit imperfect in the process, and you need to access the internal disk from a healthy, drop-in OS instance, let it be the system files- or any other partition.
If you are prepared in such ways, the upgrade can be an exciting adventure and a learning opportunity, instead of a gamble with too high stakes, otherwise.