LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-04-2004, 10:46 AM   #1
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
reported partition size error


i have a partition /dev/hda3, ext3 formatted and mounted to a directory on root /share. when i look at it in KDiskFree it shows it is 8.3gig in size which is correct but then it says there is 7.8 gig free. nothing is in the /share directory and nothing else is on that partition. where is the missing 500meg? ls -a on the directory shows only . and .. and ls -l says there are 0 items in it.
 
Old 11-04-2004, 08:17 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Post the output of this command:

(how much disk partitions are free and report in human understandable terms)

df -h

# How are the hard drives partitioned
fdisk -l
# How much free/used drive space
df -h
# How much used drive space in a directory
du -sh /path/to/directory
# Show disk usage by current directory and all subdirectories
du | less
 
Old 11-05-2004, 09:20 AM   #3
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
here goes

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 9.2G 1.5G 7.3G 17% /
tmpfs 253M 0 253M 0% /dev/shm
/dev/hda3 8.3G 33M 7.9G 1% /share

fdisk -l
Disk /dev/hda: 20.0 GB, 20020396032 bytes
16 heads, 63 sectors/track, 38792 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1938 976720+ 82 Linux swap / Solaris
/dev/hda2 * 1939 21314 9765504 83 Linux
/dev/hda3 21315 38792 8808912 83 Linux

du -sh
4.0K /share

du | less
4 .

there are no hidden files in /share that i can see (yes i'm viewing hidden files) and there are no files or directories in /share. i can understand some disk space being used for partition tables or what not (not sure how ext3 works like that if it does at all) but when it says i am using 33 meg but there is another 400-500 meg missing, i kind of wonder, what happened to it.

Last edited by jsmarshall85; 11-05-2004 at 09:22 AM.
 
Old 11-06-2004, 02:49 PM   #4
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
anyone have any thoughts on this?
 
Old 11-06-2004, 03:09 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I know Windows filesystems require 15% of their space to be free for it's use, but I can't remember off hand what the Linux overhead for the journaling.

I'm sure it's better explained here:

Advanced filesystem implementor's guide (requires registration)

# Understanding Linux Filesystem layout:
Directory Navigation Help File
Filesystems, Directories, and Devices Help File
Proper Filesystem Layout
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
incorrect memory size reported tintapok Slackware 3 10-29-2005 02:11 AM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 05:18 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 01:55 PM
php error reported in forums mrtwice LQ Suggestions & Feedback 2 01-06-2004 07:03 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 04:10 AM

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

All times are GMT -5. The time now is 11:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration