Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

TUMBLEWEED How I optimized my drive setup (HDD vs SSD)

$
0
0
Since I usually only visit the forum to ask for help, I figured I'd also share something useful for a change. Hopefully that still makes this the right forum section, feel free to move if not.

For some time I've been facing a dilemma: Hard Disk Drives are very slow, but more reliable as well as cheap when it comes to price per TB of storage. Solid State Drives are very fast, but you need to make sure you aren't writing too much data to them while leaving enough free space to give it plenty of free cells to cycle between as to further reduce wear. Like most people, I was previously using a two drive setup, with an SSD for the root partition and an HDD for the home partition. The issue with this is that while boot times are very fast, logins are not, and the general user experience is often painfully slow when working with user data. Of course relying on an SSD to store all the data in your home folder is more risky, plus a 2TB SSD costs as much as an 8TB HDD so it's too expensive for most of us.

I found a way to get the same unified experience under an optimized 3-drive setup; A NVME (PCIE) SSD for the root partition, a SATA3 SSD for the home partition, and a SATA3 HDD as an archive partition. It works like this: /archive/myusername follows the same structure as /home/myusername except it contains only large directories with stuff I wish to ensure I don't risk losing and / or is updated more heavily (media, GIT repositories of projects compiled from Github / Gitlab, etc). /home/myusername meanwhile contains all the user settings and stuff the system needs to work with, such as the ~/.config and ~/.local and ~/.cache directories with everything else of the sort. For further reliability I use a rsync command scheduled with cron, to backup some of these settings directories from the SSD to the HDD on a daily basis... in case the home SSD ever crashes I can easily recover them too from the archive HDD. Finally I use symlinks to seamlessly connect everything from my /archive directory to my /home directory, making it possible to access all data as if in the same place; Directories such as My Pictures / My Videos / My Music and more are located on the HDD but linked to the SSD so they appear part of my home directory as usual. Here's a screenshot of exactly what this setup looks like:



The practical differences I instantly noticed after the drive change: Apart from gaining a bit of extra free space on the old HDD by splitting some data that's not being duplicated, logins are now lightning fast like boot times and so is opening applications! The performance is in fact faster on the hard drive as well, thanks to it not being automatically accessed by applications constantly reading or updating their settings, but only used when I'm deliberately accessing it to look at something... less cases of processes freezing due to going into "disk sleep" too. Since the hard drive is nearly 10 years old I'm protecting it from added stress, both drives share the load and should thus last longer. On my home SSD I'm using roughly 10% of the 1TB available, while writing is mainly limited to updating small settings (eg: Firefox browser cache) which should ensure little overall wear. I sense no difference from my previous setup thanks to the symlinks, everything looks and feels exactly the same way except for the little arrow on the icons.

I figured this would be inspiring as I imagine many people going for such a setup. To me it seems like the ideal configuration at this point in computer history: A small NVME SSD for installing the OS / EFI partition (500 GB or less), a larger SATA3 SSD for lightweight home data (1 or 2 TB), then an even larger SATA3 HDD for storing heavy data you don't mind being accessed slowly (4 TB or more)... I found this the most efficient and affordable way to get the best of both worlds at the moment. Hope others find this suggestion helpful! What are your own thoughts, and can you think of ways to better improve this kind of integrated drive configuration?

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>