LinuxQuestions.org
Help answer threads with 0 replies.
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 11-27-2002, 12:05 PM   #31
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50

Again, try:

/usr/sbin/fdisk /dev/hda

Do you have the capability of setting LBA mode in your BIOS for this
drive?
 
Old 11-27-2002, 04:07 PM   #32
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
/usr/sbin/fdisk /dev/hda
i get
unable to open /dev/hda

yes my comp has LBA mode it is enabled and the only way to change it is make the type not auto, this means i have to know how many cylinders, heads, and sectors on my hard drive.
thanks
bm1
 
Old 11-27-2002, 07:10 PM   #33
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Ok. . .

Do the following w/o rebooting in between any of the steps, post
the output (you can use the code. . . /code tags to make it look
pretty (put square braces around the "code" and "/code")):

cat /proc/ide/hda/settings
hdparm -d0 /dev/hda
hdparm /dev/hda
(if you get nothing, go to "cat /proc. . .)
(if you get something, go to fdisk. . .)

fdisk -l /dev/hda
fdisk /dev/hda

cat /proc/ide/hda/settings

You may end up having to do a low level format (if you don't have any
data that you need). . .
 
Old 11-28-2002, 05:47 AM   #34
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
[code] cat /proc/ide/hda/settings
this gave me alot of data under the headings,
name, value, min, max, mode(i think its similar to the other data i posted)
so i continued with
[code] hdparm -d0 /dev/hda
this gave me
[code] /dev/hda:
[code] setting using_dma to 0 (off)
[code] using_dma = 0 (off)

then i continued with
[code] hdparm /dev/hda
i got
[code] /dev/hda :
[code] multcount = 16(on)
[code] IO_support = 0 (default 16-bit)
[code] unmaskirq = 0(off)
[code] unsing_dma = 0(off)
[code] keepsettings = 0(off)
[code] readonly = 0(off)
[code] readahead = 8 (on)
[code] geometry = 13410/15/63, sectors = 12672450, start = 0

then i continued with
[code] fdisk -l /dev/hda
the hard drive grinded for a couple seconds then i got the command line back
so i continued with
[code] fdisk /dev/hda

i got
[code] unable to read /dev/hda

have i done something wrong? i dont want to keep anything on my hard drive, wipe it all.
thanks for your help moses you seem to be the only one who wants to help
 
Old 11-28-2002, 07:50 AM   #35
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
No, you haven't done anything wrong (that I know of). The "code" tags
are like HTML, you need to close the tag with a "/code" when you are
done with the formatting. For example, the following is formatted with
the
"squarebrace code squarebrace" formatted text "/squarebrace code squarebrace":
Code:
formatted text
Hard drives never seem to be an easy problem, I doubt that it's that
others don't want to help. Either they think the question has been
answered elsewhere on this forum, or they don't know the answer. . .
I don't know the answer, I'm just helping you through the steps to
diagnose the problem (which is going slowly, but IS going).
We now are able to get something (besides the kernel) to recognize
your hard drive (hdparm failed before, according to your posts).

Ok, we're going to take your hard drive down to the lowest settings that
we can, if we can't get it to work with that, and since you don't need the
data on it, I can't really think of a better solution than a lowlevel format
within the BIOS (if it supports it, some of the new BIOSs don't seem to
support that). Actually, we'll try changing from LBA mode to C/H/S
mode before doing the format. . .

Again, w/o rebooting in between, do the following:

hdparm -d0 /dev/hda
hdparm -m0 /dev/hda
fdisk /dev/hda
 
Old 11-28-2002, 08:10 AM   #36
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
moses i got some bad news, i just scored another comp so i
swapped hard drives to see if it would work in the other comp
(vice versa). the other hard drive is installing rh with no problems
how ever when i moved the hard drive we were having problems with i pushed the cable on the wrong way and busted one of the
pins(im doing it in the dark). im a little pissed off and im sorry for all the time we put in and no result. unless it is fixable?
bm1
 
Old 11-28-2002, 12:26 PM   #37
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
ouch.

Unless you are good with a soldering iron, it's probably not fixable. It
really depends on how broken broken is. . . If it's just bent, then you can
just bend it back (carefully), but if it has snapped off, you'll probably have
to take your drive apart and solder a new pin on. . .
sorry. . . Now my curiosity will never be satisfied. =-{
 
  


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
open(/dev/console): Input/Output error fintanmcevoy General 2 11-18-2005 07:44 AM
/dev/hdc : Input/output error tulip4heaven Linux - Software 3 04-27-2005 01:03 PM
input/output dev/hda error meira Red Hat 2 09-01-2004 09:31 AM
Input/Output error during read on /dev/hdb yibble Fedora - Installation 4 05-25-2004 04:57 AM
/dev/hdd input/output error... Linux~Powered Linux - Software 8 02-17-2004 01:55 PM

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

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