public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Identify IDE device?
@ 2001-10-31  0:52 Mark Atwood
  2001-10-31  1:11 ` Christian Bornträger
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mark Atwood @ 2001-10-31  0:52 UTC (permalink / raw)
  To: linux-kernel


Is there a way, via an ioctl call, or something to identify what
specific IDE hard disk or other IDE device is hooked up to the IDE
controller?

I'm really hoping to be able to determine something like "/dev/hda is
a Maxtor 96147H6".

-- 
Mark Atwood   | I'm wearing black only until I find something darker.
mra@pobox.com | http://www.pobox.com/~mra

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Identify IDE device?
  2001-10-31  0:52 Identify IDE device? Mark Atwood
@ 2001-10-31  1:11 ` Christian Bornträger
  2001-10-31  1:46 ` Dave Jones
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Christian Bornträger @ 2001-10-31  1:11 UTC (permalink / raw)
  To: Mark Atwood, linux-kernel

Am Mittwoch, 31. Oktober 2001 01:52 schrieb Mark Atwood:
> Is there a way, via an ioctl call, or something to identify what
> specific IDE hard disk or other IDE device is hooked up to the IDE
> controller?

What about 

cat /proc/ide/hda/model 


greetings

Christian Bornträger

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Identify IDE device?
  2001-10-31  0:52 Identify IDE device? Mark Atwood
  2001-10-31  1:11 ` Christian Bornträger
@ 2001-10-31  1:46 ` Dave Jones
  2001-10-31 10:14 ` Timo Jantunen
  2001-10-31 11:45 ` Stefan Smietanowski
  3 siblings, 0 replies; 5+ messages in thread
From: Dave Jones @ 2001-10-31  1:46 UTC (permalink / raw)
  To: Mark Atwood; +Cc: linux-kernel

On 30 Oct 2001, Mark Atwood wrote:

> Is there a way, via an ioctl call, or something to identify what
> specific IDE hard disk or other IDE device is hooked up to the IDE
> controller?

HDIO_GET_IDENTITY is the ioctl you seek.

Grab the hdparm source for an example of how to use this and other
IDE related ioctls.

regards,

Dave.

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Identify IDE device?
  2001-10-31  0:52 Identify IDE device? Mark Atwood
  2001-10-31  1:11 ` Christian Bornträger
  2001-10-31  1:46 ` Dave Jones
@ 2001-10-31 10:14 ` Timo Jantunen
  2001-10-31 11:45 ` Stefan Smietanowski
  3 siblings, 0 replies; 5+ messages in thread
From: Timo Jantunen @ 2001-10-31 10:14 UTC (permalink / raw)
  To: Mark Atwood; +Cc: linux-kernel

On 30 Oct 2001, Mark Atwood wrote:

> Is there a way, via an ioctl call, or something to identify what
> specific IDE hard disk or other IDE device is hooked up to the IDE
> controller?
> 
> I'm really hoping to be able to determine something like "/dev/hda is
> a Maxtor 96147H6".

Something like
---cut
12:12:17 limbo ~$ cat /proc/ide/hd?/model
IC35L040AVER07-0
IBM-DTLA-307030
TOSHIBA DVD-ROM SD-M1212
CR-4804TE
12:12:19 limbo ~$
---cut
?


// /
....................................Timo Jantunen  ......................
       ZZZ      (Used to represent :Kuunsäde 8 A 28: Email: jeti@iki.fi :
the  sound of  a person  snoring.) :02210 Espoo    : http://iki.fi/jeti :
Webster's  Encyclopedic Unabridged :Finland        : GSM+358-40-5763131 :
Dictionary of the English Language :...............:....................:


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Identify IDE device?
  2001-10-31  0:52 Identify IDE device? Mark Atwood
                   ` (2 preceding siblings ...)
  2001-10-31 10:14 ` Timo Jantunen
@ 2001-10-31 11:45 ` Stefan Smietanowski
  3 siblings, 0 replies; 5+ messages in thread
From: Stefan Smietanowski @ 2001-10-31 11:45 UTC (permalink / raw)
  To: Mark Atwood; +Cc: linux-kernel

Hi!

> Is there a way, via an ioctl call, or something to identify what
> specific IDE hard disk or other IDE device is hooked up to the IDE
> controller?
> 
> I'm really hoping to be able to determine something like "/dev/hda is
> a Maxtor 96147H6".
> 
> 

hdparm -i /dev/hda

// Stefan



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-10-31 11:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-31  0:52 Identify IDE device? Mark Atwood
2001-10-31  1:11 ` Christian Bornträger
2001-10-31  1:46 ` Dave Jones
2001-10-31 10:14 ` Timo Jantunen
2001-10-31 11:45 ` Stefan Smietanowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox