1

The system gives me the following error:

The volume "Filesystem Root" has only 713.9 MB disk space remaining. You can free up disk space by removing unused programs or files, or moving files to another disk or partition.

I have SSD for / and swap folders and HDD for home folder. How could I store files on HDD so SSD could have free space?

Melebius
  • 11,431
  • 9
  • 52
  • 78
  • 2
    To get more exact responses, please [edit] your question to add the output of the following commands df -h, sudo du -sh /* (this one will require a long time to complete). Don’t forget to apply code formatting. Related questions: https://askubuntu.com/questions/54217/move-the-whole-installed-files-to-another-partition; https://askubuntu.com/questions/900496/move-opt-to-a-different-already-existing-drive – Melebius Sep 11 '18 at 09:21
  • 1
    I would investigate what is eating up your space. For instance: check if /var/log/ has large files and investigate why. Maybe you are hitting a problem and is is logged so many times it is filling your disk. An SSD 25Gb large used in a desktop with no personal data is difficult to fill with just installing software. So what size is yours? If only 10Gb I would get a bigger one ;-) – Rinzwind Sep 11 '18 at 09:24
  • Also I would run sudo apt autoremove which will remove unneeded packages that have been auto installed earlier, among that, old kernels in /boot. – Soren A Sep 11 '18 at 09:35

1 Answers1

0

Depending what the most conveniently massive* files belong to, you can sometimes get away with shoving them straight onto another disk.

* If there are just a few things that are huge and easy to find, if you see what I mean.

The easiest tactic is to copy (cp -ar (-a is important to preserve permissions etc.)) a directory to somewhere (either a new partition on the HDD or for example a slightly nasty path like /home/usr/...) then replace the original directory with a symbolic link.

This will mean that anything trying to open them (for reading or writing) in the original location will seamlessly** end up following the link and all will be well.

** ...most of the time

There are some risks in this strategy. If you link out a directory which is part of a software package, you risk the install scripts doing something unexpected on an upgrade and replacing your link, which can leave things half broken. So proceed with care.

It's probably easier to just delete some stuff, though... as most people are saying in comments, it really depends what the space is being taken up by.