Fixing No space left on device error in Ubuntu Linux

Filed under

I’m using Ubuntu as my main OS in both my desktop and laptop. I was getting the following error when I tried to login to Ubuntu couple of days back:

Your session lasted less than 10 seconds blah blah blah……

When I clicked the box to see the Xserver error, I got the following error message:

/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp.
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x “/var/lib/gdm/:0.Xservers” -h ” ” -l “:0″ “username”
/etc/gdm/PreSession/Default: Beginning session setup mkdtemp: private socket dir: No space left on device.

This is what I did to fix the problem. It’s pretty simple.

Full Story.