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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-14-2008, 10:15 PM
|
#1
|
|
LQ Newbie
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15
Rep:
|
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?
|
|
|
|
06-14-2008, 10:22 PM
|
#2
|
|
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Rep:
|
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).
|
|
|
|
06-14-2008, 10:26 PM
|
#3
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
06-14-2008, 10:30 PM
|
#4
|
|
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep: 
|
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%.
|
|
|
|
06-14-2008, 10:35 PM
|
#5
|
|
LQ Newbie
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
|
06-14-2008, 11:46 PM
|
#6
|
|
LQ Newbie
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
|
06-15-2008, 12:03 AM
|
#7
|
|
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Rep:
|
"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.
|
|
|
|
06-15-2008, 12:44 AM
|
#8
|
|
LQ Newbie
Registered: May 2006
Location: Safford, AZ, USA
Distribution: Ubuntu 11.04
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:44 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|