LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-08-2007, 04:09 PM   #1
Anithen
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Slackware 12, Slackware 12.1, Slackware 12.2
Posts: 105

Rep: Reputation: 15
df -h shows 112GB size hard drive, but I have 120GB


I did a full install of Slackware 11 on a p4 machine with a 120gb hard drive. My file system is ReiserFS, and df -h shows the total size as 112GB. fdisk -l shows 120GB. When I google for this problem I don't see any real solutions, but I have found the large disk howto, and it calls my problem a "Nonproblem". The help the howto provides destroys all the data on my disk, because I tried it 2 days ago and couldn't boot my machine afterwards. I even tried using the slackware 11 dvd to boot whatever linux system it finds on /dev/sda2 with sata.i and it almost worked but couldn't find anything at all. So, I reinstalled Slackware 11 full install and with reiserfs and df -h shows 112GB total, and it's better than ext3, which only saw about 104GB when I ran df -h. I downloaded and compiled kernel 2.6.21.1, and it boots fine. I believe I have a scsi hard drive, because I have to use /dev/sda instead of /dev/hda. I'm at work now, so I can't give any lspci right now, but I will be able to give such info after 8:30pm est. I greatly appreciate any help anyone can provide with this problem that I'm struggling with. Thanks!
 
Old 05-08-2007, 04:22 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
It is indeed a nonproblem. 120GB decimal is 120 x 1000 x 1000 x 1000. To convert that computerese, divide 120,000,000,000 by 1024 three times. That gives you about 111.76, or effectively 112GB.
 
Old 05-08-2007, 04:23 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I do not know if you know this but manufactures states GB in human form or base 10. Computers work on two digits or base 2. When converting base 10 to base 2, information will be lost.

A 120 GB will be around 110 GB to 117 GB depending on the hard drive manufacture.

EXT3 does not do well with large capacity drives. I prefer using XFS instead of ReiserFS because ReiserFS has data corruption problems.
 
Old 05-08-2007, 04:41 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Ext3 also reserves a certain amount(usually 5%) of the space for the OS to use. This is so if a user uses up all the disk space the OS can still function(112 vs 104).
 
Old 05-08-2007, 05:51 PM   #5
Anithen
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Slackware 12, Slackware 12.1, Slackware 12.2
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks for the responses, everyone. So, I guess there's nothing left for me to do since my drive is actually 112GB, and the info you gave me about ext3 explains why it saw even less than 112GB. Does it matter that the OS that was on the computer by default (Vista) saw 120GB? ReiserFS has data corruption problems? I'll look into that and perhaps try XFS one day. Thanks again for the help.
 
Old 05-08-2007, 07:40 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Anithen
Thanks for the responses, everyone. So, I guess there's nothing left for me to do since my drive is actually 112GB, and the info you gave me about ext3 explains why it saw even less than 112GB. Does it matter that the OS that was on the computer by default (Vista) saw 120GB? ReiserFS has data corruption problems? I'll look into that and perhaps try XFS one day. Thanks again for the help.
Vista may tell you it is 120gb but in binary it is about the 112gb everyone else has told you, MS must be using decimal for their calculations helping the hard drive manufacturers in their false advertising. As to the Reiserfs data corruptions that is a load of BS I have used it for at least 6 or 7 years now and have had to rebuild a filesystem tree once in that entire time so I don't know where that comes from.
 
Old 05-08-2007, 08:27 PM   #7
Anithen
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Slackware 12, Slackware 12.1, Slackware 12.2
Posts: 105

Original Poster
Rep: Reputation: 15
Alright, thanks for the info, HappyTux. Seems like I don't have to fix anything. Thanks for the reassurance about Reiserfs, as I was noticing little things I liked about it here and there. I guess I found all the answers I need. Thanks, everyone.
 
Old 05-08-2007, 09:01 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Backups !!!. Doesn't matter what filesystem.
ReiserFS when it was first released only did metadata journalling.
Bad, bad Hans.
Was later rectified.

I refused to use it, and anyone that did (early on) and lost power had big problems.
FWIW I almost always use ext3. Everyone has a choice.
 
  


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
Just got a 120GB hard drive Kingrames Linux - Hardware 3 01-08-2006 06:59 PM
Problem with a Maxtor 120GB External Hard Drive cheetahman Linux - Hardware 3 03-06-2005 06:25 PM
install linux 120gb hard drive aeruzcar Linux - General 1 08-27-2004 08:45 PM
Debian and Windows XP on A 120Gb Hard Drive? p_cowell141 Debian 1 02-06-2004 01:24 PM
External Hard drive: Maxtor 5000 DV 120GB enk0d Linux - Hardware 18 06-06-2003 11:15 AM

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

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