LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2008, 10:15 PM   #1
richardhufford
LQ Newbie
 
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15
Blog Entries: 1

Rep: Reputation: 0
Disk appears to be full, but I don't think it is


I'm running Debian Etch on a 4GB hard drive. I had plenty of disk space last year when I set the computer up, but lately the disk has been filling up. Today, I let the system automatically install 43 updates, and now I can only log in to GDM as root. When I log in as a regular user, GDM displays a message that it cannot write the authorization file and that my hard disk might be full.
I can open a Root Terminal. One time, the df command reported that /dev/hda1 had 3908554 1-K blocks. 3748072 were used 0 were available. Then I deleted a bunch of log files, and the df command reported that 3747988 blocks were used and 0 were available. Shouldn't deleting files with the rm command free up disk space?
If I run GParted (under System Tools on the Applications menu), it reports that I have 152.58 MiB available and that this is 4 percent of the partition. Shouldn't this space be available?
 
Old 06-14-2008, 10:22 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
The system behavior is weird when memory runs low; after deleting files you should reboot.

You might also consider removing the package files from /var/cache/apt/archives if you have a CD/DVD of the archives. Otherwise you might want to write those files to a CD before removing them (except that you may not be able to if disk space is low - but 'Disk At Once' mode may do).
 
Old 06-14-2008, 10:26 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
A certain percentage of a the filesystem is reserved for the root user. The logs were probably owned by root and used up some of this reserve space.
 
Old 06-14-2008, 10:30 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I would look over those logs pretty close. You MAY have something generating an error every second and that can make the logs grow extremely fast. Assuming you are running Ext3 jschiwal is correct, I think the standard default is 5%.
 
Old 06-14-2008, 10:35 PM   #5
richardhufford
LQ Newbie
 
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Thank you for your quick responses. I found this answer right after I posted my question, so I'll just see if deleting more files can solve the problem.
This is a pretty stripped down system--it only has a CD-ROM, so I won't be burning disks. I can probably find some more files to delete though.
 
Old 06-14-2008, 11:46 PM   #6
richardhufford
LQ Newbie
 
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15

Original Poster
Blog Entries: 1

Rep: Reputation: 0
What do I lose if I delete the files in /var/cache/apt/archives without backing up to CD? Are these just prior versions of the products I've installed? If so, I'm not sure I'd know what to do if I needed them anyway.
 
Old 06-15-2008, 12:03 AM   #7
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
"What do I lose if I delete the files in /var/cache/apt/archives without backing up to CD?"

Unless you regularly "clean" after installing software, that directory will contain absolutely all versions of *.deb packages you've installed since first installing the system. For people who use "unstable" and do regular updates, the files can occupy several GB in a fairly short time.
 
Old 06-15-2008, 12:44 AM   #8
richardhufford
LQ Newbie
 
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15

Original Poster
Blog Entries: 1

Rep: Reputation: 0
I deleted all the files in /var/cache/apt/archives and this freed up about 30 percent of the partition. Now, booting up and logging in appear to work perfectly! Thank you very much for your help.
 
  


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
data recovery from crashed disk. on boot grub promt appears vinshe Linux - Newbie 7 09-11-2006 06:18 AM
disk full when it isn't pete-wilko Linux - Newbie 14 06-17-2006 10:36 AM
disk stats not updating after deletion of file.. disk full joecool118 Linux - General 2 04-10-2006 12:23 PM
25% of my disk space appears to be missing ealpert1 Linux - General 3 11-25-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 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