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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-24-2003, 04:31 PM
|
#1
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
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
|
|
|
01-24-2003, 07:05 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
01-24-2003, 08:57 PM
|
#3
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Original Poster
Rep:
|
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.
|
|
|
01-24-2003, 09:14 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
01-24-2003, 09:18 PM
|
#5
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
01-26-2003, 12:14 AM
|
#6
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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.
|
|
|
01-26-2003, 04:36 PM
|
#7
|
Member
Registered: Dec 2002
Location: NC (no comment)
Distribution: Psyche (RH8.0) / LFS / OS X.2 / MDK 9.0 / Win2k Server
Posts: 49
Rep:
|
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.
|
|
|
01-26-2003, 11:39 PM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700
Rep:
|
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:
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
|
|
|
01-27-2003, 02:55 AM
|
#9
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
What filesystem type are you using for the /dev/hdc1 partition?
|
|
|
01-27-2003, 07:06 PM
|
#10
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Original Poster
Rep:
|
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.
|
|
|
01-27-2003, 07:14 PM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|