I can't login to my CentOS system because it indicates I'm out of Hard disk space. What can I do to delete some old files?
You may also be able to switch to a virtual terminal and log in as root to clear up some space.
This assumes that the reserved space for root hasn't been filled up by root-owned files.
To switch to a virtual terminal, press Ctrl+Alt+F2 (for example), log in as root, figure out which file/files can be deleted safely to free up some space and then switch back to your graphical display manager and try logging in again. The graphical display manager should be accessible via Ctrl+Alt+F7, but some distros, like Fedora, put it at Ctrl+Alt+F1.
In addition to @JosephR reply.
To prevent such issues in future you need to plan your system layout more effectively.
I would recommend you to use a separate
/home partition and a separate partition to store your personal data and files like
And in case if you use more addition software other than the one which comes from distro, like VMware, skype, adobe, google-chrome you can keep
/opt in a separate partition.
By segregating them into different partition we can avoid
/ disk getting filled and thus causing these issues.