LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2004, 12:30 PM   #1
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Rep: Reputation: 15
Hard disk not showing correct size


Hi all,

I have somewhat of a problem.

My server crashed last week, so I decided to reload FC2 from scratch. I had a160GB HD in the machine, and had a second one to install, so I decided to install the second one as the primary, and move the first one as a slave. Unfortunately, prior to doing this, I tried to install back on the first disk, and aborted.

The server is back up now with primary being the new disk, and I can see it all, however, the second disk only shows 33GB space out of 160GB. When I try to partition, it is not seeing the rest of the disk.

Does anyone have an idea how I can reformat the 2nd hard drive so that I can see the full 160GB again?

Thanks!

Robin.
 
Old 08-08-2004, 12:40 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Can you post the output from:
fdisk -l
df -h
 
Old 08-08-2004, 12:52 PM   #3
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Original Poster
Rep: Reputation: 15
[root@backup sbin]# ./fdisk -l

Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 19832 159196117+ 83 Linux
/dev/hda3 19833 19929 779152+ 82 Linux swap

Disk /dev/hdb: 33.8 GB, 33820286976 bytes
255 heads, 63 sectors/track, 4111 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

[root@backup sbin]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 150G 2.7G 140G 2% /
/dev/hda1 99M 12M 83M 13% /boot
none 190M 0 190M 0% /dev/shm

I have umounted the disk, doyou want me to FDISK, MKFS and MOUNT again?

Thanks,
Robin.
 
Old 08-08-2004, 12:59 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Is the drive correctly detected by the BIOS?
 
Old 08-19-2004, 12:37 PM   #5
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Original Poster
Rep: Reputation: 15
Apologies for not getting back sooner, things are rather busy at the mo!

I set the BIOS to the same setup as another hard drive I had on the system. When I ran FDISK, it let me put the correct number of cylinders in, however, when running mkfs, it hung...

I removed the hard drive, and tried reformatting it on a Windows PC, and that had the same issue as well. It could only see 33GB.

I am starting to think the HD is hosed, but any advice to see if I can get it back would be much appreciated!

Thanks,

Robin.
 
Old 08-19-2004, 01:43 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You could try zeroing it:
dd if=/dev/zero of=/dev/hdX

Where X is the drive number.
 
Old 08-19-2004, 02:21 PM   #7
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Original Poster
Rep: Reputation: 15
Hi David,

What will that do? Logically clear it, or physically (i.e. wipe the disk)?

Thanks!

Robin.
 
Old 08-19-2004, 03:30 PM   #8
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
It will physically wipte the disk ie) write 0's to everything.
 
Old 08-19-2004, 03:58 PM   #9
rwalkerphl
Member
 
Registered: Jun 2004
Location: NJ, US (Ex UK)
Distribution: RHEL3.0 / FC2
Posts: 79

Original Poster
Rep: Reputation: 15
Even if it doesn't seem to be able to read some of the disk?
 
  


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
HD not showing up as correct size, please help!! chriserickson Linux - Hardware 6 09-23-2005 02:04 PM
Hard disk size not showing correctly niranjan_mr Linux - Software 4 01-29-2005 07:10 AM
Hard Disk Size problem ricardo_ok Slackware 10 07-20-2004 07:20 PM
Problem with hard disk size sramaswamy Linux - Hardware 1 12-04-2002 01:12 PM
redhat 7.3 installer not showing actual disk size ... ashanmugam Linux - Software 1 09-30-2002 06:51 PM


All times are GMT -5. The time now is 06:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration