disk full wont login

General support questions including new installations
os480
Posts: 2
Joined: 2012/03/02 12:49:47

disk full wont login

Postby os480 » 2012/03/02 20:05:18

Hi,

No to good with Linux. My disk has become full and centos 4.8 (final) won't let me login anymore to gnome - strange it should allow one to get to this stage of affairs.

Googled and found

cd ~/.Trash
su
rm -rf *

as a good way to make more space.

Only how do I get to a terminal to do this. My first thought was to start in a sort of command line only equivalent of Windows but I do not know how to do this.

What is the simplest way to solve the problem?

User avatar
TrevorH
Forum Moderator
Posts: 21182
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: disk full wont login

Postby TrevorH » 2012/03/03 01:45:58

If you running a GUI, hit Ctrl-Alt-F2 to switch to a command line terminal on VT2 then login as root with the correct password. Now identify where the space is being used by running

Code: Select all

du --max-depth=1 -m -x /


(repeat this command narrowing it down by the amount of space allocated, so if the first iteration shows a lot of space under /var then run it again with /var as the last parameter, repeat until you find the lowest level directory containing lots of used space).

os480
Posts: 2
Joined: 2012/03/02 12:49:47

Re: disk full wont login

Postby os480 » 2012/03/03 16:54:53

Thanks for the suggestion TrevorH.

Solution worked nicely, just must remember not to logout with disk full and take immediate action in the future!

TrevorH wrote:
If you running a GUI, hit Ctrl-Alt-F2 to switch to a command line terminal on VT2 then login as root with the correct password. Now identify where the space is being used by running

Code: Select all

du --max-depth=1 -m -x /


(repeat this command narrowing it down by the amount of space allocated, so if the first iteration shows a lot of space under /var then run it again with /var as the last parameter, repeat until you find the lowest level directory containing lots of used space).

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

disk full wont login

Postby pschaff » 2012/03/04 03:59:57

os480 wrote:
... My disk has become full and centos 4.8 (final) ...

Please be aware: CentOS 4 Has Reached End of Life.