LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-18-2007, 12:46 AM   #1
ddevore
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Unhappy Hard Drive not reporting the correct size.


I have a problem. I had the "mount: wrong fs type, bad option, bad superblock on /dev/hdb1" problem and ended up loosing everything on both drives I had.

This error really needs to be fixed.

Anyway I have a WD3200BJ Western Digital 320 GB drive and it will not report anything larger than 305 GB capacity with 298 GB free. I have no partitions on this drive I am trying to get it running now. I also have a 250GB drive which is reporting find 239 total space available to partition. This problem started right after I got the error mentioned above.

Motherboard: A8N-SLI Premium
Hard Drive: Western Digital wd3200bj
System: Ubuntu 6.10

Also, I ran this hard drive for about a year with windows with no problems. It started when I put it in the new computer. The data is gone and there are no partitions on the drive so I can do what ever is needed to get this problem fixed.

Any suggestions are welcome.

ddevore
 
Old 01-18-2007, 12:54 AM   #2
markos
LQ Newbie
 
Registered: Mar 2006
Location: Laurel, Maryland US
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
Isn't that the typical issue with the drive manufacturer quoting the
size in base 10 units and the computer mostly reporting in base 2?

See "consumer confusion" section in
REF: http://en.wikipedia.org/wiki/Megabyte

Mark
 
Old 01-18-2007, 02:59 AM   #3
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
This is the normal marketing gag of hard disk/DVD/storage media manufacturers. Your "missing" GB are simply not present physically. If you would have checked the drive size in Windows, it would have given you similar figures. Don't even try fixing it, you can't, it's normal your OS (Linux, Windows, whatever else) does display this values.

For more infos follow the link markos provided.
 
Old 01-18-2007, 09:00 AM   #4
ddevore
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I understand that there is a difference between what is advertised and what is actual but a 22gb loss on a 320gb HD seemed a little much and I don't remember it being that big of a loss before my little error mentioned before.

Is there someone with this drive who can confirm this size for me?
 
Old 01-18-2007, 03:40 PM   #5
rnturn
Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0), SuSE (10.x, 11.x, 12.2), Solaris (8-10), Tru64
Posts: 936

Rep: Reputation: 49
Quote:
Originally Posted by ddevore
Is there someone with this drive who can confirm this size for me?
The size is being reported correctly. WD is claiming that the size is 320,000,000,000 bytes. The OS is reporting the size in terms of multiples of 1024.

Try:
Code:
echo '320*1000000000/1024/1024/1024' | bc
and see what it returns.

Those darned marketing people play this game to make things appear bigger than they are. (And that's all I'm gonna say in order to keep it clean. )
 
Old 01-18-2007, 04:21 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,268

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Quote:
Originally Posted by ddevore
... I don't remember it being that big of a loss before my little error mentioned before.
Your memory is decifient, or you were duped.
Bigger disks show (more) disproportionate differences - try the math for 500Gig, and compare to your 250 Gig experience.
 
Old 01-19-2007, 09:37 AM   #7
ddevore
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Though I hate to admit it but I must admin my memory must be deficient. Thanks for the replies.
 
Old 03-09-2007, 01:24 PM   #8
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
Hi


I do understand that the the actual size of the hard disk is not the advertised one

but in my case i have installed today a 200 GB hard drive.

the western digital support knowledge base reports the actual size for a 200 GB is 186 GB

now after formating with the command
mkfs -c -t ext2 /dev/hdc1

the df -h and KDiskFree utility reports 186 GB the size of the disk
and as available 174 GB.


Why is that ? i am losing extra 12 GB . I though i would have been a 186 GB hard drive not a 174GB

Any suggestions very appreciated
 
Old 03-09-2007, 01:34 PM   #9
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
I have this drive. "df" reports it as 312437568 1K-blocks in size.
 
Old 03-09-2007, 01:40 PM   #10
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
Hi Quakeboy02

so how many GBs available do you see ? 174 or 186 or perhaps something else.
 
Old 03-09-2007, 01:43 PM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Here is the "df" for my drive in its entirety:

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/hdb1 312437568 13084996 299352572 5% /data2

Adding Used and Available does actually equal 312437568
 
Old 03-09-2007, 01:53 PM   #12
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
AFAIK, you lost the additional 12GB because of the filesystem you selected. I have given up on ext3 precisely because of that. A 100GB partition would have only 94 or 95GB available; when I use XFS instead, it has 99.something available. Careful: I may be wrong - ext2 may be different from ext3 in this respect - but I guess someone else who is actually using ext2 could clear this up.
 
Old 03-09-2007, 01:58 PM   #13
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
Hi

when i sum used and available i get 182524204

Filesystem 1K-blocks Used Available Use% Mounted on
dev/hdc1 192292124 18829624 163694580 11% /mnt/music

i started adding data but thats irrelevant
 
Old 03-09-2007, 02:18 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,890

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
By default when an ext2/3 filesystem is created 5% is reserved for root use.
The output of the df command does not show this space. Reserved space is supposed to reduce fragmentation as well as allow root to login if the filesystem becomes full.

You can use tune2fs to reduce the amount of reserved space. If this filesystem is used just for data then you can safely set it to 0%
 
Old 03-10-2007, 02:32 AM   #15
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
Hi michaelk

You saved me lots of time from truing various file systems to restore those 12 GBs. I have set to 0 the root reserved space by following this thread
and now i have reached 184GB


Thank you all for assisting me


regards
 
  


Reply

Tags
drive, drives, hard, incorrect, partition, size, ubuntu


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
df -h not reporting correct amoutn, help... Lleb_KCir Linux - General 2 07-21-2005 03:38 PM
df not reporting correct size. mdarby Slackware 2 11-10-2004 07:36 AM
Hard disk not showing correct size rwalkerphl Linux - Newbie 8 08-19-2004 02:58 PM
Hard drive size? tgardner Linux - Newbie 4 08-28-2003 09:46 PM
Hard Drive Size Michael Jones Linux - Newbie 4 01-11-2002 06:19 PM


All times are GMT -5. The time now is 12:56 PM.

Main Menu
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