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 08-18-2004, 08:10 PM   #1
delta7
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Rep: Reputation: 0
df returning wrong disk size


My old Toshiba Satellite only has a 4.3 gig hard drive, with a 329mb swap partition and a 3.9 gig root partition

Everything works great, but I have one problem.

when I run df -h it reports that /dev/hda1 is only 2.5 gigs in size: with 1.8 used and 450megs available

cfdisk reports the correct disk size of 3997 for / and 329 for swap.

The / is ext3 btw

Any help is greatly appreciated
 
Old 08-18-2004, 10:51 PM   #2
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Rep: Reputation: 15
what does:
Code:
# fdisk -l
return?
 
Old 08-19-2004, 12:44 AM   #3
delta7
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Device Boot Start End Blocks Id System
/dev/hda1 * 1 486 3903763+ 83 Linux
/dev/hda2 487 526 321300 82 Linux swap
 
Old 08-19-2004, 01:18 AM   #4
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Rep: Reputation: 15
Sorry, I missed the cfdisk bit in your first post.

I imagine the "missing" space is the journal.

Unfortunately I don't know much about Ext3 (I use ReiserFS), so can't help more than that. The man page/documentation for tune2fs may help you out.
 
Old 08-20-2004, 05:10 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The ext2 and ext3 file systems reserve some of the space for the root user.
This way, if a drive if full, the root user is able to still work and fix the problem. Also, bad blocks are reserved, and as stated already the journal takes up space.
The tune2fs program can be used to change the amount of reserved block space. dumpe2fs will display information about the filesystem.
 
  


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
USB external Disk reports wrong size alans Linux - Hardware 1 03-17-2005 09:57 AM
Sizeof returning wrong packet size ?? Quest101 Linux - Networking 1 03-10-2005 09:37 AM
Gnome gets wrong disk size of NFS volumes (FC3, x86_64) otzenpunk Fedora 0 12-03-2004 12:15 AM
new disk wrong size? Greg21 *BSD 5 04-17-2004 06:46 PM
SCSI-controller reports wrong disk size Gardener Linux - Hardware 2 08-13-2002 09:23 PM


All times are GMT -5. The time now is 11:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration