LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 12-27-2006, 12:22 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 4

Rep: Reputation: 0
Hard Drive showing incorrect capacity


I have uninstalled the Centos from my 40G hard drive yesterday. While I am trying to format it and reinstall the linux today, I just found out that my hard drive is showing only 19G instead of 40G.

I tried fdisk, write zero and so on but still no luck.

Can anyone (please) advise me how to fix it to show the correct capacity 40G?

Thank you.
Old 12-27-2006, 05:47 AM   #2
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Originally Posted by xer
I tried fdisk, write zero and so on but still no luck.
What exact commands did you use? Specifically, what about:
fdisk -l /dev/hdx
Where x is the correct letter for your drive & "hd" might have to be "sd" -- you gave us so little background.
Old 12-27-2006, 06:03 PM   #3
LQ Newbie
Registered: Dec 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reponse.

I tried with A:\>format -1 /dev/hda, I got Parameter Format Not Correct- -1 error message.

When I tried with A:\>format /dev/hda, I got Invalid Swhitch- /dev

I also tried with sd instead of hd too.

Here is more info about my system's currant state:

PC: P4
HD: Western Digital 40G (but showing only 19G)
Story: I just uninstalled Centos. When I tried to fdisk and format the hard drive with win98 dos disk, it only shows 19G instead of 40G. I also tried with Western Digital write zero utility but it still showing 19G.

Please advise.

Old 12-27-2006, 06:56 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,829

Rep: Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453Reputation: 1453
You were asked for the output of "fdisk -l" (lower case ell, not the number one). Why were you running a "format" command ???.
Leave the device off; just use (as root) "fdisk -l"
Old 12-27-2006, 07:18 PM   #5
LQ Newbie
Registered: Dec 2006
Posts: 4

Rep: Reputation: 0
DOS command with *nix parameters

From your most recent post, it appears as if you are using DOS commands without using DOS parameters.

If you want to use the "FORMAT" command from DOS, you must use the correct parameters. To see what they are, from the DOS command line type, "format /?"

It could be you have a 19GB formatted partition on your hard drive and another unformatted (unseen) partition of 20+GB.

I am not familiar with centos, but you might want to check the centos site for information. I believe I read in one of the centos formats where one individual had a problem similar to yours. He had to delete the centos partition using "FDISK" from a Windows startup disk.

A good Linux-based partition editor is "gparted" which can be found at

Good luck.
Old 12-27-2006, 10:18 PM   #6
LQ Newbie
Registered: Dec 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the response.

Sorry for my unclear explaination.

Linux has been removed from the hard drive. No more linux.

I only have a blank hard drive (with incorrect and hidden partitions)

Thats why I was trying with windows dos disk.

I did try with the linux fdisk commands becuase I thought it would delete the hidden/remaining linux partitions.

I also used the windows/dos correct parameters for fdisk and format as I mentioned earlier.

I am still trying.

Please advise.

Old 12-27-2006, 10:37 PM   #7
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
oh in that case run the dos fdisk. delete all the partitions recreate with large drive support, set ur drive as active partition, reboot. then
format c: /s
to format
it will take about 30 minutes

Last edited by chrisortiz; 12-27-2006 at 10:38 PM.
Old 12-27-2006, 11:03 PM   #8
LQ Newbie
Registered: Dec 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, I did the fdisk but there's no partition to be deleted. (I already done this earlier too)

So, I created a primary partition and set activate. It is still showing 19G.

Then I shutdown and restarted the computer. I am formating it now as you advised (A:\>Format C: /s). The capacity is still 19G only.

All I did was just uninstalled the CentOS from the hard drive. I think this is messed up linux. This is my first time trying linux.

Please advise.



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
windows/linux hard drive capacity Vensan Linux - Hardware 2 01-19-2007 11:39 AM
Samba displaying incorrect disk capacity on windows clients... fred22 Linux - Software 1 03-30-2006 09:24 PM
hard drive not showing lungsucker Linux - General 1 02-27-2006 05:35 PM
Hard Drive capacity twantrd Linux - General 2 10-12-2004 03:04 PM
hard drive not showing h0p3sf411 Mandriva 13 03-15-2004 03:23 PM

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration