LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-03-2010, 11:12 AM   #1
canyonbreeze
LQ Newbie
 
Registered: Apr 2009
Posts: 18

Rep: Reputation: Disabled
Missing Diskspace


In Debian Lenny the system monitor says 59 GB available on /dev/sdb but says only 36 GB free. Where are they other 23 GB and how to free them up for use?
 
Old 02-03-2010, 11:33 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look at "lsof +L1" to list deleted files. A common method is to open a file (in C) and delete it, but keep the FD number. The directory entry is gone but the program can still use the file because the kernel won't remove the inode until the file is closed. Now if the program crashes, there won't be a stale file. Rebooting will remove these temporary files, or restarting the programs or services that are accessing them.

Other differences could be due to a file being sparse. You didn't mention which was the second tool that said 36GB free.
The filesystem may also have a certain percentage reserved for the root user. As root, this space may be counted as free space while as a regular user it wouldn't be. If this isn't for the root directory or a system directory, you may be able to run a program to adjust this. For ext2/3/4 use the tune2fs program. The intent is to A) reduce fragmentation B) Allow services to run if regular user files fill the filesystem.
 
Old 02-03-2010, 11:51 AM   #3
canyonbreeze
LQ Newbie
 
Registered: Apr 2009
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thank you for the answer. I will try your suggestions. It's the system monitor added to the Gnome panel that gives both the available and free amounts, no 2nd tool. This is a secondary disk drive that is used for backup. It is ext3 and only one partition. Does not include any system files (/root, /usr, et al are on the primary drive).

Edit: lsof +L1 shows files only on the primary drive, nothing shown on this drive.

Last edited by canyonbreeze; 02-03-2010 at 11:54 AM.
 
Old 02-03-2010, 07:09 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try

df -k

and

du -k | sort -nk1

see also the various options for du http://linux.die.net/man/1/du
 
Old 02-04-2010, 09:08 AM   #5
canyonbreeze
LQ Newbie
 
Registered: Apr 2009
Posts: 18

Original Poster
Rep: Reputation: Disabled
Found the answer. EXT3 and EXT4 reserve 5% of disk space for root user which is necessary on a boot device (indicated in second post above, thank you). 5% was the exact discrepancy I was seeing. As this is not a boot device I set it to 0% and that freed up the space. Now the free and available are the same.

tunefs -m 0 /dev/sdb

Last edited by canyonbreeze; 02-04-2010 at 09:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
show how much diskspace do certain files use thewebshark Linux - Newbie 4 12-22-2009 11:41 PM
Missing Diskspace? Casper36410 Linux - General 2 11-14-2007 06:21 PM
OMFG, where is that diskspace going to .. Manu-M *BSD 4 09-03-2004 04:47 PM
diskspace.... yenonn Slackware 5 03-19-2004 07:39 PM
how to check diskspace nbtaher Linux - General 1 05-16-2002 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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