LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-03-2008, 02:30 PM   #1
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
Free disk space not appearing


I managed to fill up my ext3 file system on my Slack12 (2.6.21.5smp) while backing up another computer. Ok, fine, I know what to do. So I went and deleted some old backup files. So far I've deleted 5-10GB of data but du still show the disk full.
Code:
root@USlack2:/tmp# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1            227029296 219870784         0 100%
I've forced an fsck to no avail. What am I doing wrong?

Last edited by gmartin; 02-03-2008 at 02:37 PM.
 
Old 02-03-2008, 02:43 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
An ext3-formatted partition reserves a percentage of the filesystem blocks for the super-user (root). This is a safeguard against a runaway process or a stupid user that manages to fill the disk to capacity. Even when the system reports 100% full, there will still be this percentage of hidden blocks available for writing by root.
Now, this percentage is 5 by default. For your 227 GB filesystem that amounts to roughly 11 GB of reserved space.

If you do not use this partition for the operating system or are not worried about the filesysten filling up completely, you can free (part of) these reserved blocks immediately. Use
Code:
tune2fs -m 0 /dev/sda1
to free up all of the reserved blocks.

Note that you can run this command on the mounted filesystem, and the effect will be immediate.

Eric
 
Old 02-03-2008, 03:56 PM   #3
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Thanks for the help, Eric
I was able to free up more than 5% so I left the file system alone.
 
Old 02-03-2008, 04:21 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Generally the "deleted" files are still open - reboot is a simple fix, or look at lsof.
 
  


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
Free Disk Space Not Available qwertyman19 Linux - General 5 04-24-2007 03:40 PM
Disk Free Space Ian D Linux - Newbie 1 02-09-2006 07:11 AM
rm doesn't free the disk space krizzz Linux - General 5 02-16-2005 11:27 AM
Can't free disk space mcm8327 Linux - Software 4 03-29-2004 08:19 AM
Free up disk space TheShemeta Slackware 5 11-26-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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