LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2017, 08:03 AM   #1
mc2017
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Rep: Reputation: Disabled
GDM could not write a new authorization entry to disk. Possibly out of diskspace. Error: No space left on device


Hi There,

I had my linux server turned off for few months. When I turned it on, I received "GDM could not write a new authorization entry to disk. Possibly out of diskspace. Error: No space left on device". When I did df -h, I realized that my /var is 100%.

All other partitions have space. Will some one please help?

I'm little rusty with the steps and need some help.

Thank you,
MC
 
Old 08-20-2017, 10:22 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
One step is to quickly see if you can tell where the space is going. I would start with
Code:
du -ks /var/* | sort -n| tail
and examine that.

Once you know where space is going, you know what to clean up first. The exact steps depend somewhat on what kind of distribution you use. On mine I would run
Code:
sudo apt-get clean all
to clean up the software cache space. I might also examine the printer and mail sections of the spool folder, as well as /var/log files no longer needed.

On MY systems I would do pretty much all of this while running from a live-cd image or rescue CD after mounting the filespaces and chrooting into your HD root, but that may be overkill for your case.

See if that gets you started, then come back and let us know how you are getting on.
 
Old 08-24-2017, 10:11 AM   #3
mc2017
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi,
I get a reply saying OSError: [Errno 281] No space left on device.

Please help.
MC

Quote:
Originally Posted by wpeckham View Post
One step is to quickly see if you can tell where the space is going. I would start with
Code:
du -ks /var/* | sort -n| tail
and examine that.

Once you know where space is going, you know what to clean up first. The exact steps depend somewhat on what kind of distribution you use. On mine I would run
Code:
sudo apt-get clean all
to clean up the software cache space. I might also examine the printer and mail sections of the spool folder, as well as /var/log files no longer needed.

On MY systems I would do pretty much all of this while running from a live-cd image or rescue CD after mounting the filespaces and chrooting into your HD root, but that may be overkill for your case.

See if that gets you started, then come back and let us know how you are getting on.
 
Old 08-24-2017, 12:12 PM   #4
mc2017
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks wpeckham!

I managed to clear the cache and freed up enough space to boot properly.

Best,
Mano


Quote:
Originally Posted by wpeckham View Post
One step is to quickly see if you can tell where the space is going. I would start with
Code:
du -ks /var/* | sort -n| tail
and examine that.

Once you know where space is going, you know what to clean up first. The exact steps depend somewhat on what kind of distribution you use. On mine I would run
Code:
sudo apt-get clean all
to clean up the software cache space. I might also examine the printer and mail sections of the spool folder, as well as /var/log files no longer needed.

On MY systems I would do pretty much all of this while running from a live-cd image or rescue CD after mounting the filespaces and chrooting into your HD root, but that may be overkill for your case.

See if that gets you started, then come back and let us know how you are getting on.
 
Old 08-24-2017, 03:41 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by mc2017 View Post
Thanks wpeckham!

I managed to clear the cache and freed up enough space to boot properly.

Best,
Mano
Wonderful news! But that is only the start: Now you will want to figure out what ate up your space (and where) and see if it can be prevented from happening again.
 
Old 08-24-2017, 03:44 PM   #6
mc2017
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yes, absolutely as I do not want to run into this issue again.
Thanks,
MC

Quote:
Originally Posted by wpeckham View Post
Wonderful news! But that is only the start: Now you will want to figure out what ate up your space (and where) and see if it can be prevented from happening again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /etc/profile write to 1 failed [No space left on device] cdhar Linux - Newbie 2 03-18-2013 04:54 AM
write to 1 failed [No space left on device] cyberchip Linux - Software 3 10-16-2012 10:55 AM
write to 1 failed [No space left on device] cyberchip Linux - Kernel 1 10-04-2012 01:51 PM
Cannot write: No space left on device louk88 Linux - Newbie 9 04-22-2012 06:43 PM
GDM could not write my authorization file . (Low Disk space ) Ankit Sharma Linux - General 7 03-19-2008 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration