LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2001, 08:10 AM   #1
maros
LQ Newbie
 
Registered: Aug 2001
Posts: 2

Rep: Reputation: 0
Question identifying controller type of given hard drive (scsi or ide)


I'm trying to code a small tool in C for identifying the type of controller associated with a given drive in DOS. Specifically I'm trying to automate generation of a LOADLIN command line and I need the program to be able to identify whether the root will be (for example) a /dev/hda device (IDE) or a /dev/sda device (SCSI). Presumably this answer can be derived from something stored in memory. I just need to know where to find it and how the info is formatted. Thanks in advance for any help you can provide.
 
Old 08-24-2001, 10:51 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I would guess that the kernel source code will have the answer to your question. Try greping out patterns that you see in the dmesg output when your drives initalize and take a look at the source that writes the messages.
 
  


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
Second Hard Drive IDE vs SCSI OrganicX General 7 01-17-2006 07:23 AM
GRUB or LILO boot to SCSI drive on SCSI system w/ IDE card mkl838 Linux - General 1 03-06-2005 09:01 PM
How to config ide-scsi on hard drive david_deng Red Hat 2 09-14-2004 06:07 PM
SCSI controller and 200gb hard drive zetsui Linux - Hardware 8 09-23-2003 04:47 PM
ide hard dsik controller suggestion elbe3321 Linux - Hardware 2 07-28-2003 06:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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