Date: 2026aug14
OS: RaspberryPi OS
Language: bash
Q. Raspberry Pi: Speed up boot
A. I did:
systemd-analyze blame
And noticed systemd-tmpfiles-clean.service was taking 1.5 minutes!
So I fixed it by moving the tmp files to a RAM disk (tmpfs).
Obviously only do this:
- If you can spare the memory
- Your /tmp files are not already in memory
You can do:
df -h /tmp
If you get something with "tmpfs" like this then its already in memory:
Filesystem Size Used Avail Use% Mounted on
tmpfs 8.0G 32K 8G 1% /tmp
To install it:
sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable --now tmp.mount
Next boot was much faster. And now there is less wear on my SD-card.