LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-21-2003, 10:14 AM   #1
csDraco_
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93

Rep: Reputation: 15
Unhappy df -h vs cfdisk info, incorrect size of new drive


I just bought a brand new 80G Samsung drive .. I created a fev partitions and when I mount one of them, this is what I see:

# df -h
/dev/hdb6 66G 33M 62G 1% /mnt/data

huh ... 66G - 33M != 62G

on top of that cfdisk tells me that this partition is 72004.11MB = 70.3165GB

Why is "df" telling me that a 70.3GB partition is only 66GB of which 62GB are free because 33MB are used???

by the way the file type is ext3, I get simillar results with "df" when using ext2 file system.


Thanks for any replys in advanced
 
Old 09-21-2003, 10:59 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
The difference between the actual size of the partition and the what df reports is space reserved for root. The default is 5%. This is emergency space that root can use if the filesystem has errors or something happens where the partition fills up.

You can use tune2fs to adjust the size. Since this is a data partition you could make it zero. I don't recommend going to zero for the root partition. If the filesystem has errors or the partition fills up happens the OS might crash and you will not be able to log in.
 
Old 09-21-2003, 03:19 PM   #3
csDraco_
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93

Original Poster
Rep: Reputation: 15
Thanks michaelk ... that's just what I wonted to hear

I'll read up on tune2fs now.
 
  


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
incorrect memory size reported tintapok Slackware 3 10-29-2005 01:11 AM
Slackware 9.1 install - PCI cache line size incorrect will103 Linux - Newbie 4 04-21-2004 01:38 PM
RH9 install - incorrect harddisk size detected qsg1049 Red Hat 0 03-05-2004 03:19 PM
Partitioning a windows drive for Slack 9.1 using cfdisk or fdisk sxa Linux - Newbie 2 02-06-2004 09:01 PM
fdisk and cfdisk won't detect hard drive Akcel Slackware 9 07-12-2003 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:02 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
Open Source Consulting | Domain Registration