Which parts of Ubuntu would you offload from an SSD installed system to HDD or vice versa, to reduce write cycles and still enjoy better responsiveness?
I assume the following, but must be missing quite a bunch.
- swap partition - unless you really think your SSD will survive long
- /tmp
- any database data directories
- things that keep updating like ~/Downloads and other user login session directories
Or is it easier to say what to keep on SSD rather than what to move away... basically I think for SSD longevity per-se, it would make sense to only store programs on SSD and data that is pretty much constant. Is there at all a sensible way to map out the default Ubuntu (Desktop) directories structure by this criteria?
Ubuntu 14.04 LTS.
I have the following on my notebook
My own files are what are written to disk most whilst downloading so I keep those on my hdd. I tend to watch series and download them so it is often: download, watch, delete.
If you look at the "root" system and want to lower the amounts of writes Ubuntu (/Debian/Linux) is heading towards a system where all files that are written to often are moved towards a "run" directory (aka "ramdisk"s) . See What are "/run/lock" and "/run/shm" used for? for an explanation on those. That in itself has lowered the amount of writes a lot without you doing anything for it. But you can take advantage of this yourself...
Put
/tmp
into a ramdisk./etc/fstab
:Firefox puts its cache in your home partition. By moving this cache in RAM you can speed up Firefox and reduce disk writes. Open
about:config
, add i a new string value calledbrowser.cache.disk.parent_directory
and set the value to/tmp
and it will be added to the ramdisk (as explained above). There is a generic tool for this called Profile sync daemon.If SSD write related wearout is a concern, I believe choosing directories that are not supposed to change much would be optimal. Those can be spotted in the following standard, assuming Ubuntu and software you install on it, conform to this standard.
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html
I didn't try it, as it came in too late, but maybe next time, or if I had a quick & safe way to move those paths that make sense from my new HDD only installation.