LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2003, 04:31 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
20G hard drive only showing up as 4G...


Redhat 8.0...

# hdparm -i /dev/hdc

/dev/hdc:

Model=Maxtor 2B020H1, FwRev=WAK21R90, SerialNo=B1KDYYLE
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=40020624
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: (null): 1 2 3 4 5 6 7

# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 18G 17G 0 100% /
none 219M 0 219M 0% /dev/shm
/dev/hdc1 4.0G 0 3.9G 0% /var/www/html


any ideas? Unfortunately, I can't sit at the computer, so I can't check the bios - anything else I might look at (assuming the bios is set correctly)?

thanks
 
Old 01-24-2003, 07:05 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Okay, the BIOS can see big because /dev/hda is a 20 also and it sees the whole thing:

Check with cfdisk to see if you partitioned it correctly, if there's 15Gb of unused space that'll be the culprit, if so you can partition out that unused space and 99 out of a 100 nothing bad will happen to /dev/hdc1.

The best way to see if the kernel saw the whole drive is to check dmesg for something like:

hda: 6306048 sectors (3229 MB) w/418KiB Cache, CHS=782/128/63, UDMA(33)

The size reported is what it gets from BIOS, and I once miss jumpered an 80Gig into a 32 Gig...

Cheers,

Finegan
 
Old 01-24-2003, 08:57 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by finegan
Okay, the BIOS can see big because /dev/hda is a 20 also and it sees the whole thing:

Check with cfdisk to see if you partitioned it correctly
cfdisk on hdc says:
Code:
    Name        Flags         Part Type      FS Type                  Size (MB)
 ------------------------------------------------------------------------------
    /dev/hdc1                 Primary        Linux                     19540.00
so it appears to see the whole thing..
Quote:

The best way to see if the kernel saw the whole drive is to check dmesg for something like:

hda: 6306048 sectors (3229 MB) w/418KiB Cache, CHS=782/128/63, UDMA(33)
here's what I get:
Code:
# cat dmesg | grep hdc
    ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdc:DMA, hdd:pio
hdc: Maxtor 2B020H1, ATA DISK drive
hdc: 40020624 sectors (20491 MB) w/2048KiB Cache, CHS=2491/255/63, UDMA(33)
 hdc: hdc1
..again, appears to be all there. ?

any more ideas? Am I reading something wrong?

thanks a ton for the tips, I didn't know about cfdisk (which I had to install) or dmesg.
-brian

Last edited by BrianK; 01-24-2003 at 09:04 PM.
 
Old 01-24-2003, 09:14 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
This one's a stumper, I'm bugging some of the other mods about it right now, but you've never happened to use any of those nasty Maxtor "factory" utilities or any of that goop one it? It's a first guess, but we figured it would probably blag fdisk rather hard...

Cheers,

Finegan
 
Old 01-24-2003, 09:18 PM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Backup first. My guess is that you may have some MAXBLAST goo in there (HDD BIOS) which provides (among other things) a workaround for buggy mobo bios-es.

This will reformat your hard drive. It's not a low-level format but the next lowest step is to just buy a new drive.

http://www.maxtor.com/en/support/downloads/powermax.htm

That's my guess and I'm sticking with it.

Edit: I could be wrong about the problem/solution, but this approach (the shotgun type) will at least do a media verification on the whole platter. You can use it to rid the drive of frikkin viruses.

Last edited by mcleodnine; 01-24-2003 at 09:31 PM.
 
Old 01-26-2003, 12:14 AM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I'm no expert in LINUX. Try posting your fcstab file. It could also be the bootloader (LILO, GRUB, etc).

Like other people said. Buy another hard drive. Try buying a different brand like Western Digital, IBM, Seagate. Western Digital and IBM has the lowest CPU utilizing percentage.
 
Old 01-26-2003, 04:36 PM   #7
bobo_daclown
Member
 
Registered: Dec 2002
Location: NC (no comment)
Distribution: Psyche (RH8.0) / LFS / OS X.2 / MDK 9.0 / Win2k Server
Posts: 49

Rep: Reputation: 15
Okay, BrianK, go to the console as root and type bash#fdisk /dev/hdc. Now it's time to go slowly and read the screens. You can type m for the menu or help screen. We want to type p. This will show you all partitions on that hard drive, specifically hdc1 @ 5gb.

If there are other partitions, make sure you are mounting them correctly in fstab. If you don't understand that part, post the screen in text here and we'll try to help.

Provided that the only partion listed is hdc1, type n for new partition. Select [p] primary and 2 for second partion. (Now, I have no free space so I'm doing the rest of this by memory.)

It's going to ask you for a starting block. Hit enter and it'll choose the next free block. Then, it'll ask you for an ending block. It should default to the last block on the drive. If you hit enter, you will have ~15gb partition called hdc2.

If you've followed those directions and they work so far, type w to write the partition table. (If you mess up before this point, type q to quit without saving.) Either way you'll be back to a command prompt. If you wrote the partition table and you have a hdc2, type bash#mkfs.ext3 /dev/hdc2 to format the partition as ext3. Mount and enjoy.

Last edited by bobo_daclown; 01-28-2003 at 06:14 PM.
 
Old 01-26-2003, 11:39 PM   #8
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Quote:
Originally posted by bobo_daclown
my god, people... are you trying to kill his computer or waste his time?!?
Being insulting never helps much, especially if you don't read every post in a thread carefully:

Quote:
BrianK

Code:
ode:     Name        Flags         Part Type      FS Type                  Size (MB)
 ------------------------------------------------------------------------------
    /dev/hdc1                 Primary        Linux                     19540.00


cfdisk, fdisk, it doesn't matter, this is something much stranger than un-appropriated space.

Cheers,

Finegan
 
Old 01-27-2003, 02:55 AM   #9
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
What filesystem type are you using for the /dev/hdc1 partition?
 
Old 01-27-2003, 07:06 PM   #10
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
the hdc1 partition is Linux.

I re-did the partition using cfdisk (deleted, then re-created). When I tried to write the partition table, I got "Wrote partition table, but re-read table failed. Reboot to update table."

so I rebooted, and now it doesn't show up at all when I do a df, but it does show up if I do a cfdisk /dev/hdc. interesting.

Well, the box is 12 hours from where I live - The owner suspects there's something wrong with the drive, so he's slapping a new one in there later this week.

Thanks for the help.
 
Old 01-27-2003, 07:14 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, but which linux filesystem?



df will only show up if the drive is mounted. cfdisk or fdisk -l will show all partitions on the drive, then you can mount them, and df them.

*Just to clarify*

Cool
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
External hard drive not showing up? newtwolinux Linux - Newbie 3 05-16-2005 10:49 AM
hard drive not showing h0p3sf411 Mandriva 13 03-15-2004 02:23 PM
Hard drive in primary channel showing in secondary channel Ale Linux - Hardware 2 02-20-2004 11:39 AM
Red Hat 8.0 and NTFS Hard Drive Not Showing up Li-Wen Linux - Hardware 3 03-15-2003 08:15 PM

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

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