Yesterday I was trying to recover some lost files from an external drive using r-linux. I think this filled my laptop's hard drive and my computer suddenly crashed and went into low graphics mode which doesn't let me log in at all.
I searched on here about low graphics mode and confirmed that full disk is one of the reasons.
Following the advice I managed to get to a VT and run the commands
sudo apt-get install --reinstall ubuntu-desktop
sudo reboot
But they didn't help. Then I managed to do the command
df -h
and this showed me a table, which shows I have no space.
That's where I am stuck, I can't out figure how to delete things. I tried the command
sudo du -kxa / | sort -nr | head
but it doesn't work.
How can I find the contents I want to delete and then how to actually select the big/not important ones and delete them through the commands?
df -h
returns:
filesystem size used avail use% Mounted on
dev/sda1 455gb 449g 0 100% /
udev 2,0G 4,0K 2,0G 1% /dev
tmpfs 806M 820K 805M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 2,0G 0 2,0G 0% /run/shm
none 100M 8,0K 100M 1% /run/user
overflow 1,0M 4,0K 1020K 1% /tmp
sudo du -kxa / | sort -nr | head
not working? It must do something.rm
command. For more information executeman rm
.df -h
. Basically, you need to userm
to delete files but we can't tell you which ones unless you give us more details. Thesudo du -kxa / | sort -nr | head
might not work if you have no space left. Trysudo du -ch / | grep -P '^\d+G'
instead. That should give you a list of files/dirs whose size is in the gigabytes. They should serve as a starting point. Since there's no sorting, that is likely to run with no errors. Post the output here and we'll what we can do.