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 12-26-2006, 11:22 PM   #1
xer
LQ Newbie
 
Registered: Dec 2006
Posts: 4

Rep: Reputation: 0
Hard Drive showing incorrect capacity


Hello,

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, 04:47 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
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:
Code:
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, 05:03 PM   #3
xer
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.

Thanks!
 
Old 12-27-2006, 05:56 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
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, 06:18 PM   #5
hgh9mrp
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 http://gparted.sourceforge.net.

Good luck.
 
Old 12-27-2006, 09:18 PM   #6
xer
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.

Thanks.
 
Old 12-27-2006, 09:37 PM   #7
chrisortiz
Member
 
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
Code:
format c: /s
to format
it will take about 30 minutes

Last edited by chrisortiz; 12-27-2006 at 09:38 PM.
 
Old 12-27-2006, 10:03 PM   #8
xer
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.

Thanks.
 
  


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

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

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